/* =========================================
   DRAPE — Premium Men's Style Guides
   Design: Editorial luxury, warm tactility
   ========================================= */

:root {
  --bg: #f5f0e8;            /* cream — light section backgrounds */
  --bg-warm: #f0ece3;       /* slightly deeper cream */
  --bg-deep: #3d2b1f;       /* deep espresso — dark section backgrounds */
  --fg: #3d2b1f;            /* deep brown — primary text */
  --fg-on-dark: #fafaf8;    /* warm white — primary text on dark sections */
  --fg-muted: #7a6858;      /* warm brown-muted text on light */
  --fg-muted-dark: rgba(250,250,248,0.55); /* warm white-muted on dark */
  --fg-subtle: #a89580;
  --accent: #4a3925;        /* deep espresso — CTAs and rule accents */
  --accent-light: #6b5333;  /* lighter warm brown hover */
  --accent-hover: #2d1c12;  /* near-black espresso for active states */
  --sand: #d4c4a8;
  --cognac: #c4956a;
  --white: #fafaf8;
  --ivory: #fffef9;
  --cream: #f5f0e8;
  --warm-brown: #8b7355;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── HEADER ─────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(61, 43, 31, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(250, 250, 248, 0.08);
}

.site-header .wordmark,
.site-header .nav-label {
  color: var(--fg-on-dark);
}

.site-header .nav-label:hover {
  color: var(--white);
}

.wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--fg);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--fg);
}

.site-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.nav-label:hover {
  color: var(--fg);
}

/* ── HERO ─────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-deep);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg-on-dark);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg-muted-dark);
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-cta {
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-on-dark);
  opacity: 0.5;
  padding: 6px 14px;
  border: 1px solid rgba(245,240,232,0.2);
  border-radius: 2px;
}

/* Hero visual card */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fabric-texture {
  position: absolute;
  inset: -20px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    rgba(245,240,232,0.04) 3px,
    rgba(245,240,232,0.04) 4px
  ),
  repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(245,240,232,0.03) 3px,
    rgba(245,240,232,0.03) 4px
  ),
  linear-gradient(135deg, rgba(245,240,232,0.05), rgba(139,45,58,0.08));
  border-radius: 4px;
}

.hero-card {
  position: relative;
  background: rgba(245,240,232,0.08);
  border: 1px solid rgba(245,240,232,0.2);
  padding: 40px 36px;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.15);
}

.card-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--fg-on-dark);
}

.card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--fg-muted-dark);
  margin-bottom: 20px;
}

.card-pages {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  border-top: 1px solid rgba(245,240,232,0.15);
  padding-top: 16px;
}

/* ── DIFFERENTIATION (formerly manifesto) ── */
.differentiation {
  background: var(--bg);
  padding: 100px 48px;
}

.differentiation-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.differentiation-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.differentiation-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg-muted);
  max-width: 480px;
}

/* ── GUIDES (product roadmap) ── */
.guides {
  padding: 100px 48px;
  background: var(--bg-warm);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

.guides-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 56px;
}

.guides-list {
  list-style: none;
}

.guide-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--sand);
}

.guide-item:first-child {
  border-top: 1px solid var(--sand);
}

.guide-item-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}

.guide-item-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.guide-item-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ── FIT GUIDE (formerly philosophy) ── */
.fit-guide {
  padding: 100px 48px;
  background: var(--bg);
}

.fit-guide-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.fit-guide-intro {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 56px;
}

.fit-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fit-rule-card {
  background: var(--white);
  border: 1px solid var(--sand);
  padding: 40px 32px;
  position: relative;
}

.fit-rule-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
}

.fit-rule-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.3;
}

.fit-rule-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

.fit-guide-cta {
  margin-top: 48px;
  display: flex;
  justify-content: flex-start;
}

/* ── CTA BAND ───────────────────────── */
.cta-band {
  padding: 80px 48px;
  background: var(--bg-warm);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  text-align: center;
}

.cta-band-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-band-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

/* ── CLOSING STATEMENT ───────────────── */
.closing-statement {
  padding: 120px 48px;
  background: var(--bg-deep);
  color: var(--white);
  text-align: center;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
}

.closing-rule {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 48px;
}

.closing-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--fg-on-dark);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.closing-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg-muted-dark);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.closing-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(245,240,232,0.4);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.closing-divider {
  color: var(--accent);
}

/* ── FOOTER ────────────────────────────── */
.site-footer {
  padding: 80px 48px 48px;
  background: var(--bg-warm);
  border-top: 1px solid var(--sand);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--sand);
}

.footer-wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  gap: 80px;
  justify-content: flex-end;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-head {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 500;
  margin-bottom: 4px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.footer-note {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* ── CTA BUTTON ───────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--fg-on-dark);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary-light {
  display: inline-block;
  background: var(--fg);
  color: var(--fg-on-dark);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

.btn-primary-light:hover {
  background: #333;
}

/* ── RESPONSIVE ────────────────────────── */
@media (max-width: 900px) {
  .hero-grid,
  .differentiation-inner,
  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .fit-rules-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 100px 28px 60px;
  }

  .differentiation,
  .guides,
  .fit-guide,
  .cta-band,
  .closing-statement,
  .site-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .site-header {
    padding: 0 28px;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-nav {
    display: none;
  }

  .hero-headline {
    font-size: 2.8rem;
  }

  .hero-grid {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .site-nav {
    display: none;
  }

  .hero-headline {
    font-size: 2.8rem;
  }
}