/* =====================================================================
   Silkpie Recipe - "Sea-glass Pie Counter"
   Cool paper + sea-glass mint + hot tomato red. Gloock display, Golos Text body.
   Signature shapes: arches, pie meters, a category wheel, diamond lattice,
   die-cut price tags, index-card tabs and a scalloped crust footer.
   ===================================================================== */

:root {
  --paper: #f2f6f4;
  --paper-2: #e5eeeb;
  --card: #ffffff;
  --ink: #16282a;
  --ink-2: #2c4144;
  --ink-soft: #536a6c;
  --line: #d2e0dc;
  --line-2: #bcd0cb;
  --glass: #bfe6dc;
  --glass-2: #dcf2ec;
  --glass-deep: #2f7c70;
  --pie: #d93a23;
  --pie-hot: #ff5b3d;
  --pie-dark: #b12c18;
  --custard: #ffe7a3;
  --custard-2: #fff4d2;
  --ok: #247a52;
  --warn: #a45a00;

  --font-display: "Gloock", "Georgia", "Times New Roman", serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --arch: 999px 999px 22px 22px;
  --shadow-1: 0 1px 0 rgba(22, 40, 42, .05), 0 10px 26px -18px rgba(22, 40, 42, .45);
  --shadow-2: 0 2px 0 rgba(22, 40, 42, .04), 0 26px 50px -30px rgba(22, 40, 42, .55);
  --wrap: 1240px;
  --gutter: 16px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  padding-top: calc(var(--header-h) + 18px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glass-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pie-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--pie-hot); outline-offset: 2px; border-radius: 6px; }
mark { background: var(--custard); color: inherit; padding: 0 .2em; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--ink-soft); }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; vertical-align: -0.18em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
[hidden] { display: none !important; }
main:focus { outline: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-pie { background: var(--pie); color: #fff; box-shadow: 0 8px 18px -10px rgba(217, 58, 35, .9); }
.btn-pie:hover { background: var(--pie-dark); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- eyebrows + section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow-pie {
  --deg: 90deg; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--pie) var(--deg), var(--glass) 0); box-shadow: inset 0 0 0 1.5px var(--ink);
}
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.shead--center { justify-content: center; text-align: center; }
.shead--center .shead-lede { margin-inline: auto; }
.shead-title { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.01em; margin: 0; }
.shead-lede { max-width: 560px; color: var(--ink-soft); margin: 10px 0 0; }
.shead-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--pie); padding-bottom: 2px; }
.shead-link:hover { color: var(--pie-dark); }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--glass { background: var(--glass-2); }
.page-title { font-family: var(--font-display); font-size: clamp(34px, 5vw, 56px); letter-spacing: -.01em; }

/* ---------- header: floating pill ---------- */
.site-header { position: fixed; inset: 12px 0 auto; z-index: 90; padding: 0 var(--gutter); pointer-events: none; }
.pillbar {
  pointer-events: auto; max-width: var(--wrap); margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; gap: 14px; padding: 0 10px 0 18px;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-1);
  transition: box-shadow .2s, transform .25s var(--ease);
}
.site-header.is-scrolled .pillbar { box-shadow: var(--shadow-2); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 40px; height: 40px; transition: transform .5s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-60deg); }
.brand-word { font-family: var(--font-display); font-size: 25px; line-height: 1; display: flex; flex-direction: column; }
.brand-word small { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--pie); margin-top: 3px; }
.brand--light, .brand--light:hover { color: #fff; }

.pillnav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.pillnav-link { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.pillnav-link:hover, .pillnav-link[aria-current] { background: var(--glass-2); color: var(--ink); }
.pillnav-link[aria-current] { box-shadow: inset 0 -2px 0 var(--pie); }
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 16px); left: -40px; width: min(760px, 86vw); padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.mega::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; text-decoration: none; color: var(--ink); }
.mega-item:hover { background: var(--glass-2); color: var(--ink); }
.mega-thumb { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; background: var(--paper-2); }
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mega-item strong { display: block; font-size: 14.5px; line-height: 1.25; }
.mega-item em { font-style: normal; font-size: 12.5px; color: var(--ink-soft); }
.mega-foot { display: flex; gap: 20px; flex-wrap: wrap; padding: 14px 10px 2px; margin-top: 10px; border-top: 1px dashed var(--line-2); }
.mega-foot a { font-weight: 600; font-size: 14px; color: var(--ink); }

.pillsearch { position: relative; flex: 1 1 auto; min-width: 150px; max-width: 360px; margin-left: auto; display: flex; align-items: center; }
.pillsearch-ico { position: absolute; left: 14px; color: var(--ink-soft); pointer-events: none; }
.pillsearch input {
  width: 100%; height: 46px; padding: 0 88px 0 42px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); font-size: 15px; -webkit-appearance: none; appearance: none;
}
.pillsearch input::-webkit-search-cancel-button { display: none; }
.pillsearch input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px var(--glass); }
.pillsearch-go {
  position: absolute; right: 5px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.pillsearch-go:hover { background: var(--pie); }
.suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; min-width: 320px; z-index: 5;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-2); padding: 8px; overflow: hidden;
}
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.suggest-item:hover, .suggest-item.is-active { background: var(--glass-2); color: var(--ink); }
.suggest-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.suggest-item strong { display: block; font-size: 14.5px; line-height: 1.25; }
.suggest-item span span { font-size: 12.5px; color: var(--ink-soft); }
.suggest-all { display: block; text-align: center; padding: 10px; font-weight: 600; font-size: 14px; color: var(--pie-dark); border-top: 1px dashed var(--line-2); margin-top: 6px; }
.suggest-empty { padding: 12px; font-size: 14px; color: var(--ink-soft); margin: 0; }

.pillactions { display: flex; align-items: center; gap: 6px; flex: none; }
.pillactions-signin { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 999px; white-space: nowrap; }
.pillactions-signin:hover { background: var(--glass-2); color: var(--ink); }
.iconbtn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 0; background: var(--glass-2); color: var(--ink); cursor: pointer; text-decoration: none;
}
.iconbtn:hover { background: var(--glass); color: var(--ink); }
.iconbtn .ico { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  background: var(--pie); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}
.cart-count.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.dot-member { position: absolute; bottom: 4px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: conic-gradient(var(--pie) 300deg, var(--custard) 0); border: 2px solid #fff; }
.menubtn { display: none; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 150; background: rgba(22, 40, 42, .45); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); overflow-y: auto;
  background: var(--paper); padding: 18px 20px 40px; border-radius: 28px 0 0 28px;
  animation: slidein .28s var(--ease);
}
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-nav { display: grid; gap: 2px; }
.drawer-nav a { padding: 12px 14px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.drawer-nav a:hover { background: var(--glass-2); }
.drawer-label { margin: 22px 14px 8px; font-size: 12px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); }
.drawer-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px; }
.drawer-cats a { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }

/* bottom tab bar (mobile) */
.tabbar { display: none; }

/* toasts */
.toasts { position: fixed; top: calc(var(--header-h) + 26px); right: var(--gutter); z-index: 95; display: grid; gap: 10px; width: min(420px, calc(100vw - 2 * var(--gutter))); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 18px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow-2); animation: toastin .35s var(--ease); }
.toast p { margin: 0; flex: 1; font-size: 15px; }
.toast--success { background: var(--glass-deep); }
.toast--error { background: var(--pie-dark); }
.toast-close { background: transparent; border: 0; color: #fff; cursor: pointer; padding: 2px; }
.toast.is-leaving { opacity: 0; transform: translateY(-8px); transition: .25s; }
@keyframes toastin { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- cookie notice ---------- */
.cookie {
  position: fixed; left: var(--gutter); bottom: 18px; z-index: 120; width: min(520px, calc(100vw - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-2);
}
.cookie-text { margin: 0; font-size: 14px; line-height: 1.45; flex: 1 1 auto; min-width: 0; }
.cookie-btn { flex: 0 0 auto; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(24px, 4vw, 48px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; margin-bottom: 22px; }
.kicker-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pie); box-shadow: 0 0 0 0 rgba(217, 58, 35, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(217, 58, 35, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 58, 35, 0); } }
.hero-title { font-family: var(--font-display); font-size: clamp(54px, 9.6vw, 148px); line-height: .92; letter-spacing: -.025em; margin: 0; }
.hl { display: block; white-space: nowrap; }
.hl em { font-style: normal; color: var(--pie); }
.hl-pill { display: inline-block; vertical-align: middle; width: 1.55em; height: .78em; border-radius: 999px; overflow: hidden; margin: -.12em .02em 0; box-shadow: 0 0 0 4px #fff, var(--shadow-1); transform: rotate(-4deg); }
.hl-pill--round { width: .8em; transform: rotate(6deg); }
.hl-pill img { width: 100%; height: 100%; object-fit: cover; }
.hero-side { padding-bottom: 12px; }
.hero-lede { font-size: 18px; color: var(--ink-2); }
.hero-search { display: flex; gap: 8px; padding: 7px; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 6px 6px 0 var(--glass); margin: 20px 0 16px; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font-size: 16px; outline: none; }
.hero-search .btn { flex: none; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.hero-chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--glass-2); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.hero-chips a:hover { border-color: var(--ink); background: #fff; }
.hero-chips--ink a { background: #fff; border-color: var(--line); text-transform: capitalize; }

.reel { position: relative; margin-top: clamp(36px, 5vw, 64px); padding: 34px 0 44px; background: linear-gradient(180deg, transparent 0 38%, var(--glass) 38% 100%); overflow: hidden; }
.reel-track { display: flex; gap: 22px; width: max-content; animation: reel 60s linear infinite; padding-left: 22px; }
.reel:hover .reel-track, .reel:focus-within .reel-track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }
.reel-item { width: 230px; flex: none; text-decoration: none; color: var(--ink); }
.reel-item:nth-child(odd) { margin-top: 28px; }
.reel-img { display: block; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 5px #fff, var(--shadow-1); }
.reel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.reel-item:hover .reel-img img { transform: scale(1.06); }
.reel-cap { display: block; padding: 12px 6px 0; }
.reel-cap strong { display: block; font-size: 15.5px; line-height: 1.3; }
.reel-cap em { font-style: normal; font-size: 13px; color: var(--ink-2); }

/* ---------- pie meters ---------- */
.meters { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.meter { --p: 50; display: grid; grid-template-columns: 46px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.meter-ring { grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(var(--pie) calc(var(--p) * 3.6deg), var(--glass-2) 0); position: relative; }
.meter-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.meter-ring--star, .meter-ring--icon { background: var(--custard); display: grid; place-items: center; }
.meter-ring--star::after, .meter-ring--icon::after { display: none; }
.meter-ring--star .ico { color: var(--warn); width: 22px; height: 22px; }
.meter-ring--icon .ico { width: 22px; height: 22px; }
.meter--easy .meter-ring--icon { background: var(--glass); }
.meter--hard .meter-ring--icon { background: #ffd2c8; color: var(--pie-dark); }
.meter-val { font-weight: 700; font-size: 15px; line-height: 1.1; }
.meter-label { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- spotlight ---------- */
.spotlight-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.spotlight-media { position: relative; display: block; aspect-ratio: 5 / 6; border-radius: var(--arch); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-2); }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.spotlight-media:hover img { transform: scale(1.04); }
.spotlight-stamp {
  position: absolute; right: 22px; bottom: 22px; width: 118px; height: 118px; border-radius: 50%;
  background: var(--custard); color: var(--ink); display: grid; place-content: center; text-align: center; transform: rotate(-12deg);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .7);
}
.spotlight-stamp span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.spotlight-stamp strong { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; }
.spotlight-title { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.015em; }
.spotlight-title a { color: var(--ink); text-decoration: none; }
.spotlight-title a:hover { color: var(--pie-dark); }
.spotlight-desc { font-size: 18px; color: var(--ink-2); }
.ribbon-note { position: relative; margin: 0 0 26px; padding: 16px 20px 16px 24px; background: var(--custard-2); border-radius: 4px 18px 18px 4px; border-left: 5px solid var(--pie); }
.ribbon-note p { margin: 0; font-size: 15.5px; }

/* ---------- category wheel ---------- */
.wheel { --n: 12; --size: min(860px, 92vw); position: relative; width: var(--size); height: var(--size); margin: 12px auto 0; }
.wheel::before { content: ""; position: absolute; inset: 11%; border-radius: 50%; border: 2px dashed var(--line-2); }
.wheel-hub { position: absolute; inset: 31%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--pie) 0 60deg, var(--glass) 60deg 360deg); box-shadow: var(--shadow-2); }
.wheel-hub::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--paper); }
.wheel-hub > span { position: relative; z-index: 1; }
.wheel-hub-num { font-family: var(--font-display); font-size: clamp(48px, 7vw, 92px); line-height: 1; }
.wheel-hub-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.wheel-ring { list-style: none; position: absolute; inset: 0; }
.wheel-item {
  --angle: calc(360deg / var(--n) * var(--i) - 90deg);
  position: absolute; top: 50%; left: 50%; width: 132px; margin: -66px 0 0 -66px;
  transform: rotate(var(--angle)) translate(calc(var(--size) * .39)) rotate(calc(-1 * var(--angle)));
}
.wheel-item a { display: grid; justify-items: center; text-align: center; text-decoration: none; color: var(--ink); }
.wheel-img { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px #fff, var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s; }
.wheel-img img { width: 100%; height: 100%; object-fit: cover; }
.wheel-item a:hover .wheel-img { transform: scale(1.08); box-shadow: 0 0 0 5px var(--pie), var(--shadow-2); }
.wheel-name { margin-top: 10px; font-weight: 700; font-size: 14px; line-height: 1.2; }
.wheel-count { font-size: 12px; color: var(--ink-soft); }

/* ---------- recipe cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rcard { position: relative; display: flex; flex-direction: column; }
.rcard-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: var(--paper-2); }
.rcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rcard:hover .rcard-media img { transform: scale(1.06); }
.rcard-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(22, 40, 42, .08); pointer-events: none; }
.lock-tag {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--ink); color: var(--custard); font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.lock-tag .ico { width: 14px; height: 14px; }
.lock-tag--lg { bottom: 20px; font-size: 13.5px; padding: 8px 16px 8px 12px; }
.rcard-body { padding: 14px 4px 0; }
.rcard-cat { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rcard-cat a { color: var(--glass-deep); text-decoration: none; }
.rcard-title { font-family: var(--font-display); font-size: 22px; line-height: 1.15; margin: 0 0 10px; }
.rcard-title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--pie), var(--pie)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); }
.rcard-title a:hover { background-size: 100% 2px; color: var(--ink); }
.rcard-title a::after { content: ""; position: absolute; inset: 0; }
.rcard-cat a, .rcard-media { position: relative; z-index: 1; }
.rcard-meta { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; color: var(--ink-2); }
.rcard-meta li { display: inline-flex; align-items: center; gap: 5px; }
.rcard-meta .ico { color: var(--warn); width: 15px; height: 15px; }
.pie-mini::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--pie) calc(var(--p) * 3.6deg), var(--glass) 0); box-shadow: inset 0 0 0 1.5px var(--ink); }
.diff { padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--glass-2); }
.diff--medium { background: var(--custard); }
.diff--hard { background: #ffd9cf; color: var(--pie-dark); }

/* row variant: image left */
.rcard--row { flex-direction: row; align-items: center; gap: 16px; padding: 10px; background: #fff; border-radius: 22px; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s var(--ease); }
.rcard--row:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); }
.rcard--row .rcard-media { width: 118px; flex: none; aspect-ratio: 1; border-radius: 50%; }
.rcard--row .rcard-body { padding: 0 8px 0 0; min-width: 0; }
.rcard--row .rcard-title { font-size: 19px; margin-bottom: 6px; }
.rcard--row .rcard-desc { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.rcard--row .lock-tag { bottom: 4px; padding: 3px 8px 3px 6px; font-size: 10.5px; }
.row-list { display: grid; gap: 14px; }
.row-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-list--results .rcard--row .rcard-media { width: 150px; }

/* ---------- quick section ---------- */
.quick-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.quick-intro { position: sticky; top: 120px; }
.quick-grid .row-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-grid .rcard-desc { display: none; }

/* ---------- membership ticket ---------- */
.ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: var(--ink); color: #fff; border-radius: var(--r-lg); overflow: hidden; }
.ticket::before, .ticket::after { content: ""; position: absolute; left: calc(58.33% - 18px); width: 36px; height: 36px; border-radius: 50%; background: var(--paper); }
.ticket::before { top: -18px; }
.ticket::after { bottom: -18px; }
.ticket-main { padding: clamp(28px, 5vw, 60px); }
.ticket .eyebrow { color: var(--glass); }
.ticket-title { font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 54px); }
.ticket-main p { color: #d5e4e1; max-width: 520px; }
.ticket-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.ticket-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ticket-points .ico { color: var(--glass); }
.ticket-stub { padding: clamp(28px, 4vw, 48px); border-left: 2px dashed rgba(255, 255, 255, .25); display: grid; gap: 14px; align-content: center; background: radial-gradient(circle at 100% 0, rgba(191, 230, 220, .16), transparent 60%); }
.stub-plan { position: relative; display: flex; align-items: baseline; justify-content: space-between; padding: 16px 20px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); }
.stub-plan--best { background: var(--glass); color: var(--ink); border-color: var(--glass); }
.stub-name { font-weight: 700; }
.stub-price { font-family: var(--font-display); font-size: 32px; }
.stub-price small { font-family: var(--font-body); font-size: 14px; margin-left: 2px; }
.stub-flag { position: absolute; top: -11px; left: 16px; padding: 2px 10px; border-radius: 999px; background: var(--pie); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- product cards: die-cut price tags ---------- */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.pcard { position: relative; display: flex; flex-direction: column; }
.pcard-media { display: block; aspect-ratio: 1; border-radius: 26px 26px 50% 50% / 26px 26px 18% 18%; overflow: hidden; background: #fff; box-shadow: 0 16px 0 -8px var(--glass), var(--shadow-1); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-tag {
  position: absolute; top: 14px; right: -6px; z-index: 2; padding: 7px 14px 7px 24px; background: var(--custard); color: var(--ink);
  font-weight: 700; font-size: 15px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); transform: rotate(4deg);
  filter: drop-shadow(0 4px 6px rgba(22, 40, 42, .2));
}
.pcard-tag::before { content: ""; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--paper); }
.pcard-body { padding: 22px 4px 0; display: flex; flex-direction: column; flex: 1; }
.pcard-cat { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--glass-deep); }
.pcard-title { font-family: var(--font-display); font-size: 21px; margin: 0 0 6px; }
.pcard-title a { color: var(--ink); text-decoration: none; }
.pcard-title a:hover { color: var(--pie-dark); }
.pcard-desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; flex: 1; }
.pcard-add { align-self: flex-start; }
.pcard-add.is-added { background: var(--ok); }

/* ---------- lattice (diamond mosaic) ---------- */
.lattice-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.lattice { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 6% 0; }
.lattice-tile { aspect-ratio: 1; margin: -14% 0; }
.lattice-tile:nth-child(7n+1), .lattice-tile:nth-child(7n+2), .lattice-tile:nth-child(7n+3) { transform: translateX(50%); }
.lattice-tile figure { position: relative; margin: 0; width: 100%; height: 100%; clip-path: polygon(50% 2%, 98% 50%, 50% 98%, 2% 50%); overflow: hidden; background: var(--paper-2); transition: transform .4s var(--ease); }
.lattice-tile figure:hover { transform: scale(1.06); z-index: 2; }
.lattice-tile img { width: 100%; height: 100%; object-fit: cover; }
.lattice-tile figcaption { position: absolute; left: 0; right: 0; bottom: 22%; text-align: center; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s; }
.lattice-tile figure:hover figcaption { opacity: 1; }
.lattice--wide { grid-template-columns: repeat(5, 1fr); padding: 0; overflow: hidden; }
.lattice--wide .lattice-tile { margin: 0 -5%; transform: none !important; }
.lattice--wide .lattice-tile:nth-child(even) { transform: translateY(28%) !important; }
.lattice-section { background: linear-gradient(180deg, var(--paper) 0, var(--glass-2) 100%); }

/* ---------- index cards (journal) ---------- */
.index-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 26px; padding-top: 18px; }
.icard { position: relative; background: #fff; border-radius: 4px 22px 22px 22px; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.icard:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-2); }
.icard-tab { position: absolute; top: -30px; left: -1px; padding: 6px 16px 5px; background: var(--glass); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.icard-tab--static { position: static; display: inline-block; border-radius: 999px; border: 0; margin-bottom: 14px; }
.icard-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin: 10px 10px 0; border-radius: 14px; }
.icard-media img { width: 100%; height: 100%; object-fit: cover; }
.icard-body { padding: 16px 20px 22px; background-image: repeating-linear-gradient(180deg, transparent 0 29px, var(--glass-2) 29px 30px); background-position: 0 14px; }
.icard-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.icard-title { font-family: var(--font-display); font-size: 23px; }
.icard-title a { color: var(--ink); text-decoration: none; }
.icard-title a:hover { color: var(--pie-dark); }
.icard-excerpt { font-size: 15px; color: var(--ink-2); margin: 0; }

/* ---------- inner page hero ---------- */
.phero { position: relative; padding: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 44px); overflow: hidden; }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 32px; align-items: center; }
.phero-title { font-family: var(--font-display); font-size: clamp(40px, 6.4vw, 84px); line-height: .98; letter-spacing: -.02em; margin: 0 0 14px; }
.phero-title em { font-style: normal; color: var(--pie); }
.phero-tagline { font-size: 20px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.phero-lede { font-size: 17.5px; color: var(--ink-2); max-width: 680px; }
.phero-moon { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: end; border-radius: 50%; overflow: hidden; margin-right: -12%; box-shadow: 0 0 0 14px var(--glass-2), 0 0 0 15px var(--line); }
.phero-moon img { width: 100%; height: 100%; object-fit: cover; }
.phero-moon--arch { border-radius: var(--arch); aspect-ratio: 5 / 4; margin-right: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--pie-dark); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.slice-rail { display: flex; gap: 8px; overflow-x: auto; padding: 22px 2px 6px; scrollbar-width: thin; }
.slice-rail--wrap { flex-wrap: wrap; overflow: visible; }
.slice-chip { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 5px 16px 5px 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.slice-chip:not(:has(.slice-chip-img)) { padding-left: 16px; }
.slice-chip small { color: var(--ink-soft); font-weight: 500; }
.slice-chip:hover { border-color: var(--ink); color: var(--ink); }
.slice-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.slice-chip.is-on small { color: var(--glass); }
.slice-chip-img { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; }
.slice-chip-img img { width: 100%; height: 100%; object-fit: cover; }

/* filters (sieve) */
.sieve { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 14px; margin-bottom: 22px; box-shadow: var(--shadow-1); }
.sieve-q { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sieve-q > .ico { position: absolute; left: 16px; color: var(--ink-soft); }
.sieve-q input { flex: 1; min-width: 0; height: 52px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); padding: 0 16px 0 46px; font-size: 16.5px; }
.sieve-q input:focus { outline: none; border-color: var(--ink); background: #fff; }
.sieve-q .btn { position: absolute; right: 7px; }
.sieve-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.sieve-field { display: grid; gap: 4px; flex: 1 1 150px; }
.sieve-field > span, .sieve-field > label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-left: 14px; }
.sieve-field select, .field select {
  height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2316282a' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  padding: 0 36px 0 14px; -webkit-appearance: none; appearance: none; cursor: pointer; font-size: 15px; width: 100%;
}
.sieve-field select:focus, .field select:focus { outline: none; border-color: var(--ink); }
.sieve-field--inline { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.sieve-field--inline label { padding: 0; }
.sieve-field--inline select { width: auto; }
.sieve-clear { align-self: center; font-weight: 600; font-size: 14px; color: var(--pie-dark); padding: 0 8px; }
.result-count { font-weight: 600; margin: 4px 4px 22px; color: var(--ink-2); }
.result-note { display: block; font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.search-start .shead-title { font-size: 30px; margin: 10px 0 14px; }
.search-start .hero-chips { margin-bottom: 36px; }

.members-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px 16px 22px; border-radius: 22px; background: var(--custard-2); border: 1px dashed var(--warn); }
.members-strip > .ico { width: 24px; height: 24px; color: var(--ink); }
.members-strip p { margin: 0; flex: 1 1 280px; }

/* empty state */
.empty { text-align: center; padding: 48px 16px 56px; max-width: 560px; margin: 0 auto; }
.empty-pie { display: block; width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; background: conic-gradient(transparent 0 60deg, var(--glass) 60deg 360deg); box-shadow: inset 0 0 0 3px var(--ink); position: relative; }
.empty-pie::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--ink); }
.empty h2 { font-family: var(--font-display); font-size: 32px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* pagination */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 48px; }
.pager-list { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager-num, .pager-step { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; text-decoration: none; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.pager-num:hover, .pager-step:hover { border-color: var(--ink); color: var(--ink); }
.pager-num.is-current { background: conic-gradient(var(--pie) 0 90deg, var(--ink) 90deg); color: #fff; border-color: var(--ink); }
.pager-step.is-disabled { opacity: .45; }
.pager-gap { align-self: center; padding: 0 4px; color: var(--ink-soft); }
.pager-info { width: 100%; text-align: center; margin: 4px 0 0; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- recipe detail ---------- */
.recipe { padding-top: 12px; }
.recipe-head { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.recipe-photo { position: sticky; top: 112px; }
.recipe-arch { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-2); }
.recipe-arch img { width: 100%; height: 100%; object-fit: cover; }
.plate-study { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.study { margin: 0; text-align: center; }
.study-lens { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); background: var(--paper-2); }
.study-lens img { width: 100%; height: 100%; object-fit: cover; }
.study figcaption { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
.recipe-title { font-family: var(--font-display); font-size: clamp(40px, 5.6vw, 76px); line-height: .98; letter-spacing: -.02em; margin: 0 0 14px; }
.recipe-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.recipe-rating span:last-child { color: var(--ink-soft); font-size: 14.5px; }
.stars { --r: 4.5; position: relative; display: inline-block; width: 110px; height: 20px; background: linear-gradient(90deg, var(--warn) calc(var(--r) / 5 * 100%), var(--line-2) 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='m11 1 2.9 6 6.6.8-4.9 4.5 1.3 6.5L11 15.6l-5.9 3.2 1.3-6.5L1.5 7.8 8.1 7 11 1Z'/%3E%3C/svg%3E") repeat-x left center / 22px 20px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='m11 1 2.9 6 6.6.8-4.9 4.5 1.3 6.5L11 15.6l-5.9 3.2 1.3-6.5L1.5 7.8 8.1 7 11 1Z'/%3E%3C/svg%3E") repeat-x left center / 22px 20px; }
.recipe-desc { font-size: 19px; color: var(--ink-2); }
.meters--recipe .meter { padding-right: 14px; }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.recipe-actions form { margin: 0; }

.recipe-body { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-top: clamp(48px, 7vw, 88px); }
.ingredients { position: sticky; top: 112px; background: var(--glass-2); border-radius: var(--r-lg); padding: 26px 24px; border: 1px solid var(--glass); }
.ingredients-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ingredients h2, .method-title { font-family: var(--font-display); font-size: 34px; margin: 0; }
.ingredients-count { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.checklist { list-style: none; }
.checklist li { border-top: 1px dashed var(--line-2); }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 2px; cursor: pointer; }
.checklist input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; background: #fff; margin-top: 1px; transition: background .15s; }
.check-box .ico { width: 14px; height: 14px; color: #fff; opacity: 0; }
.checklist input:checked + .check-box { background: var(--pie); border-color: var(--pie); }
.checklist input:checked + .check-box .ico { opacity: 1; }
.checklist input:checked ~ .ing-text { text-decoration: line-through; color: var(--ink-soft); }
.checklist input:focus-visible + .check-box { outline: 3px solid var(--pie-hot); outline-offset: 2px; }
.ing-text em { font-style: normal; color: var(--ink-soft); }
.ingredients-fade { display: grid; gap: 14px; padding: 12px 2px; }
.ingredients-fade span { height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--glass), rgba(191, 230, 220, .2)); filter: blur(1px); }
.ingredients-fade span:nth-child(2) { width: 80%; }
.ingredients-fade span:nth-child(3) { width: 60%; }
.ingredients-more { font-weight: 700; font-size: 14px; margin: 8px 0 0; }
.method-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.method-title span { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.steps { list-style: none; position: relative; }
.steps::before { content: ""; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding-bottom: 28px; }
.step-num { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 26px; background: #fff; border: 2px solid var(--ink); }
.step:first-child .step-num { background: var(--pie); color: #fff; border-color: var(--pie); }
.step p { margin: 12px 0 0; font-size: 17.5px; }
.method-done { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 999px; background: var(--custard-2); font-weight: 600; }
.method-done .ico { color: var(--pie); width: 22px; height: 22px; }

.paywall { position: relative; }
.paywall-steps { display: grid; gap: 22px; filter: blur(2px); opacity: .6; }
.ghost-step { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; gap: 10px 20px; }
.ghost-step span { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); font-family: var(--font-display); font-size: 24px; }
.ghost-step i { height: 14px; border-radius: 999px; background: var(--line); margin-top: 12px; }
.ghost-step i + i { width: 70%; margin-top: 0; }
.paywall-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, 100%); text-align: center; background: #fff; border-radius: var(--r-lg); padding: 34px 28px 28px; box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.paywall-lock { width: 64px; height: 64px; margin: -66px auto 12px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--pie) 0 300deg, var(--custard) 300deg); color: #fff; box-shadow: 0 0 0 6px #fff; }
.paywall-lock .ico { width: 26px; height: 26px; }
.paywall-card h3 { font-family: var(--font-display); font-size: 30px; }
.paywall-plans { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.paywall-signin { margin: 14px 0 0; font-size: 14.5px; }

/* ---------- membership page ---------- */
.members-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px; align-items: center; }
.pie-chart { --share: 180deg; position: relative; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--pie) 0 var(--share), var(--glass) var(--share) 360deg); box-shadow: 0 0 0 10px #fff, var(--shadow-2); }
.pie-chart::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: var(--paper); }
.pie-chart-label { position: absolute; z-index: 1; padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 13.5px; box-shadow: var(--shadow-1); white-space: nowrap; }
.pie-chart-label strong { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin-right: 4px; }
.pie-chart-label--a { right: -8%; top: 22%; }
.pie-chart-label--b { left: -8%; bottom: 20%; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.plan { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 30px; padding: 32px; display: flex; flex-direction: column; }
.plan--best { border-color: var(--ink); box-shadow: 10px 10px 0 var(--glass); }
.plan-flag { position: absolute; top: -14px; right: 26px; padding: 5px 14px; border-radius: 999px; background: var(--pie); color: #fff; font-weight: 700; font-size: 13px; }
.plan-name { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.plan-price { font-family: var(--font-display); font-size: 58px; line-height: 1; margin-bottom: 12px; }
.plan-price span { display: block; font-family: var(--font-body); font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.plan-desc { color: var(--ink-2); }
.plan-list { list-style: none; display: grid; gap: 10px; margin: 6px 0 26px; flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list .ico { color: var(--pie); margin-top: 3px; }
.fine-print { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-top: 22px; }
.notice-card { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--line); }
.notice-card h2 { font-family: var(--font-display); font-size: 32px; }

/* accordion */
.accordion { display: grid; gap: 10px; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.acc summary { position: relative; list-style: none; cursor: pointer; padding: 18px 60px 18px 22px; font-weight: 600; font-size: 17px; }
.acc summary::-webkit-details-marker { display: none; }
.acc-icon { position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--glass-2); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--ink); transition: transform .2s; }
.acc-icon::after { transform: rotate(90deg); }
.acc[open] .acc-icon { background: var(--pie); }
.acc[open] .acc-icon::before, .acc[open] .acc-icon::after { background: #fff; }
.acc[open] .acc-icon::after { transform: rotate(0); }
.acc-body { padding: 0 22px 20px; color: var(--ink-2); }
.acc-body > :last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14.5px; display: flex; justify-content: space-between; gap: 10px; }
.field-link { font-weight: 500; font-size: 13.5px; }
.field input, .field textarea, .card-input input {
  width: 100%; min-height: 48px; padding: 11px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .card-input input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--glass-2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--pie); }
.field-error { margin: 0; font-size: 13.5px; color: var(--pie-dark); font-weight: 600; }
.field-hint { margin: 0; font-size: 13px; color: var(--ink-soft); }
.form-error { margin: 0 0 6px; padding: 12px 16px; border-radius: 14px; background: #ffe6df; color: var(--pie-dark); font-weight: 600; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field--full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pie); flex: none; }
.check.has-error { color: var(--pie-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); margin: 0 0 18px; min-width: 0; }
.panel-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 26px; padding: 0; margin-bottom: 16px; }
.panel-title span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.panel-heading { font-family: var(--font-display); font-size: 26px; }
.panel-note { font-size: 14.5px; color: var(--ink-soft); margin: 12px 0 0; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.panel-actions form { margin: 0; }

/* card input */
.card-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.card-input { position: relative; }
.card-input input { padding-right: 110px; letter-spacing: .06em; }
.card-status { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.card-status.is-valid { background: #dff3e8; color: var(--ok); }
.card-status.is-invalid { background: #ffe6df; color: var(--pie-dark); }

/* checkout + receipt */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.checkout-form { gap: 0; }
.receipt {
  position: sticky; top: 112px; background: #fff; padding: 28px 24px 32px; border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-1); border: 1px solid var(--line); border-bottom: 0;
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 12px) no-repeat, radial-gradient(circle at 10px 0, transparent 7px, #000 7.5px) bottom left / 20px 12px repeat-x;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - 12px) no-repeat, radial-gradient(circle at 10px 0, transparent 7px, #000 7.5px) bottom left / 20px 12px repeat-x;
}
.receipt-title { font-family: var(--font-display); font-size: 28px; padding-bottom: 12px; border-bottom: 2px dashed var(--line-2); }
.receipt-line, .receipt-total { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.receipt-line--muted { color: var(--ink-soft); font-size: 14px; }
.receipt-total { margin-top: 8px; padding-top: 14px; border-top: 2px dashed var(--line-2); font-weight: 700; font-size: 19px; }
.receipt-note { font-size: 13.5px; color: var(--ink-soft); margin: 12px 0 16px; }
.receipt-link { display: block; text-align: center; margin-top: 12px; font-weight: 600; }
.receipt-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.receipt-thumb { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex: none; background: var(--paper-2); }
.receipt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.receipt-item-name { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.3; }
.receipt-item-name small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.receipt-items { margin-bottom: 8px; }

/* cart page */
.cart { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 24px; margin-bottom: 12px; }
.cart-line-img { width: 96px; height: 96px; border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-name { font-family: var(--font-display); font-size: 21px; color: var(--ink); text-decoration: none; display: block; margin-bottom: 4px; }
.cart-line-name:hover { color: var(--pie-dark); }
.cart-line-price { color: var(--ink-soft); font-size: 14px; margin: 0 0 10px; }
.cart-line-total { font-weight: 700; font-size: 17px; text-align: right; }
.cart-remove { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--ink-soft); cursor: pointer; font-size: 13.5px; padding: 6px 0 0; }
.cart-remove:hover { color: var(--pie-dark); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { background: var(--glass-2); }
.qty input { width: 44px; text-align: center; border: 0; background: none; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* success */
.success-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.success-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.success .narrow.success-card { text-align: center; }
.success-pie { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; background: conic-gradient(var(--pie) 0 60deg, var(--glass-deep) 60deg); color: #fff; box-shadow: 0 0 0 8px var(--glass-2); }
.success .narrow .success-pie { margin-inline: auto; }
.success-pie .ico { width: 38px; height: 38px; }
.order-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.order-facts div { padding: 14px 16px; border-radius: 16px; background: var(--paper); }
.order-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.order-facts dd { margin: 4px 0 0; font-weight: 600; }
.success-card .empty-actions { justify-content: flex-start; }
.success .narrow .empty-actions { justify-content: center; }

/* product detail */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.product-media { position: sticky; top: 112px; margin: 0; aspect-ratio: 1; border-radius: 40px 40px 50% 50% / 40px 40px 22% 22%; overflow: hidden; background: #fff; box-shadow: 0 26px 0 -12px var(--glass), var(--shadow-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-tag { position: absolute; top: 26px; right: 0; padding: 10px 20px 10px 34px; background: var(--custard); font-weight: 700; font-size: 20px; clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%); }
.product-title { font-family: var(--font-display); font-size: clamp(36px, 4.8vw, 62px); letter-spacing: -.015em; }
.product-short { font-size: 19px; color: var(--ink-2); }
.product-price { font-family: var(--font-display); font-size: 40px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stock { font-family: var(--font-body); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #dff3e8; color: var(--ok); }
.stock--low { background: #fff0cf; color: var(--warn); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 20px; }
.buy-row .qty { height: 54px; }
.product-perks { list-style: none; display: grid; gap: 8px; padding: 16px 18px; border-radius: 18px; background: var(--glass-2); margin-bottom: 26px; font-size: 14.5px; }
.product-perks li { display: flex; gap: 10px; align-items: center; }
.product-sub { font-family: var(--font-display); font-size: 26px; margin-top: 20px; }
.spec-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.store-perks { list-style: none; display: flex; gap: 10px 22px; flex-wrap: wrap; font-weight: 600; font-size: 14.5px; }
.store-perks li { display: inline-flex; align-items: center; gap: 8px; }
.store-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.store-bar .slice-rail { flex: 1 1 520px; padding-top: 4px; }
.shelf--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* account */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.account-head form { margin: 0; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 24px; align-items: start; }
.member-pass { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px; border-radius: 22px; background: var(--ink); color: #fff; margin-bottom: 16px; }
.member-pass .muted { color: #bfd2cf; margin: 0; }
.member-pass-label { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--glass); margin: 0 0 4px; }
.member-pass-status { font-family: var(--font-display); font-size: 30px; margin: 0 0 4px; }
.member-pass-pie { width: 74px; height: 74px; flex: none; border-radius: 50%; background: conic-gradient(var(--pie) 0 300deg, var(--custard) 300deg); box-shadow: 0 0 0 6px rgba(255, 255, 255, .12); }
.history { margin-top: 18px; }
.history summary { cursor: pointer; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 12px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.orders { display: grid; gap: 10px; }
.order { border: 1px solid var(--line); border-radius: 18px; padding: 0 16px; }
.order summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1.2fr 1fr .8fr .8fr; gap: 10px; padding: 14px 0; align-items: center; font-size: 14.5px; }
.order summary::-webkit-details-marker { display: none; }
.order-ref { font-weight: 700; }
.order-status { justify-self: start; padding: 2px 10px; border-radius: 999px; background: #dff3e8; color: var(--ok); font-weight: 700; font-size: 12.5px; }
.order-total { text-align: right; font-weight: 700; }
.order-items { list-style: none; border-top: 1px dashed var(--line); padding: 10px 0; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14.5px; }

/* auth */
.auth { padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 8vw, 96px); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-1); }
.auth-switch { margin: 18px 0 0; text-align: center; font-size: 15px; }
.auth-art { position: relative; min-height: 520px; }
.auth-disc { position: absolute; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 8px #fff, var(--shadow-2); }
.auth-disc img { width: 100%; height: 100%; object-fit: cover; }
.auth-disc--1 { width: 60%; aspect-ratio: 1; left: 8%; top: 0; }
.auth-disc--2 { width: 38%; aspect-ratio: 1; right: 4%; top: 30%; }
.auth-disc--3 { width: 30%; aspect-ratio: 1; left: 30%; bottom: 0; }
.auth-quote { position: absolute; right: 0; bottom: 8%; max-width: 250px; padding: 16px 18px; border-radius: 20px; background: var(--custard); font-family: var(--font-display); font-size: 19px; line-height: 1.3; transform: rotate(-3deg); }
.notice-inline { padding: 16px; border-radius: 16px; background: var(--glass-2); }
.notice-inline p:last-child { margin: 0; }
.reset-link-note { font-size: 14px; }

/* journal + post */
.lead-post { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 64px; }
.lead-post-media { display: block; aspect-ratio: 4 / 3; border-radius: 4px 40px 40px 40px; overflow: hidden; }
.lead-post-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-post-title { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); }
.lead-post-title a { color: var(--ink); text-decoration: none; }
.post-head { max-width: 900px; text-align: center; padding-top: 12px; }
.post-head .crumbs { justify-content: center; }
.post-title { font-family: var(--font-display); font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -.02em; line-height: 1; }
.post-dek { font-size: 20px; color: var(--ink-2); }
.post-figure { margin: 34px auto 0; }
.post-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 999px 999px 32px 32px / 300px 300px 32px 32px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(28px, 5vw, 72px); padding-top: 48px; padding-bottom: 72px; }
.post-aside { position: sticky; top: 112px; align-self: start; }
.post-aside-title { font-family: var(--font-display); font-size: 26px; }
.prose { font-size: 18px; line-height: 1.75; }
.prose h2 { font-family: var(--font-display); font-size: 32px; margin: 1.4em 0 .5em; }
.prose h3 { font-weight: 700; font-size: 19px; margin: 1.3em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.post-body > p:first-child::first-letter { float: left; font-family: var(--font-display); font-size: 88px; line-height: .8; padding: 8px 12px 0 0; color: var(--pie); }

/* about */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; }
.about-hero .phero-title { font-size: clamp(38px, 5.4vw, 70px); }
.process-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.process-list li { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 24px; }
.process-pie { --deg: 60deg; display: block; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px; background: conic-gradient(var(--pie) var(--deg), var(--glass-2) 0); box-shadow: inset 0 0 0 2px var(--ink); }
.process-list h3 { font-family: var(--font-display); font-size: 24px; }
.process-list p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 34px 20px; }
.member { text-align: center; min-width: 0; }
.member-photo { width: 100%; max-width: 260px; margin: 0 auto 16px; border-radius: 50% 50% 28px 28px; overflow: hidden; box-shadow: 0 0 0 6px #fff, var(--shadow-1); background: var(--paper-2); }
.member-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; }
.member-name { font-family: var(--font-display); font-size: 24px; margin-bottom: 2px; }
.member-role { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pie-dark); margin-bottom: 10px; }
.member-bio { font-size: 15px; color: var(--ink-2); }
.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 26px 12px; border-radius: 999px 999px 26px 26px; background: var(--glass-2); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5vw, 58px); line-height: 1; }
.stat span { font-size: 14px; color: var(--ink-2); }
.about-cta { text-align: center; padding-top: 64px; }

/* careers, faq, contact, sitemap, legal */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 64px; }
.perk { padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.perk h3 { font-family: var(--font-display); font-size: 22px; }
.perk p { margin: 0; font-size: 15px; color: var(--ink-2); }
.job summary { display: grid; gap: 2px; }
.job-title { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.job-meta { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.job-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.job-cols h4 { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.job-cols ul { padding-left: 1.2em; }
.job-cols li { margin-bottom: 6px; }
.job-apply { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--glass-2); font-size: 15px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 40px; align-items: start; }
.faq-toc { position: sticky; top: 112px; display: grid; gap: 4px; }
.faq-toc a { padding: 10px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.faq-toc a:hover { background: var(--glass-2); }
.faq-group { margin-bottom: 40px; }
.faq-topic { font-family: var(--font-display); font-size: 32px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 28px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.contact-card h2 { font-family: var(--font-display); font-size: 24px; margin: 10px 0 4px; }
.contact-card p, .contact-card address { margin: 0 0 4px; font-style: normal; font-weight: 600; word-break: break-word; }
.contact-card .muted { font-weight: 400; font-size: 14px; }
.contact-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); }
.sitemap h2 { font-family: var(--font-display); font-size: 26px; margin-top: 12px; }
.sitemap-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 36px; }
.sitemap ul { list-style: none; display: grid; gap: 6px; margin-bottom: 18px; }
.sitemap-h { margin-top: 30px !important; }
.sitemap-cat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 18px; margin-bottom: 10px; }
.sitemap-cat summary { cursor: pointer; font-weight: 700; }
.sitemap-list { columns: 3 240px; column-gap: 24px; display: block !important; padding-top: 10px; }
.sitemap-list li { break-inside: avoid; padding: 3px 0; font-size: 14.5px; }
.mini-lock { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--custard); }
.legal-date { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--custard); font-weight: 700; font-size: 14px; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-nav { position: sticky; top: 112px; display: grid; gap: 4px; }
.legal-nav a { padding: 10px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.legal-nav a:hover { background: var(--glass-2); }
.legal-nav a[aria-current] { background: var(--ink); color: #fff; }
.legal-nav-note { font-size: 13.5px; color: var(--ink-soft); padding: 10px 16px; word-break: break-word; }
.legal-body { max-width: 780px; font-size: 17px; }
.legal-body h2 { font-size: 28px; }
.notfound { text-align: center; }
.notfound-pie { width: 200px; height: 200px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(transparent 0 72deg, var(--glass) 72deg 360deg); box-shadow: inset 0 0 0 4px var(--ink); }
.notfound-pie span { font-family: var(--font-display); font-size: 56px; }
.notfound .hero-search { max-width: 520px; margin-inline: auto; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--ink); color: #cfdfdc; margin-top: 60px; padding: 70px 0 0; }
.footer-crust { position: absolute; left: 0; right: 0; top: -22px; height: 24px; background: radial-gradient(circle at 20px 24px, var(--ink) 19px, transparent 20px) repeat-x 0 0 / 40px 24px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin: 18px 0; max-width: 380px; }
.footer-contact { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { color: var(--glass); margin-top: 4px; }
.footer-contact a { color: #fff; word-break: break-word; }
.footer-col h2 { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--glass); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: #e7f0ee; text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--custard); text-decoration: underline; }
.footer-word { font-family: var(--font-display); font-size: clamp(80px, 19vw, 280px); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(191, 230, 220, .35); margin-top: 48px; white-space: nowrap; overflow: hidden; user-select: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer-base p { margin: 0; }
.footer-base a { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .pillnav-link { padding: 10px 10px; }
  .pillsearch { max-width: 250px; }
  .card-grid, .shelf, .shelf--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-intro { position: static; }
}

@media (max-width: 1020px) {
  :root { --header-h: 64px; }
  body { padding-top: calc(var(--header-h) + 76px); padding-bottom: 76px; }
  .site-header { inset: 8px 0 auto; }
  .pillbar { flex-wrap: wrap; height: auto; border-radius: 28px; padding: 8px 8px 8px 14px; row-gap: 8px; }
  .pillnav { display: none; }
  .brand-word { font-size: 22px; }
  .logo-mark { width: 36px; height: 36px; }
  .pillactions { margin-left: auto; }
  .pillactions-signin { display: none; }
  .menubtn { display: grid; }
  .iconbtn { width: 42px; height: 42px; }
  .pillsearch { order: 5; flex: 1 1 100%; max-width: none; margin: 0 0 2px; }
  .pillsearch input { height: 44px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 80;
    background: var(--ink); border-radius: 22px; padding: 6px; box-shadow: var(--shadow-2);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 7px 2px; border-radius: 16px; color: #cfe0dc; text-decoration: none; font-size: 11.5px; font-weight: 600; }
  .tabbar a .ico { width: 22px; height: 22px; }
  .tabbar a[aria-current] { background: rgba(191, 230, 220, .16); color: #fff; }
  .tabbar a[aria-current] .ico { color: var(--glass); }
  .cookie { bottom: 88px; }
  .toasts { top: calc(var(--header-h) + 80px); }
  .hero-grid, .spotlight-grid, .recipe-head, .recipe-body, .checkout-grid, .cart, .product, .account-grid, .auth-grid, .lattice-grid, .members-hero, .about-hero, .contact-grid, .success-grid, .lead-post, .post-layout, .phero-grid { grid-template-columns: minmax(0, 1fr); }
  .recipe-photo, .ingredients, .receipt, .product-media, .post-aside, .faq-toc, .legal-nav { position: static; }
  .recipe-photo { max-width: 620px; }
  .phero-moon { max-width: 360px; margin: 0 auto; justify-self: center; }
  .members-hero .pie-chart { max-width: 300px; width: 100%; margin: 0 auto; }
  .auth-art { display: none; }
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket-stub { border-left: 0; border-top: 2px dashed rgba(255, 255, 255, .25); }
  .index-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-layout, .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .faq-toc, .legal-nav { display: flex; flex-wrap: wrap; }
  .perks, .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wheel { --size: min(640px, 92vw); }
  .wheel-item { width: 104px; margin: -52px 0 0 -52px; }
  .wheel-img { width: 78px; height: 78px; }
  .wheel-name { font-size: 12.5px; }
  .wheel-count { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .card-grid, .card-grid--3, .shelf, .shelf--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .rcard-title { font-size: 18px; }
  .rcard-meta { font-size: 12.5px; gap: 4px 8px; }
  .pcard-title { font-size: 18px; }
  .pcard-desc { display: none; }
  .pcard-tag { font-size: 13px; padding: 5px 10px 5px 20px; }
  .pcard-add { width: 100%; padding: 0 10px; }
  .hl { white-space: normal; }
  .hero-search { flex-wrap: wrap; border-radius: 26px; }
  .hero-search input { flex: 1 1 100%; height: 44px; }
  .hero-search .btn { width: 100%; }
  .reel-item { width: 180px; }
  .row-list--two, .quick-grid .row-list { grid-template-columns: minmax(0, 1fr); }
  .rcard--row .rcard-media, .row-list--results .rcard--row .rcard-media { width: 92px; }
  .rcard--row .rcard-desc { display: none; }
  .index-cards { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .field-grid, .card-fields, .order-facts, .job-cols, .sitemap-cols { grid-template-columns: minmax(0, 1fr); }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-line-img { width: 72px; height: 72px; }
  .cart-line-total { grid-column: 2; text-align: left; }
  .order summary { grid-template-columns: 1fr 1fr; }
  .order-total { text-align: left; }
  .process-list, .perks { grid-template-columns: minmax(0, 1fr); }
  .lattice { grid-template-columns: repeat(3, 1fr); }
  .lattice-tile:nth-child(7n+1), .lattice-tile:nth-child(7n+2), .lattice-tile:nth-child(7n+3) { transform: none; }
  .lattice-tile:nth-child(3n+2) { transform: translateY(50%); }
  .lattice--wide { grid-template-columns: repeat(3, 1fr); padding-bottom: 16%; }
  .wheel { width: auto; height: auto; --size: 100%; }
  .wheel::before, .wheel-hub { display: none; }
  .wheel-ring { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; }
  .wheel-item { position: static; width: auto; margin: 0; transform: none; }
  .wheel-img { width: 84px; height: 84px; }
  .recipe-title { font-size: 40px; }
  .meters { gap: 8px; }
  .meter { grid-template-columns: 38px auto; padding: 6px 12px 6px 6px; }
  .meter-ring { width: 38px; height: 38px; }
  .meter-ring::after { inset: 7px; }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .step-num { width: 44px; height: 44px; font-size: 21px; }
  .steps::before { left: 21px; }
  .step p { margin-top: 8px; font-size: 16.5px; }
  .paywall-card { position: relative; left: auto; top: auto; transform: none; margin-top: -120px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie { flex-wrap: wrap; }
  .cookie-text { flex-basis: 100%; }
  .post-figure img { aspect-ratio: 4 / 3; border-radius: 200px 200px 24px 24px / 120px 120px 24px 24px; }
  .spotlight-stamp { width: 90px; height: 90px; right: 12px; bottom: 12px; }
  .spotlight-stamp strong { font-size: 26px; }
  .pie-chart-label--a { right: 0; }
  .pie-chart-label--b { left: 0; }
  .receipt { padding: 22px 18px 28px; }
}

@media (max-width: 380px) {
  .card-grid, .shelf, .shelf--grid, .card-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .brand-word small { letter-spacing: .2em; }
  .wheel-ring { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reel { overflow-x: auto; }
}

@media print {
  body { padding: 0; background: #fff; }
  .site-header, .tabbar, .site-footer, .cookie, .toasts, .recipe-actions, .plate-study, .section:not(.recipe .section), .crumbs, .drawer, .recipe .section { display: none !important; }
  .recipe-head, .recipe-body { grid-template-columns: 1fr 1fr; }
  .recipe-arch { max-height: 320px; box-shadow: none; }
  .recipe-photo, .ingredients { position: static; }
  .check-box { display: none; }
}
