/* ============================================================
   Kelly's Country Kitchen — editorial bakery system
   ============================================================ */

:root {
  /* Themes are switched by [data-theme] on <html> */
  --cherry: #B8385F;
  --cherry-deep: #7A1F3D;
  --sage: #8FA890;
  --sage-deep: #5C7A60;
  --cream: #FFF5EC;
  --cream-2: #F6E4D2;
  --cream-3: #EBD0B8;
  --ink: #2A1818;
  --ink-soft: #5A3A36;
  --paper: #FFF8F0;
  --line: rgba(42, 24, 24, 0.14);

  /* Accent currently in use — set per theme */
  --accent: var(--cherry);
  --accent-deep: var(--cherry-deep);
  --accent-tint: rgba(184, 56, 95, 0.12);

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --script: "Allura", "Great Vibes", cursive;

  /* Density */
  --section-y: clamp(80px, 11vw, 160px);
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;
  --radius-lg: 18px;
}

[data-theme="cherry"] {
  --accent: var(--cherry);
  --accent-deep: var(--cherry-deep);
  --accent-tint: rgba(184, 56, 95, 0.12);
  --paper: #FFF5EC;
  --ink: #2A1818;
  --ink-soft: #5A3A36;
}

[data-theme="sage"] {
  --accent: var(--sage-deep);
  --accent-deep: #3F5A45;
  --accent-tint: rgba(92, 122, 96, 0.14);
  --paper: #F4EFE3;
  --ink: #1F2820;
  --ink-soft: #4A574B;
}

[data-theme="linen"] {
  --accent: #6B3A2A;
  --accent-deep: #4A2519;
  --accent-tint: rgba(107, 58, 42, 0.10);
  --paper: #F2EADC;
  --ink: #2A1F18;
  --ink-soft: #5C4838;
}

[data-theme="midnight"] {
  --accent: #E89BB0;
  --accent-deep: #C76B85;
  --accent-tint: rgba(232, 155, 176, 0.16);
  --paper: #1A1012;
  --ink: #F2E4D6;
  --ink-soft: #C2A89C;
  --line: rgba(242, 228, 214, 0.16);
}

/* Density */
[data-density="cozy"] { --section-y: clamp(60px, 8vw, 110px); }
[data-density="airy"] { --section-y: clamp(110px, 14vw, 200px); }

/* ============================================================
   Reset + base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--paper); }

/* Texture layers */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.09  0 0 0 0 0.09  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body[data-texture="none"]::before { display: none; }
body[data-texture="paper"]::before {
  opacity: 0.55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' seed='3'/><feColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.10 0 0 0 0 0.08 0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}
body[data-texture="grid"]::before {
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ============================================================
   Typography utilities
   ============================================================ */
.script { font-family: var(--script); font-weight: 400; }
.mono { font-family: var(--mono); }
.smallcaps {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  margin: 0;
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
}

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 64ch; }

/* ============================================================
   Page chrome
   ============================================================ */
.app { position: relative; z-index: 2; }

.shell {
  width: min(1320px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ============================================================
   Top bar (asymmetric ledger)
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 16px var(--gutter);
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--script);
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
  text-decoration: none;
}
.topbar .brand img { height: 40px; width: 40px; }
.topbar .brand .lock { font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; color: var(--ink-soft); text-transform: uppercase; display: block; margin-top: 4px; }
.topbar nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 500;
}
.topbar nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar nav a::before {
  content: attr(data-num);
  font-size: 9px;
  color: var(--accent);
  opacity: 0.7;
}
.topbar nav a:hover { color: var(--accent); }
.topbar .right {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cart-btn .pip {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  display: grid; place-items: center;
  font-size: 11px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
}
.cart-btn:hover { background: var(--ink); color: var(--paper); }

/* tiny weather/date stamp */
.stamp {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
  align-items: center;
}
.stamp .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); animation: blink 2.4s ease infinite; }
@keyframes blink { 0%,60%,100% { opacity: 1; } 70%,90% { opacity: 0.25; } }

@media (max-width: 880px) {
  .topbar nav { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto; }
}

/* ============================================================
   Marquee ribbon
   ============================================================ */
.ribbon {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 0;
  border-block: 1px solid var(--ink);
  overflow: hidden;
}
[data-theme="midnight"] .ribbon { background: var(--accent); color: #1A1012; }
.ribbon-track {
  display: flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.ribbon-track span { display: inline-flex; align-items: center; gap: 56px; }
.ribbon-track .sep { color: var(--accent); font-family: var(--script); font-size: 1.2em; }
[data-theme="midnight"] .ribbon-track .sep { color: var(--ink); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ribbon:hover .ribbon-track { animation-play-state: paused; }

/* ============================================================
   HERO — Editorial cover
   ============================================================ */
.hero {
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(60px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}

/* Issue ledger row */
.hero-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-block: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.hero-ledger > div { display: flex; gap: 10px; align-items: center; }
.hero-ledger .label { opacity: 0.55; }
.hero-ledger .center { justify-content: center; }
.hero-ledger .right { justify-content: flex-end; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

.hero-title {
  font-size: clamp(3.2rem, 12vw, 11rem);
  letter-spacing: -0.04em;
  line-height: 0.84;
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
  margin: 0;
  color: var(--ink);
}
.hero-title .l1 { display: block; }
.hero-title .l2 {
  display: block;
  font-family: var(--script);
  color: var(--accent);
  font-size: 1.05em;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  margin-left: clamp(40px, 8vw, 140px);
  transform: translateY(-0.1em);
  line-height: 0.8;
}
.hero-title .l3 {
  display: block;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.hero-title .l3 em {
  font-style: italic;
  font-family: var(--serif);
  position: relative;
  padding: 0 0.1em;
}
.hero-title .l3 em::before {
  content: "";
  position: absolute;
  inset: 8% -2% 8% -2%;
  background: var(--accent-tint);
  z-index: -1;
  border-radius: 6px;
  transform: rotate(-1.5deg);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-3);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero:hover .hero-photo img { transform: scale(1.04); }

.hero-photo .caption {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.hero-photo .caption .price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
}

.hero-blurb {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
}
.hero-blurb b { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s, color 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arr {
  display: inline-block;
  width: 18px; height: 1px; background: currentColor;
  position: relative;
}
.btn .arr::after {
  content: "";
  position: absolute;
  right: -2px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* circular stamp on hero */
.hero-stamp {
  position: absolute;
  right: -40px; top: 30%;
  width: 160px; height: 160px;
  display: grid; place-items: center;
  pointer-events: none;
  z-index: 5;
}
.hero-stamp .ring {
  position: absolute; inset: 0;
  animation: rotate 24s linear infinite;
}
.hero-stamp .center {
  width: 70px; height: 70px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--script);
  font-size: 30px;
  line-height: 1;
}
@keyframes rotate { to { transform: rotate(360deg); } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(3rem, 14vw, 6rem); }
  .hero-stamp { display: none; }
  .hero-ledger { grid-template-columns: 1fr; gap: 6px; }
  .hero-ledger .center, .hero-ledger .right { justify-content: flex-start; }
}

/* ============================================================
   Section header — oversized numerals
   ============================================================ */
.section {
  padding: var(--section-y) var(--gutter);
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 80px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.section-num {
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--accent);
  line-height: 0.85;
  margin: 0;
  letter-spacing: -0.04em;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
}
.section-title .script {
  font-family: var(--script);
  color: var(--accent);
  font-size: 1.1em;
  display: inline-block;
  transform: translateY(0.08em);
}
.section-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: auto 1fr; gap: 18px; }
  .section-meta { grid-column: 1 / -1; text-align: left; }
}

/* ============================================================
   Bake Board (Shop)
   ============================================================ */
.bakeboard-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.bakeboard-intro .lede {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
  line-height: 1.25;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--ink);
  max-width: 22ch;
}
.bakeboard-intro .filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-self: end;
  justify-self: end;
}
.chip {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.bakeboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2vw, 36px);
}
.bake {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bake:hover { transform: translateY(-4px); }
.bake .sticker {
  position: absolute;
  z-index: 4;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 9px;
  padding: 6px 10px;
  border-radius: 999px;
  top: 12px; left: 12px;
}
.bake .photo {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-3);
}
.bake .photo svg, .bake .photo .placeholder {
  width: 100%; height: 100%;
}
.bake .photo .placeholder {
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  background:
    repeating-linear-gradient(45deg,
      var(--cream-2) 0 14px,
      var(--cream-3) 14px 28px);
  text-align: center;
}
.bake .meta {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.bake .name {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-weight: 500;
  margin: 0;
}
.bake .name em {
  font-family: var(--script);
  font-style: normal;
  color: var(--accent);
  font-weight: 400;
}
.bake .price {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-weight: 500;
}
.bake .desc {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.bake .ingredients {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
  opacity: 0.8;
}
.bake .add {
  margin-top: 14px;
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.bake .add:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.bake.added .add { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Span variants for editorial composition */
.bake.s4 { grid-column: span 4; }
.bake.s5 { grid-column: span 5; }
.bake.s6 { grid-column: span 6; }
.bake.s7 { grid-column: span 7; }
.bake.s8 { grid-column: span 8; }

@media (max-width: 980px) {
  .bake.s4, .bake.s5, .bake.s6, .bake.s7, .bake.s8 { grid-column: span 6; }
}
@media (max-width: 600px) {
  .bake.s4, .bake.s5, .bake.s6, .bake.s7, .bake.s8 { grid-column: span 12; }
  .bakeboard-intro { grid-template-columns: 1fr; }
  .bakeboard-intro .filters { justify-self: start; }
}

/* ============================================================
   About — Polaroid stack + recipe card
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.poly-stack {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
}
.poly {
  position: absolute;
  background: #fff;
  padding: 14px 14px 56px;
  box-shadow: 0 22px 40px rgba(42, 24, 24, 0.18), 0 1px 0 rgba(0,0,0,0.04);
  border-radius: 2px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.poly img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
.poly .cap {
  position: absolute;
  bottom: 16px; left: 14px; right: 14px;
  text-align: center;
  font-family: var(--script);
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}
.poly.p1 { left: 6%; top: 4%; width: 64%; transform: rotate(-5deg); z-index: 3; }
.poly.p2 { right: 4%; top: 10%; width: 50%; transform: rotate(6deg); z-index: 2; }
.poly.p3 { left: 18%; bottom: 0%; width: 56%; transform: rotate(-1.5deg); z-index: 4; }
.poly.solo { left: 50%; top: 50%; width: 78%; transform: translate(-50%, -50%) rotate(-3deg); }
.poly-stack:hover .solo { transform: translate(-50%, -50%) rotate(-1deg); }
.poly-stack:hover .p1 { transform: rotate(-7deg) translate(-4px, -4px); }
.poly-stack:hover .p2 { transform: rotate(8deg) translate(6px, -2px); }
.poly-stack:hover .p3 { transform: rotate(-2deg) translateY(-6px); }

.poly .tape {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 70px; height: 22px;
  background: rgba(255, 240, 180, 0.72);
  border-inline: 1px dashed rgba(0,0,0,0.05);
}

.about-copy h3.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 18px;
}
.about-copy .display {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0 0 28px;
  font-weight: 500;
}
.about-copy .display em {
  font-family: var(--script);
  font-style: normal;
  color: var(--accent);
  font-weight: 400;
}
.about-copy p {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 56ch;
}

.recipe-card {
  margin-top: 36px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 28px;
  border-radius: var(--radius-lg);
  position: relative;
}
.recipe-card::before {
  content: "FAMILY RECIPE NO. 042";
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--paper);
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.recipe-card .pull {
  font-family: var(--script);
  color: var(--accent);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
}
.recipe-card .ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.recipe-card .ingredients-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
}
.recipe-card .ingredients-list li::before {
  content: attr(data-i) ".";
  color: var(--accent);
  width: 26px;
}
.recipe-card .ingredients-list li::after {
  content: attr(data-q);
}
.recipe-card .ingredients-list li .dots {
  border-bottom: 1px dotted var(--line);
  height: 1em;
}
.about-signature {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-signature .sig {
  font-family: var(--script);
  color: var(--accent);
  font-size: 3.4rem;
  line-height: 0.8;
}
.about-signature .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .poly-stack { max-width: 380px; }
}

/* ============================================================
   Values strip
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s;
}
.value:last-child { border-right: 0; }
.value:hover { background: var(--accent-tint); }
.value .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.value h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}
.value h3 em { font-family: var(--script); font-style: normal; color: var(--accent); font-weight: 400; }
.value p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .values-grid { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: 1px solid var(--line); }
  .value:last-child { border-bottom: 0; }
}

/* ============================================================
   Gallery — staggered editorial
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: 16px;
}
.gallery .tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg,
      var(--cream-2) 0 14px,
      var(--cream-3) 14px 28px);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
}
.gallery .tile::after {
  content: attr(data-label);
  padding: 8px 14px;
  background: rgba(255,245,236,0.8);
  border-radius: 4px;
}
.gallery .tile.real {
  background: none;
}
.gallery .tile.real::after { display: none; }
.gallery .tile.real img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery .t1 { grid-column: span 5; grid-row: span 5; }
.gallery .t2 { grid-column: span 4; grid-row: span 3; }
.gallery .t3 { grid-column: span 3; grid-row: span 4; }
.gallery .t4 { grid-column: span 4; grid-row: span 4; }
.gallery .t5 { grid-column: span 3; grid-row: span 3; }
.gallery .t6 { grid-column: span 5; grid-row: span 3; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 60px; }
  .gallery .t1 { grid-column: span 6; grid-row: span 5; }
  .gallery .t2, .gallery .t3, .gallery .t4, .gallery .t5, .gallery .t6 {
    grid-column: span 3; grid-row: span 3;
  }
}

/* ============================================================
   Diary / weekly schedule
   ============================================================ */
.diary {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.day {
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 220px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.day .dh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.day .dh .d {
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  font-weight: 500;
}
.day ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--ink); line-height: 1.3; }
.day ul li::before { content: "— "; color: var(--accent); }
.day.rest { background: var(--accent-tint); }
.day.rest .rest-msg {
  font-family: var(--script);
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  margin-top: auto;
}
.day.today {
  background: var(--ink);
  color: var(--paper);
}
.day.today .dh, .day.today .dh .d, .day.today ul li { color: var(--paper); }
.day.today ul li::before { color: var(--paper); }
.day.today::before {
  content: "TODAY";
  position: absolute;
  top: 8px; right: 12px;
  background: var(--accent);
  color: var(--paper);
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  border-radius: 2px;
}

@media (max-width: 1100px) {
  .diary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .diary { grid-template-columns: 1fr; }
}

/* ============================================================
   Maternity notice
   ============================================================ */
.maternity {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.maternity-aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.maternity-aside .weeks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.maternity-aside .big-num {
  font-family: var(--serif);
  font-size: clamp(7rem, 16vw, 14rem);
  font-style: italic;
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.maternity-aside .lab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}
.maternity-aside .aside-copy {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
  max-width: 38ch;
}
.maternity-aside .aside-copy em {
  font-family: var(--script);
  font-style: normal;
  color: var(--accent);
  font-size: 1.4em;
  line-height: 0.8;
  display: inline-block;
  transform: translateY(0.08em);
}
.maternity-aside .aside-copy.thanks {
  font-style: normal;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.maternity-aside .script-inline {
  font-family: var(--script);
  color: var(--accent);
  font-size: 1.5em;
  line-height: 0.8;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  border-left: 1px solid var(--line);
}
.timeline .tl {
  position: relative;
  padding: 0 0 44px 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.timeline .tl:last-child { padding-bottom: 0; }
.timeline .tl-dot {
  position: absolute;
  left: -7px;
  top: 6px;
  width: 13px; height: 13px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.timeline .tl.open .tl-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-tint); }
.timeline .tl.soft .tl-dot { background: var(--paper); border: 1px dashed var(--accent); }
.timeline .tl.rest .tl-dot {
  background: var(--paper);
  border: 1px solid var(--accent);
  width: 14px; height: 14px;
  left: -7px;
}
.timeline .tl-when {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline .tl-body h4 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 4px 0 8px;
  color: var(--ink);
}
.timeline .tl.rest .tl-body h4 {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.timeline .tl-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
}

@media (max-width: 880px) {
  .maternity { grid-template-columns: 1fr; }
  .maternity-aside { position: static; }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.note-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 52px);
  border-radius: 4px;
  background-image:
    linear-gradient(to right, transparent 0, transparent 38px, rgba(184,56,95,0.18) 38px, rgba(184,56,95,0.18) 39px, transparent 39px),
    repeating-linear-gradient(to bottom,
      transparent 0,
      transparent 35px,
      var(--line) 35px,
      var(--line) 36px);
  background-attachment: local;
}
[data-theme="midnight"] .note-card {
  background-image:
    linear-gradient(to right, transparent 0, transparent 38px, rgba(232,155,176,0.3) 38px, rgba(232,155,176,0.3) 39px, transparent 39px),
    repeating-linear-gradient(to bottom,
      transparent 0,
      transparent 35px,
      var(--line) 35px,
      var(--line) 36px);
}
.note-card .stamp-tl {
  position: absolute;
  top: -28px;
  right: 28px;
  width: 90px; height: 90px;
  background: url("assets/KCK-stamp-cherry.png") center/contain no-repeat;
  filter: drop-shadow(0 6px 14px rgba(122,31,61,0.3));
  transform: rotate(8deg);
}
.note-card h4.salutation {
  font-family: var(--script);
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 18px;
  font-weight: 400;
  line-height: 0.9;
}
.note-card p {
  font-size: 0.98rem;
  margin-bottom: 22px;
}
.note-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
}
.field {
  display: flex;
  flex-direction: column;
}
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.field input,
.field select,
.field textarea {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
}
.field textarea {
  min-height: 88px;
  resize: vertical;
  font-style: italic;
}
.note-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.note-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.contact-block .lab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-block .val {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
}
.contact-block.hours .val {
  font-style: normal;
  font-size: 1rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin-top: 6px;
}
.contact-block.hours .val span:nth-child(odd) { color: var(--ink-soft); }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .note-fields { grid-template-columns: 1fr; }
}

/* ============================================================
   Cart drawer
   ============================================================ */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 10, 0.4);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  right: 0; top: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--paper);
  z-index: 96;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  margin: 0;
}
.drawer-head h3 em { font-family: var(--script); font-style: normal; color: var(--accent); }
.drawer-close {
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.drawer-close:hover { background: var(--accent-tint); }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer-empty {
  text-align: center;
  padding: 60px 20px;
  font-family: var(--script);
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1.2;
}
.drawer-empty img { width: 80px; opacity: 0.7; margin: 0 auto 16px; }
.cart-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  align-items: center;
}
.cart-row .pic {
  width: 60px; height: 60px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(45deg, var(--cream-2) 0 8px, var(--cream-3) 8px 16px);
}
.cart-row .nm { font-family: var(--serif); font-weight: 500; font-size: 1rem; line-height: 1.1; }
.cart-row .ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 6px;
}
.cart-row .ctrl button {
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.cart-row .pr {
  font-family: var(--mono);
  font-size: 12px;
  text-align: right;
}
.drawer-foot {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
}
.drawer-total .v { font-family: var(--mono); font-style: normal; font-size: 1.4rem; }
.drawer-foot .note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 80px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}
[data-theme="midnight"] .footer { background: #0E0608; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 14px;
  opacity: 0.7;
}
.footer .big {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 18px;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.footer .big em { font-family: var(--script); color: #F2A8BD; font-style: normal; }
[data-theme="midnight"] .footer .big em { color: var(--accent); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a {
  text-decoration: none;
  color: var(--paper);
  opacity: 0.8;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}
.footer ul a:hover { opacity: 1; color: #F2A8BD; }
.footer-bottom {
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
