/* ============================================================
   MISE EN PAGE — Website Stylesheet
   Design tokens matched to template.svg V9
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat:ital,wght@0,300;0,400;0,600;0,700;1,300&family=Inter:wght@300;400&display=swap');

/* === TOKENS === */
:root {
  --charcoal:  #2A3135;
  --ivory:     #F5F1EA;
  --copper:    #C47A3A;
  --white:     #FFFFFF;
  --green:     #A6DE85;
  --blue:      #0AB7EF;

  --font-serif: 'Libre Bodoni', Georgia, serif;
  --font-sans:  'Montserrat', 'Segoe UI', sans-serif;
  --font-light: 'Inter', 'Segoe UI', sans-serif;

  --max-w: 1200px;
  --gutter: 48px;
  --transition: 0.22s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* === LAYOUT === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
  background: var(--charcoal);
  border-bottom: 1px solid rgba(245, 241, 234, 0.10);
}

.nav__brand {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  transition: color var(--transition);
}
.nav__brand:hover { color: var(--copper); }

.nav__links {
  display: flex;
  gap: 40px;
}
.nav__links a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.55;
  transition: opacity var(--transition), color var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
  opacity: 1;
  color: var(--copper);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 1px solid var(--copper);
  color: var(--copper);
  background: transparent;
  transition: background var(--transition), color var(--transition);
}
.btn:hover {
  background: var(--copper);
  color: var(--charcoal);
}
.btn--ghost {
  border-color: rgba(245, 241, 234, 0.30);
  color: var(--ivory);
  opacity: 0.7;
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--ivory);
  color: var(--ivory);
  opacity: 1;
}

/* === SHARED SECTION RHYTHM === */
.section { padding: 120px 0; }
.section--tight { padding: 80px 0; }
.section--flush { padding: 0; }

.section-rule {
  border: none;
  border-top: 1px solid rgba(245, 241, 234, 0.12);
}

/* Eyebrow label — copper small caps above headings */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 28px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 180px var(--gutter) 110px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(52px, 6.5vw, 96px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.04;
  max-width: 14ch;
  margin-bottom: 36px;
}

.hero__rule {
  width: 48px;
  height: 1px;
  background: var(--copper);
  margin-bottom: 32px;
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: var(--ivory);
  opacity: 0.75;
  max-width: 44ch;
  margin-bottom: 52px;
  line-height: 1.65;
}

/* === ETYMOLOGY === */
.etymology {
  background: rgba(245, 241, 234, 0.025);
  border-top: 1px solid rgba(245, 241, 234, 0.10);
  border-bottom: 1px solid rgba(245, 241, 234, 0.10);
}

.etymology .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: start;
}

.etymology__left {}

.etymology__term {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.etymology__term em {
  color: var(--copper);
  font-style: italic;
}

.etymology__translation {
  font-family: var(--font-light);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.10em;
  color: var(--ivory);
  opacity: 0.45;
  margin-bottom: 40px;
}

.etymology__divider {
  width: 32px;
  height: 1px;
  background: var(--copper);
  opacity: 0.6;
  margin-bottom: 32px;
}

.etymology__origin {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ivory);
  opacity: 0.65;
  line-height: 1.75;
  font-style: italic;
}

.etymology__body {
  font-size: 17px;
  font-weight: 300;
  color: var(--ivory);
  opacity: 0.82;
  line-height: 1.8;
  margin-bottom: 24px;
}
.etymology__body:last-child { margin-bottom: 0; }

/* === PROBLEM / SOLUTION === */
.problem {}

.problem h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--white);
  max-width: 20ch;
  line-height: 1.2;
  margin-bottom: 64px;
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-bottom: 80px;
  border-top: 1px solid rgba(245, 241, 234, 0.12);
  border-left: 1px solid rgba(245, 241, 234, 0.12);
}

.problem__item {
  padding: 32px 36px 36px;
  border-right: 1px solid rgba(245, 241, 234, 0.12);
  border-bottom: 1px solid rgba(245, 241, 234, 0.12);
}

.problem__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
}

.problem__item p {
  font-size: 15px;
  font-weight: 300;
  color: var(--ivory);
  opacity: 0.65;
  line-height: 1.65;
}

.problem__solution {
  border: 1px solid rgba(196, 122, 58, 0.25);
  padding: 52px 56px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}

.problem__solution-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.7;
}

.problem__solution p {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-style: italic;
  color: var(--ivory);
  line-height: 1.5;
  opacity: 0.88;
}

/* === COLLECTION PREVIEW === */
.collection-preview {
  border-top: 1px solid rgba(245, 241, 234, 0.10);
}

.collection-preview .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.collection-preview h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.collection-preview p {
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: var(--ivory);
  opacity: 0.60;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid rgba(245, 241, 234, 0.10);
  padding: 48px 0;
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
}

.footer__nav {
  display: flex;
  gap: 32px;
  justify-content: center;
}
.footer__nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.40;
  transition: opacity var(--transition);
}
.footer__nav a:hover { opacity: 0.9; }

.footer__copy {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ivory);
  opacity: 0.28;
  text-align: right;
}

/* === PAGE HEADER (Library / Founder) === */
.page-header {
  padding: 160px var(--gutter) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid rgba(245, 241, 234, 0.10);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: var(--ivory);
  opacity: 0.60;
  max-width: 52ch;
  line-height: 1.65;
}

/* === LIBRARY: FILTERS === */
.filters-bar {
  padding: 36px 0;
  border-bottom: 1px solid rgba(245, 241, 234, 0.08);
}

.filters-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.30;
  margin-right: 8px;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid rgba(245, 241, 234, 0.18);
  background: transparent;
  color: var(--ivory);
  opacity: 0.55;
  transition: all var(--transition);
}
.filter-btn:hover {
  opacity: 0.9;
  border-color: rgba(245, 241, 234, 0.45);
}
.filter-btn.active {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--charcoal);
  opacity: 1;
}

/* === LIBRARY: RECIPE GRID === */
.recipe-section {
  padding: 48px 0 0;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(245, 241, 234, 0.06);
  margin-bottom: 1px;
}

.recipe-card {
  background: var(--charcoal);
  padding: 36px 32px 32px;
  aspect-ratio: 5 / 7;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background var(--transition);
}

.recipe-card:hover {
  background: rgba(245, 241, 234, 0.03);
}

.recipe-card__number {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--copper);
  margin-bottom: 20px;
}

.recipe-card__name {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  flex: 1;
}

.recipe-card__meta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.recipe-card__cuisine {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.38;
}

.recipe-card__complexity {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.22;
}

.recipe-card__status {
  font-family: var(--font-light);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  opacity: 0.50;
  margin-top: 16px;
}

/* Lock line — decorative rule on each card */
.recipe-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(196, 122, 58, 0.10);
}

/* Hidden for filter */
.recipe-card[hidden] { display: none; }

/* === COMING SOON SECTION === */
.more-coming {
  border-top: 1px solid rgba(245, 241, 234, 0.08);
  padding: 80px 0 120px;
  text-align: center;
}

.more-coming__vol {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  opacity: 0.55;
  display: block;
  margin-bottom: 20px;
}

.more-coming p {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-style: italic;
  color: var(--ivory);
  opacity: 0.40;
  line-height: 1.4;
}

/* === HOME INTRO === */
.home-intro {
  padding: 160px 0 80px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.10);
}

.home-intro__definition {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  max-width: 28ch;
  margin-bottom: 32px;
}

.home-intro__bridge {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  color: var(--ivory);
  opacity: 0.65;
  line-height: 1.75;
  max-width: 52ch;
}

/* === HOME COLLECTION === */
.home-collection {
  padding: 64px 0 120px;
}

.home-collection .eyebrow {
  margin-bottom: 40px;
}

/* === FOUNDER PAGE === */
.founder-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 100px;
  padding: 72px 0 140px;
  align-items: start;
}

.founder-portrait {
  position: sticky;
  top: 120px;
}

.founder-portrait__frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: rgba(245, 241, 234, 0.03);
  border: 1px solid rgba(245, 241, 234, 0.13);
  display: flex;
  align-items: flex-end;
  padding: 20px 22px;
}

.founder-portrait__label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.28;
}

.founder-bio__name {
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 52px;
}

.founder-bio__body {
  font-size: 17px;
  font-weight: 300;
  color: var(--ivory);
  opacity: 0.80;
  line-height: 1.80;
  margin-bottom: 28px;
  max-width: 58ch;
}

.founder-bio__quote {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 26px);
  font-style: italic;
  color: var(--ivory);
  opacity: 0.55;
  border-left: 2px solid var(--copper);
  padding-left: 28px;
  margin: 52px 0;
  line-height: 1.5;
  max-width: 44ch;
}

.founder-bio__philosophy {}

.founder-bio__philosophy h3 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  :root { --gutter: 36px; }

  .recipe-grid { grid-template-columns: repeat(2, 1fr); }

  .etymology .container {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .problem__solution {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px;
  }

  .problem__solution-label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .collection-preview .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer .container {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .footer__copy { text-align: center; }

  .founder-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .founder-portrait {
    position: static;
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  :root { --gutter: 24px; }

  .nav { padding: 18px var(--gutter); }
  .nav__brand { font-size: 13px; letter-spacing: 0.10em; }
  .nav__links { gap: 20px; }
  .nav__links a { font-size: 11px; letter-spacing: 0.10em; }

  .hero { padding: 130px var(--gutter) 80px; }

  .problem__grid { grid-template-columns: 1fr; }

  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-card { aspect-ratio: unset; min-height: 200px; }

  .page-header { padding: 130px var(--gutter) 60px; }
}
