/* ============================================================
   slub.co.pl — Design System
   Aesthetic: Editorial wedding magazine — warm ivory & gold
   Fonts: Cormorant Garamond + DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Variables ── */
:root {
  --ivory:    #FAF7F2;
  --ivory2:   #F3EDE3;
  --linen:    #E8DDD0;
  --gold:     #9A7535;
  --gold-lt:  #C8A96E;
  --gold-pale:#F0E4C8;
  --ink:      #1C1409;
  --ink-mid:  #4A3B28;
  --ink-lt:   #7A6A55;
  --rose:     #C4907A;
  --rose-lt:  #F5EAE4;
  --white:    #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w:  1200px;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(28,20,9,.08);
  --shadow-lg: 0 12px 48px rgba(28,20,9,.12);

  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ink); }
ul { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
  font-weight: 500;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p  { margin-bottom: 1.25em; color: var(--ink-mid); }
strong { color: var(--ink); font-weight: 500; }
em  { font-style: italic; color: var(--ink-mid); }

/* ── Layout Helpers ── */
.container { width: 92%; max-width: var(--max-w); margin: 0 auto; }
.container--narrow { width: 92%; max-width: 780px; margin: 0 auto; }
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linen);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__main {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.02em;
}
.logo__main span { color: var(--gold); }
.logo__sub {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-lt);
  font-family: var(--font-body);
}
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.site-nav a:hover, .site-nav a.active { color: var(--gold); background: var(--gold-pale); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--ink) !important; color: var(--white) !important; }

/* hamburger */
.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding:8px; }
.nav-toggle span { display:block; width:22px; height:1.5px; background:var(--ink); margin:5px 0; transition:var(--transition); }

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  min-height: 580px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(28,20,9,.75) 0%, rgba(28,20,9,.35) 60%, transparent 100%);
  z-index: 1;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: .7;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 0 80px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 16px;
  font-family: var(--font-body);
}
.hero__title {
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 400;
  max-width: 14ch;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero__title em { font-style: italic; color: var(--gold-lt); }
.hero__lead {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 36px;
  font-family: var(--font-body);
  font-weight: 300;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--white); color: var(--ink); }
.btn--outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.5); }
.btn--outline:hover { background: var(--white); color: var(--ink); }
.hero__btns { display:flex; gap:12px; flex-wrap:wrap; }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--linen);
  background: var(--ivory2);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .8rem;
  color: var(--ink-lt);
  font-family: var(--font-body);
}
.breadcrumb ol li::after { content: '›'; margin-left: 6px; }
.breadcrumb ol li:last-child::after { display: none; }
.breadcrumb ol li:last-child { color: var(--ink-mid); }
.breadcrumb a { color: var(--ink-lt); }
.breadcrumb a:hover { color: var(--gold); }

/* ── ARTICLE CARDS ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.articles-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__img-wrap { aspect-ratio: 3/2; overflow: hidden; }
.card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card__img-wrap img { transform: scale(1.04); }
.card__body { padding: 24px; }
.card__tag {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
  font-family: var(--font-body);
}
.card__title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 500;
}
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--gold); }
.card__excerpt { font-size: .9rem; color: var(--ink-lt); margin-bottom: 18px; }
.card__meta {
  font-size: .75rem;
  color: var(--ink-lt);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
}
.card__meta time { }
.card__read-time::before { content: '·'; margin-right: 6px; }

/* ── FEATURED CARD (big) ── */
.card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card--featured .card__img-wrap { aspect-ratio: auto; height: 100%; min-height: 320px; }
.card--featured .card__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.card--featured .card__title { font-size: 1.75rem; }
.card--featured .card__excerpt { font-size: .95rem; }

/* ── SECTION HEADING ── */
.section-heading {
  margin-bottom: 48px;
}
.section-heading--center { text-align: center; }
.section-heading__eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.section-heading__title { margin-bottom: 16px; }
.section-heading__line {
  width: 48px; height: 2px;
  background: var(--gold);
  margin-bottom: 16px;
}
.section-heading--center .section-heading__line { margin: 0 auto 16px; }
.section-heading__desc { font-size: 1.05rem; max-width: 60ch; color: var(--ink-lt); }
.section-heading--center .section-heading__desc { margin: 0 auto; }

/* ── ARTICLE CONTENT (single page) ── */
.article-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--ink);
}
.article-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .7;
}
.article-hero__content {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  background: linear-gradient(to top, rgba(28,20,9,.85) 0%, transparent 60%);
  padding: 48px;
}
.article-hero__content > div { max-width: 780px; }
.article-hero .article-tag {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-lt); font-family: var(--font-body); margin-bottom: 12px;
}
.article-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 16px; }
.article-hero .article-meta { color: rgba(255,255,255,.7); font-size: .82rem; font-family: var(--font-body); display:flex; gap:16px; flex-wrap:wrap; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
  padding: 64px 0 80px;
}
.article-body {}
.article-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 2.5em 0 .75em;
  padding-bottom: .5em;
  border-bottom: 1px solid var(--linen);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.3rem; margin: 2em 0 .5em; }
.article-body p { font-size: 1.05rem; line-height: 1.8; color: var(--ink-mid); }
.article-body ul, .article-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
  color: var(--ink-mid);
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .5em; font-size: 1.05rem; line-height: 1.75; }
.article-body strong { color: var(--ink); }
.article-body .highlight-box {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 2em 0;
}
.article-body .highlight-box p { color: var(--ink-mid); margin-bottom: 0; }
.article-body figure { margin: 2.5em 0; }
.article-body figure img { border-radius: 8px; width: 100%; }
.article-body figure figcaption { font-size: .8rem; color: var(--ink-lt); margin-top: 10px; text-align: center; font-style: italic; }

/* checklist */
.checklist { list-style: none !important; padding-left: 0 !important; }
.checklist li {
  padding: 10px 14px 10px 42px;
  position: relative;
  background: var(--ivory2);
  border-radius: 6px;
  margin-bottom: 8px !important;
  font-size: .95rem !important;
}
.checklist li::before {
  content: '✓';
  position: absolute; left: 14px;
  color: var(--gold);
  font-weight: 600;
}

/* sidebar */
.article-sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--white);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.sidebar-widget h4 {
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--linen);
}
.toc-list { }
.toc-list li { margin-bottom: 10px; }
.toc-list a {
  font-size: .875rem;
  color: var(--ink-mid);
  font-family: var(--font-body);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.toc-list a:hover { color: var(--gold); border-color: var(--gold); }

.related-list li { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--linen); }
.related-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-list a { font-family: var(--font-display); font-size: 1rem; color: var(--ink); display:block; margin-bottom:4px; }
.related-list a:hover { color: var(--gold); }
.related-list span { font-size: .75rem; color: var(--ink-lt); font-family: var(--font-body); }

/* author box */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--ivory2);
  border-radius: 8px;
  padding: 28px;
  margin-top: 56px;
  border: 1px solid var(--linen);
}
.author-box__img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--gold-pale);
}
.author-box__name { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }
.author-box__role { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 10px; font-family: var(--font-body); }
.author-box__bio { font-size: .9rem; color: var(--ink-lt); margin-bottom: 0; }

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--ink);
  padding: 72px 0;
  text-align: center;
}
.newsletter h2 { color: var(--white); margin-bottom: 12px; }
.newsletter p { color: rgba(255,255,255,.65); margin-bottom: 32px; max-width: 50ch; margin-left:auto; margin-right:auto; }
.newsletter__form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.newsletter__input {
  padding: 13px 20px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  width: 300px;
  max-width: 100%;
  outline: none;
}
.newsletter__input::placeholder { color: rgba(255,255,255,.4); }
.newsletter__input:focus { border-color: var(--gold); }
.newsletter__note { font-size: .75rem; color: rgba(255,255,255,.4); margin-top: 16px; margin-bottom:0; }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand {}
.footer-brand .logo__main { color: var(--white); font-size: 1.5rem; }
.footer-brand .logo__sub { color: rgba(255,255,255,.4); }
.footer-brand p { font-size: .875rem; margin-top: 16px; line-height: 1.7; max-width: 30ch; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: .875rem; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold-lt); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--gold-lt); }

/* ── TIPS GRID (homepage) ── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tip-card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: transform var(--transition);
}
.tip-card:hover { transform: translateY(-3px); }
.tip-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold-pale);
  line-height: 1;
  margin-bottom: 12px;
}
.tip-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.tip-card p { font-size: .875rem; margin-bottom: 0; }

/* ── DIVIDER ── */
.divider {
  text-align: center;
  position: relative;
  margin: 12px 0;
}
.divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--linen);
}
.divider__ornament {
  position: relative;
  display: inline-block;
  background: var(--ivory);
  padding: 0 16px;
  color: var(--gold);
  font-size: 1.2rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .card--featured { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .articles-grid, .articles-grid--2 { grid-template-columns: 1fr; }
  .card--featured { grid-column: auto; display: block; }
  .card--featured .card__img-wrap { height: 240px; }
  .tips-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .article-hero { height: 420px; }
  .article-hero__content { padding: 28px; }
  .article-sidebar { grid-template-columns: 1fr; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--linen); padding: 16px; gap: 4px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; flex-direction: column; }
  .newsletter__input { width: 100%; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up--1 { animation-delay: .1s; }
.fade-up--2 { animation-delay: .2s; }
.fade-up--3 { animation-delay: .3s; }
