/* SisianDseb Recipes - "recipe box" design system
   Paper: pale pistachio. Ink: oxblood + celadon. Type: Caprasimo (display) + Instrument Sans (text). */

:root {
  --paper: #e8eed9;
  --paper-2: #dbe5c6;
  --paper-3: #cfdcb5;
  --card: #fbfbf3;
  --ink: #1d211b;
  --ink-2: #454b41;
  --ink-3: #6b7266;
  --ox: #6a1b22;
  --ox-2: #8c2a31;
  --ox-soft: #f3dcd8;
  --cel: #9ebfa6;
  --cel-deep: #35604b;
  --cel-soft: #d7e7d6;
  --rule: #c7d4b4;
  --rule-red: #d58b86;
  --saffron: #d99a22;
  --tape: rgba(240, 214, 140, .72);
  --radius: 10px;
  --shadow: 0 1px 0 rgba(29, 33, 27, .08), 0 10px 24px -14px rgba(29, 33, 27, .35);
  --display: "Caprasimo", "Georgia", serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(53, 96, 75, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ox); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ox-2); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ox); color: var(--card); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { top: 12px; color: var(--card); }

/* ---------- Buttons & form controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.25em; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--ox); color: var(--card); font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background .12s;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { color: var(--card); background: var(--ox-2); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn--ghost { background: var(--card); color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn--green { background: var(--cel-deep); }
.btn--green:hover { background: #2b503e; }
.btn--sm { padding: .45em .85em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.field small { color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; padding: .7em .85em; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--card); color: var(--ink); min-height: 46px;
}
.textarea { min-height: 150px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--cel-deep); box-shadow: 0 0 0 3px var(--cel-soft); }
.field .err, .form-error { color: var(--ox); font-size: .9rem; font-weight: 600; }
.has-error .input { border-color: var(--ox); background: #fff6f5; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ox); }

.notice { padding: 12px 16px; border-radius: 8px; border: 2px solid var(--ink); background: var(--card); margin: 0 0 18px; }
.notice--success { background: var(--cel-soft); }
.notice--error { background: var(--ox-soft); }
.notice--info { background: #f7efd6; }

/* ---------- Header: masthead + folder-tab nav ---------- */
.topline { background: var(--ink); color: #dfe6d2; font-size: .82rem; }
.topline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topline a { color: #f1f4e8; text-decoration: none; }
.topline a:hover { color: var(--cel); }
.topline__note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topline__links { display: flex; gap: 16px; flex-shrink: 0; }
@media (max-width: 640px) { .topline__note { display: none; } .topline .wrap { justify-content: flex-end; } }

.masthead { background: var(--paper); }
.masthead .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding-top: 16px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { width: 50px; height: 50px; flex-shrink: 0; }
.logo__words { display: grid; line-height: 1; }
.logo__name { font-family: var(--display); font-size: 1.62rem; letter-spacing: .01em; }
.logo__name b { font-weight: 400; color: var(--ox); }
.logo__sub { font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--cel-deep); font-weight: 700; margin-top: 5px; }

.hsearch { position: relative; max-width: 560px; width: 100%; justify-self: center; }
.hsearch form { display: flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); overflow: hidden; box-shadow: 0 3px 0 var(--ink); }
.hsearch input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 14px; outline: none; }
.hsearch button { border: 0; border-left: 2px solid var(--ink); background: var(--cel-deep); color: var(--card); padding: 0 16px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.hsearch button:hover { background: var(--ox); }
.hsearch kbd { font: 600 .72rem var(--text); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--ink-3); align-self: center; margin-right: 10px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--card); border: 2px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); z-index: 60; overflow: hidden; }
.suggest[hidden] { display: none; }
.suggest a { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; text-decoration: none; color: var(--ink); border-bottom: 1px dashed var(--rule); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.is-active { background: var(--cel-soft); }
.suggest img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.suggest strong { display: block; font-weight: 600; line-height: 1.25; }
.suggest span { font-size: .8rem; color: var(--ink-3); }
.suggest .all { display: block; text-align: center; font-weight: 700; color: var(--ox); background: var(--paper); grid-template-columns: none; }

.mast-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: 0 3px 0 var(--ink); }
.cart-btn:hover { background: var(--paper-2); color: var(--ink); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--ox); color: var(--card); font-size: .78rem; display: inline-grid; place-items: center; padding: 0 6px; }
.menu-btn { display: none; width: 48px; height: 46px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); box-shadow: 0 3px 0 var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: ""; transition: transform .2s; }
.menu-btn span::before { position: absolute; top: -7px; }
.menu-btn span::after { position: absolute; top: 7px; }

.tabs { position: relative; }
.tabs::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ox); }
.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: flex-end; }
.tabs a {
  position: relative; display: block; padding: 11px 20px 12px; margin-bottom: 4px;
  background: var(--paper-3); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem;
  border: 2px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0;
  transform: translateY(4px); transition: transform .15s ease, background .15s;
}
.tabs li:nth-child(3n+2) a { background: var(--cel-soft); }
.tabs li:nth-child(3n) a { background: #efe3c4; }
.tabs a:hover { transform: translateY(0); color: var(--ink); }
.tabs li a[aria-current="page"], .tabs li:nth-child(n) a[aria-current="page"] { background: var(--ox); color: var(--card); transform: translateY(4px); padding-bottom: 16px; margin-bottom: 0; }
.tabs .tabs__end { margin-left: auto; }
.tabs .tabs__end a { background: var(--card); }
.tabs .tabs__end a[aria-current="page"] { background: var(--ox); color: var(--card); }

@media (max-width: 980px) {
  .masthead .wrap { grid-template-columns: 1fr auto; }
  .hsearch { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .menu-btn { display: inline-flex; }
  .tabs { display: none; }
  .masthead { border-bottom: 4px solid var(--ox); }
  .cart-btn .cart-label { display: none; }
}
@media (max-width: 420px) { .logo__name { font-size: 1.3rem; } .logo__mark { width: 42px; height: 42px; } }
@media (hover: none), (max-width: 700px) { .hsearch kbd { display: none; } }

/* Mobile drawer (recipe box) */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(29, 33, 27, .5); }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: var(--paper); border-left: 3px solid var(--ink); padding: 18px 16px 30px; overflow-y: auto; animation: slidein .22s ease; }
@keyframes slidein { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer__close { width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); font-size: 1.4rem; cursor: pointer; }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; margin-bottom: 8px; background: var(--card); border: 2px solid var(--ink); border-radius: 12px 12px 12px 0; text-decoration: none; color: var(--ink); font-weight: 600; }
.drawer nav a:nth-child(3n+2) { background: var(--cel-soft); }
.drawer nav a:nth-child(3n) { background: #efe3c4; }
.drawer nav a[aria-current="page"] { background: var(--ox); color: var(--card); }
.drawer__label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px; font-weight: 700; }

/* ---------- Section scaffolding ---------- */
main { display: block; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--band { background: var(--paper-2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section--ink { background: var(--ink); color: #e9eedd; }
.section--ink h2, .section--ink h3 { color: var(--card); }
.sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sechead h2 { margin: 0; }
.sechead p { margin: 6px 0 0; color: var(--ink-2); max-width: 560px; }
.label { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cel-deep); margin-bottom: 8px; }
.section--ink .label { color: var(--cel); }
.more-link { font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* Lined index-card surface */
.lined {
  background-color: var(--card);
  background-image: linear-gradient(var(--card) 0, var(--card) 44px, var(--rule-red) 44px, var(--rule-red) 46px, transparent 46px),
    repeating-linear-gradient(transparent 0, transparent 29px, var(--rule) 29px, var(--rule) 30px);
  background-size: 100% 100%, 100% 30px;
  background-position: 0 0, 0 46px;
  background-repeat: no-repeat, repeat;
}

/* ---------- Home hero: plate + orbit + planner ---------- */
.hero { padding: 42px 0 58px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr .9fr; gap: 34px; align-items: center; }
.hero__intro h1 { margin-bottom: 18px; }
.hero__intro h1 em { font-style: normal; color: var(--ox); }
.hero__intro p { font-size: 1.1rem; color: var(--ink-2); max-width: 440px; }
.hero__search { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.hero__search a { padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: .88rem; color: var(--ink); text-decoration: none; background: var(--card); }
.hero__search a:hover { background: var(--cel-soft); }
.hero__stats { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.hero__stats div { border-left: 3px solid var(--ox); padding-left: 10px; line-height: 1.2; }
.hero__stats strong { font-family: var(--display); font-size: 1.6rem; font-weight: 400; display: block; }
.hero__stats span { font-size: .82rem; color: var(--ink-3); }

.plate { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto; }
.plate__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
.plate__ring text { font: 700 11.5px var(--text); letter-spacing: 4.2px; text-transform: uppercase; fill: var(--ox); }
@keyframes spin { to { transform: rotate(360deg); } }
.plate__dish { position: absolute; inset: 11%; border-radius: 50%; overflow: hidden; border: 12px solid var(--card); box-shadow: 0 0 0 2px var(--ink), 0 24px 40px -18px rgba(29, 33, 27, .55); background: var(--card); }
.plate__dish img { width: 100%; height: 100%; object-fit: cover; }
.plate__tag { position: absolute; right: 2%; bottom: 10%; background: var(--card); border: 2px solid var(--ink); border-radius: 10px 10px 10px 0; padding: 8px 12px; font-size: .85rem; max-width: 190px; line-height: 1.3; box-shadow: 0 3px 0 var(--ink); transform: rotate(-3deg); }
.plate__tag a { color: var(--ink); font-weight: 700; text-decoration: none; }

.planner { border: 2px solid var(--ink); border-radius: 4px 16px 4px 4px; box-shadow: var(--shadow); padding: 0 0 8px; position: relative; }
.planner__head { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.planner__head h2 { font-size: 1.05rem; margin: 0; }
.planner__head span { font-size: .76rem; color: var(--ink-3); font-weight: 600; }
.planner ol { list-style: none; margin: 0; padding: 0 16px; }
.planner li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; height: 60px; border-bottom: 0; }
.planner li b { font-size: .72rem; letter-spacing: .12em; color: var(--ox); font-weight: 700; }
.planner li a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.planner li a:hover { color: var(--ox); }
.planner li small { color: var(--ink-3); white-space: nowrap; font-size: .8rem; }
.planner.lined { background-size: 100% 100%, 100% 60px; background-position: 0 0, 0 46px; background-image: linear-gradient(var(--card) 0, var(--card) 44px, var(--rule-red) 44px, var(--rule-red) 46px, transparent 46px), repeating-linear-gradient(transparent 0, transparent 59px, var(--rule) 59px, var(--rule) 60px); }

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .planner { grid-column: 1 / -1; }
  .planner ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
}
@media (max-width: 720px) {
  .hero__grid { grid-template-columns: 1fr; }
  .plate { max-width: 340px; }
  .planner ol { grid-template-columns: 1fr; }
}

/* ---------- Category shelf (book spines) ---------- */
.shelf { display: flex; align-items: flex-end; gap: 8px; overflow-x: auto; padding: 26px 4px 0; scrollbar-width: thin; }
.shelf::after { content: ""; flex: 0 0 4px; }
.shelf-wrap { position: relative; }
.shelf-wrap::after { content: ""; display: block; height: 16px; background: var(--ink); border-radius: 3px; box-shadow: 0 10px 0 -4px var(--cel-deep); }
.spine {
  flex: 0 0 auto; width: 76px; height: var(--h, 300px); display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 14px 0 12px; color: var(--card); text-decoration: none; border: 2px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0;
  background: var(--bg, var(--ox)); transition: transform .2s ease; position: relative;
}
.spine::before, .spine::after { content: ""; position: absolute; left: 8px; right: 8px; height: 3px; background: rgba(251, 251, 243, .5); }
.spine::before { top: 38px; }
.spine::after { bottom: 44px; }
.spine:hover, .spine:focus-visible { transform: translateY(-18px); color: var(--card); }
.spine__title { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-size: 1.12rem; white-space: nowrap; letter-spacing: .02em; flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 0; }
.spine__num { font-size: .8rem; font-weight: 700; }
.spine__count { font-size: .72rem; font-weight: 700; opacity: .9; }
.spine--light { color: var(--ink); }
.spine--light:hover { color: var(--ink); }
.spine--light::before, .spine--light::after { background: rgba(29, 33, 27, .35); }

/* ---------- Recipe index card ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 38px 26px; }
.cards--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.icard { position: relative; padding-top: 22px; }
.icard__tab {
  position: absolute; top: 0; left: 16px; max-width: calc(100% - 32px); padding: 4px 12px 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  background: var(--tabc, var(--cel-soft)); border: 2px solid var(--ink); border-bottom: 0; border-radius: 9px 9px 0 0;
  color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1;
}
.icard__tab:hover { color: var(--ox); }
.icard__body { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 3px 12px 12px 12px; box-shadow: var(--shadow); padding: 10px 10px 0; transition: transform .2s ease, box-shadow .2s ease; height: 100%; display: flex; flex-direction: column; }
.icard:hover .icard__body { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 1px 0 rgba(29, 33, 27, .08), 0 18px 30px -16px rgba(29, 33, 27, .45); }
.icard__photo { display: block; position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--paper-2); }
.icard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.icard:hover .icard__photo img { transform: scale(1.04); }
.icard__text {
  padding: 12px 6px 14px; flex: 1; display: flex; flex-direction: column;
  background-image: repeating-linear-gradient(transparent 0, transparent 25px, var(--rule) 25px, var(--rule) 26px);
  background-position: 0 8px;
}
.icard__text h3 { font-family: var(--text); font-weight: 700; font-size: 1.04rem; line-height: 26px; margin: 0 0 4px; }
.icard__text h3 a { color: var(--ink); text-decoration: none; }
.icard__text h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.icard__text h3 a:hover { color: var(--ox); }
.icard__meta { margin-top: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); line-height: 26px; }
.icard__meta { column-gap: 0; }
.rating-mini { white-space: nowrap; font-weight: 600; color: var(--ink); }
.rating-mini .star { vertical-align: -1px; }
.icard__meta > span:not(.sr-only) + span:not(.sr-only)::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); margin: 0 9px; vertical-align: middle; }
.icard__tab, .icard .stamp-lock { z-index: 2; }

.stamp-lock {
  position: absolute; right: 16px; top: 16px; width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; color: var(--ox); background: rgba(251, 251, 243, .9);
  border: 2px solid var(--ox); box-shadow: inset 0 0 0 3px rgba(251, 251, 243, .9), inset 0 0 0 4.5px var(--ox);
  font-size: .56rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.15; transform: rotate(-12deg); pointer-events: none;
}
.stamp-lock svg { width: 16px; height: 16px; margin: 0 auto 2px; display: block; }
.free-chip { position: absolute; right: 18px; top: 18px; z-index: 2; background: var(--cel-deep); color: var(--card); font-size: .68rem; font-weight: 800; letter-spacing: .14em; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; pointer-events: none; }

.stars { display: inline-flex; gap: 1px; vertical-align: -2px; }
.star { width: 13px; height: 13px; display: inline-block; background: var(--rule); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.star.on { background: var(--saffron); }
.star.half { background: linear-gradient(90deg, var(--saffron) 50%, var(--rule) 50%); }

/* ---------- Wide "feature" cards (alternating rows) ---------- */
.rows { display: grid; gap: 34px; }
.row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; align-items: stretch; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.row:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
.row:nth-child(even) .row__media { order: 2; border-left: 2px solid var(--ink); border-right: 0; }
.row__media { position: relative; min-height: 300px; border-right: 2px solid var(--ink); }
.row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row__body { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.row__body h3 { font-size: 1.7rem; }
.row__body h3 a { color: var(--ink); text-decoration: none; }
.row__body h3 a:hover { color: var(--ox); }
.row__meta { font-size: .85rem; color: var(--ink-3); margin-bottom: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .row, .row:nth-child(even) { grid-template-columns: 1fr; }
  .row__media, .row:nth-child(even) .row__media { order: 0; min-height: 220px; border: 0; border-bottom: 2px solid var(--ink); }
  .row__body { padding: 22px 18px; }
}

/* ---------- Postage-stamp product cards ---------- */
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 24px; }
.pstamp { position: relative; filter: drop-shadow(0 8px 12px rgba(29, 33, 27, .22)); transition: transform .2s ease; }
.pstamp:hover { transform: translateY(-4px) rotate(.8deg); }
.pstamp__edge {
  --r: 6px;
  background: var(--card); padding: calc(var(--r) * 2.2);
  -webkit-mask: radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(var(--r) * -1) calc(var(--r) * -1) / calc(var(--r) * 3) calc(var(--r) * 3) round, linear-gradient(#000 0 0) content-box;
  mask: radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(var(--r) * -1) calc(var(--r) * -1) / calc(var(--r) * 3) calc(var(--r) * 3) round, linear-gradient(#000 0 0) content-box;
}
.pstamp__inner { border: 2px solid var(--ink); background: var(--card); display: flex; flex-direction: column; height: 100%; }
.pstamp__photo { position: relative; aspect-ratio: 1; overflow: hidden; background: #fff; border-bottom: 2px solid var(--ink); }
.pstamp__photo img { width: 100%; height: 100%; object-fit: cover; }
.pstamp__price { position: absolute; left: 8px; top: 8px; background: var(--ox); color: var(--card); font-family: var(--display); font-size: 1.08rem; padding: 2px 10px 3px; border-radius: 4px; }
.pstamp__text { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pstamp__cat { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cel-deep); font-weight: 700; }
.pstamp__text h3 { font-family: var(--text); font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.3; }
.pstamp__text h3 a { color: var(--ink); text-decoration: none; }
.pstamp__text h3 a:hover { color: var(--ox); }
.pstamp__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; }
.pstamp__foot .stars .star { width: 11px; height: 11px; }

/* ---------- Polaroid strip ---------- */
.polaroids { display: flex; gap: 22px; justify-content: center; padding: 26px 8px 10px; overflow-x: auto; }
.polaroid { flex: 0 0 auto; width: 188px; background: #fffef8; padding: 10px 10px 34px; box-shadow: 0 12px 22px -12px rgba(29, 33, 27, .5); position: relative; transform: rotate(var(--rot, -2deg)); transition: transform .25s; margin: 0; }
.polaroid:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; width: 76px; height: 24px; background: var(--tape); transform: translateX(-50%) rotate(var(--tape-rot, 3deg)); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 10px; right: 10px; bottom: 7px; text-align: center; font-family: var(--display); font-size: .95rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polaroid:nth-child(2n) { --rot: 2.5deg; --tape-rot: -4deg; }
.polaroid:nth-child(3n) { --rot: -1deg; }
@media (min-width: 1100px) { .polaroid { width: 196px; } }

/* ---------- Membership band ---------- */
.member-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.member-band ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.member-band li { display: flex; gap: 12px; align-items: flex-start; }
.member-band li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--cel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231d211b' stroke-width='2.4'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .member-band { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .plan-cards { grid-template-columns: 1fr; } }

.plan { position: relative; padding-top: 24px; }
.plan__tab { position: absolute; top: 0; left: 18px; padding: 4px 14px 6px; background: var(--cel-soft); color: var(--ink); border: 2px solid var(--ink); border-bottom: 0; border-radius: 9px 9px 0 0; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.plan--best .plan__tab { background: var(--saffron); }
.plan__card { border: 2px solid var(--ink); border-radius: 3px 14px 14px 14px; padding: 58px 20px 22px; color: var(--ink); box-shadow: var(--shadow); }
.plan__name { font-family: var(--display); font-size: 1.35rem; margin: 0 0 6px; }
.plan__price { font-family: var(--display); font-size: 2.3rem; line-height: 1.1; }
.plan__price small { font-family: var(--text); font-size: .95rem; color: var(--ink-3); }
.plan__note { font-size: .88rem; color: var(--ink-2); margin: 8px 0 18px; min-height: 2.6em; }

/* ---------- Page headers ---------- */
.phead { padding: 40px 0 34px; position: relative; }
.phead__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.phead p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 620px; }
.phead__photo { position: relative; }
.phead__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 2px solid var(--ink); border-radius: 4px; background: var(--card); padding: 8px; box-shadow: var(--shadow); transform: rotate(1.4deg); }
.phead__photo::before, .phead__photo::after { content: ""; position: absolute; width: 90px; height: 26px; background: var(--tape); z-index: 2; }
.phead__photo::before { top: -8px; left: 20px; transform: rotate(-8deg); }
.phead__photo::after { bottom: -6px; right: 24px; transform: rotate(-6deg); }
@media (max-width: 800px) { .phead__grid { grid-template-columns: 1fr; } .phead { padding-top: 26px; } }

.crumbs { font-size: .86rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ox); }

/* ---------- Listing toolbar, view toggle, index table ---------- */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 2px solid var(--ink); border-radius: 12px; margin-bottom: 30px; }
.toolbar form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .select { width: auto; min-height: 40px; padding: .4em .7em; border-width: 1.5px; }
.toolbar__count { font-weight: 600; color: var(--ink-2); font-size: .94rem; }
.viewtoggle { display: inline-flex; border: 2px solid var(--ink); border-radius: 9px; overflow: hidden; }
.viewtoggle a { padding: 7px 14px; font-size: .86rem; font-weight: 700; text-decoration: none; color: var(--ink); background: var(--card); }
.viewtoggle a + a { border-left: 2px solid var(--ink); }
.viewtoggle a[aria-current="true"] { background: var(--ink); color: var(--card); }

.rindex-wrap { border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); overflow-x: auto; }
.rindex { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.rindex th { text-align: left; background: var(--ink); color: var(--card); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: 12px 14px; white-space: nowrap; }
.rindex th a { color: var(--card); text-decoration: none; }
.rindex th a:hover { color: var(--cel); }
.rindex th a[aria-current="true"]::after { content: " \2193"; }
.rindex td { padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.rindex tr:nth-child(even) td { background: #f5f7ec; }
.rindex tr:hover td { background: var(--cel-soft); }
.rindex .num { font-family: var(--display); color: var(--ox); width: 56px; }
.rindex .name { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.rindex .name img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--ink); flex-shrink: 0; }
.rindex .name a { color: var(--ink); font-weight: 700; text-decoration: none; }
.rindex .name a:hover { color: var(--ox); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; border: 1.5px solid var(--ink); white-space: nowrap; }
.pill--free { background: var(--cel-soft); }
.pill--members { background: var(--ox); color: var(--card); border-color: var(--ox); }
.pill--Easy { background: #eef4e2; }
.pill--Medium { background: #f6ead0; }
.pill--Hard { background: var(--ox-soft); }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border: 2px solid var(--ink); border-radius: 10px 10px 10px 0; text-decoration: none; color: var(--ink); background: var(--card); font-weight: 700; }
.pager a:hover { background: var(--cel-soft); }
.pager [aria-current="page"] { background: var(--ox); color: var(--card); }
.pager .gap { border: 0; background: none; }

/* Category banner */
.cat-banner { position: relative; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; min-height: 300px; display: grid; align-items: end; box-shadow: var(--shadow); margin-top: 8px; }
.cat-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-banner__card { position: relative; margin: 22px; max-width: 540px; border: 2px solid var(--ink); border-radius: 4px 14px 14px 14px; padding: 58px 22px 18px; }
.cat-banner__card h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 8px; }
.cat-banner__card p { margin: 0; color: var(--ink-2); }
.cat-banner__count { position: absolute; top: 10px; right: 16px; font-size: .78rem; font-weight: 700; color: var(--ox); letter-spacing: .06em; }
@media (max-width: 600px) { .cat-banner { min-height: 0; } .cat-banner > img { position: relative; height: 200px; } .cat-banner__card { margin: 0; border: 0; border-top: 2px solid var(--ink); border-radius: 0; } }

.catnav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 18px; }
.catnav a { flex: 0 0 auto; padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 10px 10px 0 10px; background: var(--card); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.catnav a:hover { background: var(--cel-soft); }
.catnav a[aria-current="page"] { background: var(--ink); color: var(--card); }

/* ---------- Search page ---------- */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; }
.filters { position: sticky; top: 16px; border: 2px solid var(--ink); border-radius: 4px 14px 14px 14px; padding: 58px 18px 18px; box-shadow: var(--shadow); background: var(--card) linear-gradient(var(--card) 44px, var(--rule-red) 44px, var(--rule-red) 46px, transparent 46px) no-repeat; }
.filters h2 { position: absolute; top: 12px; left: 18px; font-size: 1.15rem; margin: 0; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.filters legend { font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cel-deep); margin-bottom: 6px; }
.filters .opt { display: flex; align-items: center; gap: 8px; font-size: .94rem; min-height: 30px; }
.filters .opt input { accent-color: var(--ox); width: 16px; height: 16px; }
.searchbig { display: flex; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: 0 4px 0 var(--ink); margin: 16px 0 10px; max-width: 760px; }
.searchbig input { flex: 1; border: 0; padding: 15px 18px; font-size: 1.1rem; background: transparent; outline: none; min-width: 0; }
.searchbig button { border: 0; border-left: 2px solid var(--ink); background: var(--ox); color: var(--card); padding: 0 22px; font-weight: 700; cursor: pointer; }
.empty { text-align: center; padding: 50px 22px 40px; border: 2px dashed var(--ink-3); border-radius: 16px; background: rgba(251, 251, 243, .6); }
.empty svg { width: 92px; height: 92px; margin: 0 auto 12px; }
.empty h2 { font-size: 1.7rem; }
.empty .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0; }
.empty .chips a { padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--card); font-size: .9rem; }
mark { background: #f3e2a5; color: inherit; padding: 0 2px; border-radius: 3px; }
@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .filters .filters__actions { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .filters form { grid-template-columns: 1fr; } }

/* ---------- Recipe detail ---------- */
.rhead { padding: 30px 0 34px; }
.rhead__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 44px; align-items: center; }
.rhead__cat { display: inline-block; padding: 5px 14px 6px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--cel-soft); font-weight: 700; font-size: .8rem; text-decoration: none; color: var(--ink); letter-spacing: .04em; }
.rhead h1 { border-top: 4px solid var(--ox); padding-top: 18px; margin-bottom: 14px; }
.rhead .lead { font-size: 1.1rem; color: var(--ink-2); }
.rhead__rating { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-2); margin-bottom: 18px; }
.rhead__rating .star { width: 17px; height: 17px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--card); }
.facts div { padding: 10px 14px; border-right: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule); }
.facts div:nth-child(3n) { border-right: 0; }
.facts div:nth-last-child(-n+3) { border-bottom: 0; }
.facts dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.facts dd { margin: 0; font-family: var(--display); font-size: 1.22rem; }
.rhead__photo { position: relative; }
.rhead__photo .frame { background: var(--card); border: 2px solid var(--ink); padding: 12px 12px 44px; box-shadow: var(--shadow); transform: rotate(-1.2deg); }
.rhead__photo .frame img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.rhead__photo .frame figcaption { font-size: .78rem; color: var(--ink-3); position: absolute; bottom: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 10px; }
.rhead__photo::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 28px; background: var(--tape); transform: translateX(-50%) rotate(2deg); z-index: 2; }
.rhead .stamp-lock { width: 96px; height: 96px; font-size: .66rem; right: -6px; top: -14px; z-index: 3; }
.rhead .stamp-lock svg { width: 20px; height: 20px; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 860px) { .rhead__grid { grid-template-columns: 1fr; } .rhead__photo { order: -1; } }
@media (max-width: 420px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts div:nth-child(3n) { border-right: 1.5px solid var(--rule); } .facts div:nth-child(2n) { border-right: 0; } .facts div:nth-last-child(-n+3) { border-bottom: 1.5px solid var(--rule); } .facts div:nth-last-child(-n+2) { border-bottom: 0; } }

.rbody { display: grid; grid-template-columns: 360px 1fr; gap: 44px; align-items: start; padding-bottom: 60px; }
.ingredients { position: sticky; top: 16px; border: 2px solid var(--ink); border-radius: 4px 14px 14px 14px; box-shadow: var(--shadow); padding: 0 18px 16px; }
.ingredients header { height: 46px; display: flex; align-items: center; justify-content: space-between; }
.ingredients h2 { font-size: 1.25rem; margin: 0; }
.ingredients header span { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.ingredients ul { list-style: none; margin: 0; padding: 0; }
.ingredients li { min-height: 30px; }
.ingredients label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; cursor: pointer; line-height: 30px; }
.ingredients input { margin-top: 8px; width: 16px; height: 16px; accent-color: var(--cel-deep); }
.ingredients input:checked + span { text-decoration: line-through; color: var(--ink-3); }
.ingredients b { font-weight: 700; }
.ingredients em { font-style: normal; color: var(--ink-3); }
.ingredients.lined { background-size: 100% 100%, 100% 30px; background-position: 0 0, 0 46px; }
.steps { counter-reset: none; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 16px 20px 16px 14px; }
.steps li .n { font-family: var(--display); font-size: 2.3rem; line-height: 1; color: var(--ox); text-align: center; border-right: 2px dashed var(--rule); padding-top: 2px; }
.steps li p { margin: 0; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0; }
.note { border: 2px solid var(--ink); border-radius: 12px; padding: 18px 20px; background: var(--cel-soft); }
.note--swap { background: #f4e9cc; }
.note h3 { font-size: 1.08rem; margin-bottom: 6px; }
.note p { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.tags a { font-size: .82rem; padding: 3px 11px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; }
.tags a:hover { background: var(--cel-soft); }
.support-photos { display: flex; gap: 18px; justify-content: flex-start; flex-wrap: wrap; padding-top: 18px; }
.support-photos .polaroid { width: 210px; }
@media (max-width: 960px) { .rbody { grid-template-columns: 1fr; } .ingredients { position: static; } }
@media (max-width: 600px) { .notes { grid-template-columns: 1fr; } .steps li { grid-template-columns: 44px 1fr; padding: 14px; } .steps li .n { font-size: 1.7rem; } }

.paywall { border: 3px solid var(--ox); border-radius: 16px; background: var(--card); padding: 30px; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.paywall::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: repeating-linear-gradient(-45deg, var(--ox) 0 12px, var(--card) 12px 24px); }
.paywall h2 { margin-top: 10px; }
.paywall p { max-width: 520px; margin-left: auto; margin-right: auto; color: var(--ink-2); }
.paywall .plan-cards { max-width: 560px; margin: 26px auto 16px; text-align: left; }
.teaser { position: relative; }
.teaser::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: linear-gradient(transparent, var(--card)); }
.blurred { filter: blur(4px); user-select: none; pointer-events: none; }

/* ---------- Product detail ---------- */
.pdetail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding: 20px 0 60px; }
.pdetail__photo .pstamp__edge { --r: 9px; }
.pdetail__photo .pstamp__photo { border-bottom: 0; }
.pdetail__price { font-family: var(--display); font-size: 2.3rem; color: var(--ox); margin: 6px 0 14px; }
.pdetail ul.details { padding-left: 20px; margin: 16px 0 22px; }
.pdetail ul.details li { margin-bottom: 6px; }
.qty { display: inline-flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--card); }
.qty button { width: 42px; border: 0; background: var(--paper-2); font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--cel-soft); }
.qty input { width: 52px; text-align: center; border: 0; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); background: var(--card); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buyrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.perks { display: grid; gap: 8px; margin-top: 22px; padding: 16px 18px; border: 2px dashed var(--ink-3); border-radius: 12px; font-size: .92rem; }
@media (max-width: 820px) { .pdetail { grid-template-columns: 1fr; gap: 30px; } }

.storecats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 30px; }
.storecat { position: relative; display: grid; grid-template-rows: 100px auto; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--card); }
.storecat img { width: 100%; height: 100px; object-fit: cover; border-bottom: 2px solid var(--ink); }
.storecat span { padding: 8px 12px; font-weight: 700; font-size: .92rem; display: flex; justify-content: space-between; }
.storecat small { color: var(--ink-3); font-weight: 600; }
.storecat[aria-current="page"] { outline: 3px solid var(--ox); outline-offset: 2px; }
.storecat:hover { color: var(--ox); }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.cart-list { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); }
.cart-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--ink); }
.cart-item h3 { font-family: var(--text); font-weight: 700; font-size: 1rem; margin: 0 0 4px; }
.cart-item h3 a { color: var(--ink); text-decoration: none; }
.cart-item .line { font-family: var(--display); font-size: 1.2rem; text-align: right; }
.cart-item .remove { background: none; border: 0; color: var(--ox); font-weight: 700; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.summary { position: sticky; top: 16px; border: 2px solid var(--ink); border-radius: 4px 14px 14px 14px; padding: 0 20px 20px; box-shadow: var(--shadow); }
.summary header { height: 46px; display: flex; align-items: center; }
.summary h2 { font-size: 1.2rem; margin: 0; }
.summary dl { margin: 0 0 14px; }
.summary dl div { display: flex; justify-content: space-between; line-height: 30px; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 700; }
.summary .total { font-family: var(--display); font-size: 1.35rem; }
.summary .total dd { font-weight: 400; color: var(--ox); }
.summary.lined { background-size: 100% 100%, 100% 30px; background-position: 0 0, 0 46px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) { .cart-item { grid-template-columns: 72px 1fr; } .cart-item img { width: 72px; height: 72px; } .cart-item .line { grid-column: 2; text-align: left; } }

.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.panel { border: 2px solid var(--ink); border-radius: 14px; background: var(--card); padding: 22px; margin-bottom: 22px; }
.panel h2 { font-size: 1.3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 16px; }
.cardfield { position: relative; }
.cardfield .brand { position: absolute; right: 12px; bottom: 12px; font-size: .78rem; font-weight: 800; color: var(--cel-deep); }
.testcard { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--ink-2); background: var(--cel-soft); border: 1.5px solid var(--rule); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; }
.testcard__lock { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--cel-deep); color: var(--card); display: grid; place-items: center; }
.testcard__lock svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.receipt { max-width: 640px; margin: 0 auto; border: 2px solid var(--ink); border-radius: 4px; padding: 30px 28px; box-shadow: var(--shadow); position: relative; background: var(--card); }
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: radial-gradient(circle at 8px -2px, var(--paper) 7px, transparent 7.5px) 0 0 / 16px 12px repeat-x; }
.receipt::before { top: -2px; }
.receipt::after { bottom: -2px; transform: rotate(180deg); }
.receipt table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.receipt td, .receipt th { padding: 8px 0; border-bottom: 1px dashed var(--rule); text-align: left; }
.receipt td:last-child, .receipt th:last-child { text-align: right; }
.bigcheck { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cel); display: grid; place-items: center; margin: 0 auto 14px; }
.bigcheck svg { width: 40px; height: 40px; }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); margin: 30px auto 64px; max-width: 1000px; }
.auth__photo { position: relative; border-right: 2px solid var(--ink); }
.auth__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth__photo blockquote { position: absolute; left: 20px; right: 20px; bottom: 20px; margin: 0; background: var(--card); border: 2px solid var(--ink); border-radius: 10px 10px 10px 0; padding: 14px 16px; font-family: var(--display); font-size: 1.1rem; line-height: 1.3; }
.auth__form { padding: 38px 36px; }
.auth__form h1 { font-size: 2.2rem; }
@media (max-width: 780px) { .auth { grid-template-columns: 1fr; } .auth__photo { min-height: 200px; border-right: 0; border-bottom: 2px solid var(--ink); } .auth__photo blockquote { display: none; } .auth__form { padding: 26px 18px; } }

/* ---------- Account ---------- */
.acct { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 60px; }
.acct .panel { margin: 0; }
.acct .wide { grid-column: 1 / -1; }
.orders { width: 100%; border-collapse: collapse; }
.orders th, .orders td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); }
@media (max-width: 760px) { .acct { grid-template-columns: 1fr; } .orders { font-size: .88rem; } }

/* ---------- About, team, careers, FAQ, contact ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 34px 26px; }
.member { margin: 0; }
.member .polaroid { width: 100%; padding-bottom: 12px; }
.member .polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; }
.member h3 { margin: 18px 0 2px; font-size: 1.35rem; }
.member .role { font-weight: 700; color: var(--ox); font-size: .9rem; margin-bottom: 8px; }
.member p { font-size: .95rem; color: var(--ink-2); }
.member .spec { font-size: .82rem; color: var(--cel-deep); font-weight: 700; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.value { border: 2px solid var(--ink); border-radius: 12px; padding: 20px; background: var(--card); }
.value .big { font-family: var(--display); font-size: 2.4rem; color: var(--ox); line-height: 1; }

.jobs { display: grid; gap: 14px; }
.job { border: 2px solid var(--ink); border-radius: 12px; background: var(--card); overflow: hidden; }
.job summary { list-style: none; cursor: pointer; padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.job summary::-webkit-details-marker { display: none; }
.job summary h3 { margin: 0; font-size: 1.3rem; }
.job summary .meta { grid-column: 1; display: flex; gap: 12px; flex-wrap: wrap; font-size: .86rem; color: var(--ink-3); }
.job summary .toggle { grid-row: 1 / span 2; grid-column: 2; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; transition: transform .2s; }
.job[open] summary .toggle { transform: rotate(45deg); background: var(--ox); color: var(--card); }
.job__body { padding: 0 22px 22px; border-top: 2px dashed var(--rule); }
.job__body h4 { font-family: var(--text); font-weight: 700; margin: 16px 0 6px; font-size: 1rem; }
.job__body ul { margin: 0; padding-left: 20px; }

.faq-sections { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.faq-toc { position: sticky; top: 16px; display: grid; gap: 8px; }
.faq-toc a { padding: 10px 14px; border: 2px solid var(--ink); border-radius: 10px 10px 10px 0; background: var(--card); text-decoration: none; color: var(--ink); font-weight: 600; }
.faq-toc a:hover { background: var(--cel-soft); }
.faq-group { margin-bottom: 36px; scroll-margin-top: 20px; }
.qa { border-bottom: 2px solid var(--rule); }
.qa summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-family: var(--display); font-size: 1.5rem; color: var(--ox); }
.qa[open] summary::after { content: "\2212"; }
.qa .a { padding: 0 0 16px; color: var(--ink-2); }
@media (max-width: 820px) { .faq-sections { grid-template-columns: 1fr; } .faq-toc { position: static; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.ccard { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); }
.ccard .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--cel-soft); border: 2px solid var(--ink); display: grid; place-items: center; }
.ccard .ic svg { width: 22px; height: 22px; }
.ccard b { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); }
.ccard a, .ccard span { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.sitemap { columns: 3 240px; column-gap: 34px; }
.sitemap section { break-inside: avoid; margin-bottom: 26px; }
.sitemap h2 { font-size: 1.3rem; border-bottom: 3px solid var(--ox); padding-bottom: 6px; }
.sitemap ul { list-style: none; padding: 0; margin: 0; }
.sitemap li { padding: 4px 0; border-bottom: 1px dashed var(--rule); }
.sitemap a { color: var(--ink); text-decoration: none; }
.sitemap a:hover { color: var(--ox); }

/* ---------- Journal ---------- */
.post-hero { max-width: 880px; margin: 0 auto; text-align: center; padding: 30px 0 20px; }
.post-hero .meta { color: var(--ink-3); font-size: .92rem; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.post-photo { max-width: 1060px; margin: 10px auto 40px; }
.post-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border: 2px solid var(--ink); border-radius: 16px; }
.prose { max-width: 720px; margin: 0 auto; font-size: 1.08rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 6px solid var(--ox); background: var(--card); border-radius: 0 12px 12px 0; font-family: var(--display); font-size: 1.25rem; line-height: 1.35; }
.byline { display: flex; align-items: center; gap: 14px; max-width: 720px; margin: 40px auto 0; padding: 18px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); }
.byline img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 2px solid var(--ink); }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; padding-bottom: 60px; }
.legal nav { position: sticky; top: 16px; display: grid; gap: 6px; }
.legal nav a { padding: 9px 12px; border-radius: 8px 8px 8px 0; text-decoration: none; color: var(--ink); border: 1.5px solid transparent; font-weight: 600; }
.legal nav a:hover { border-color: var(--ink); background: var(--card); }
.legal nav a[aria-current="page"] { background: var(--ink); color: var(--card); }
.legal .prose { margin: 0; max-width: 780px; }
.updated { display: inline-block; padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); font-size: .86rem; font-weight: 600; margin-bottom: 20px; }
@media (max-width: 820px) { .legal { grid-template-columns: 1fr; } .legal nav { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

/* ---------- Footer ---------- */
.footer { margin-top: 30px; padding: 0 0 26px; }
.footer__card { border: 2px solid var(--ink); border-radius: 4px 20px 20px 20px; padding: 72px 30px 26px; position: relative; box-shadow: var(--shadow); }
.footer__card.lined { background-size: 100% 100%, 100% 30px; background-position: 0 0, 0 60px; background-image: linear-gradient(var(--card) 0, var(--card) 58px, var(--rule-red) 58px, var(--rule-red) 60px, transparent 60px), repeating-linear-gradient(transparent 0, transparent 29px, var(--rule) 29px, var(--rule) 30px); }
.footer__tab { position: absolute; top: -34px; left: -2px; padding: 6px 18px 8px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--card); font-family: var(--display); font-size: 1.05rem; }
.footer__heading { position: absolute; top: 14px; left: 30px; right: 30px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.footer__heading span { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; line-height: 30px; }
.footer h2 { font-family: var(--text); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cel-deep); font-weight: 800; margin: 0; line-height: 30px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--ox); text-decoration: underline; }
.footer address { font-style: normal; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 6px 0; font-size: .84rem; color: var(--ink-3); }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 18px; } .footer__card { padding: 72px 18px 20px; } .footer__heading { left: 18px; right: 18px; } .footer__heading span { display: none; } }

/* ---------- Cookie notice ---------- */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: min(460px, calc(100vw - 32px)); background: var(--card); border: 2px solid var(--ink); border-radius: 14px 14px 14px 0; box-shadow: 0 16px 30px -12px rgba(29, 33, 27, .5); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; font-size: .9rem; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 420px) { .cookie { grid-template-columns: 1fr; } .cookie .btn { justify-self: start; } }

/* ---------- Toast ---------- */
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 85; background: var(--ink); color: var(--card); padding: 12px 16px; border-radius: 12px 12px 0 12px; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.is-on { transform: none; opacity: 1; }
.toast a { color: var(--cel); }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 70px 0; }
.lost .big { font-family: var(--display); font-size: clamp(5rem, 16vw, 10rem); color: var(--ox); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topline, .masthead, .tabs, .footer, .cookie, .actions-row, .related, .support-photos { display: none !important; }
  body { background: #fff; }
  .rbody { grid-template-columns: 1fr; }
}
