@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/cinzel-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/source-sans-3-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/source-sans-3-latin-italic.woff2") format("woff2"); }

:root {
  --bg: #070706; --bg-2: #12100E; --surface: #1A1612; --surface-2: #211C17;
  --cream: #E8DFD0; --cream-dim: #B8AD9C; --stone: #8A8072;
  --ember: #C45C2A; --ember-soft: #A85A32; --ember-deep: #A33E16;
  --brass: #B08A5A; --line: #2C261F; --max: 70rem;
  --serif: "Cinzel", Palatino, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--cream);
  font-family: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--surface); color: var(--cream); padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.eyebrow { font-family: var(--serif); font-weight: 500; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin: 0 0 .75rem; }

/* header, same as home */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(11,10,9,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--serif); font-weight: 500; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.nav-links { display: flex; gap: .2rem 1.05rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { text-decoration: none; color: var(--cream-dim); font-size: .92rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ember); }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem; border: 0; color: var(--cream); background: var(--ember); text-decoration: none; font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: .03em; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--ember-soft); transform: translateY(-1px); }
.btn.ghost { background: transparent; border: 1px solid var(--brass); color: var(--cream); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--ember); }
.btn svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

/* ---------- index ---------- */
.rx-hero { position: relative; padding: 4.2rem 0 2.6rem; text-align: center; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(196,92,42,.16), transparent 60%), var(--bg); }
.rx-hero .crest { width: 84px; height: 84px; margin: 0 auto 1.1rem; opacity: .95; }
.rx-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: .06em; margin: 0 0 .5rem; line-height: 1.1; }
.rx-hero .lead { font-style: italic; font-size: 1.3rem; margin: 0 0 1rem; }
.rx-hero .intro { max-width: 40rem; margin: 0 auto; color: var(--cream-dim); }
.rule { width: 4.5rem; height: 2px; background: var(--brass); margin: 1.1rem auto; border: 0; }

.rx-tools { position: sticky; top: 3.5rem; z-index: 10; background: rgba(7,7,6,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: .85rem 0; }
.rx-tools .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; letter-spacing: .02em; padding: .4rem .9rem; background: var(--surface); color: var(--cream-dim); border: 1px solid var(--line); cursor: pointer; transition: all .15s ease; }
.chip:hover { border-color: var(--brass); color: var(--cream); }
.chip[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: var(--cream); }
.search { position: relative; flex: 0 1 18rem; min-width: 12rem; }
.search input { width: 100%; font: inherit; font-size: .95rem; color: var(--cream); background: var(--surface); border: 1px solid var(--line); padding: .5rem .8rem .5rem 2.2rem; }
.search input::placeholder { color: var(--stone); }
.search input:focus { outline: none; border-color: var(--brass); }
.search svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; fill: var(--stone); }

.rx-list { padding: 2.4rem 0 3.6rem; }
.rx-count { color: var(--stone); font-size: .92rem; margin: 0 0 1.1rem; }
.rx-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.rx-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.rx-card:hover { border-color: var(--ember); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.rx-card .thumb { position: relative; overflow: hidden; background: var(--bg-2); }
.rx-card .thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .4s ease; }
.rx-card:hover .thumb img { transform: scale(1.05); }
.badge { position: absolute; left: .7rem; bottom: .7rem; font-family: var(--serif); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: rgba(7,7,6,.82); border: 1px solid rgba(176,138,90,.6); color: var(--cream); padding: .3rem .55rem; }
.rx-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.rx-card h2 { font-family: var(--serif); font-weight: 500; font-size: 1.18rem; letter-spacing: .02em; line-height: 1.3; margin: 0 0 .2rem; }
.rx-card .sub { font-style: italic; color: var(--brass); font-size: .95rem; margin: 0 0 .55rem; }
.rx-card p.short { color: var(--cream-dim); font-size: .98rem; margin: 0 0 .9rem; flex: 1 1 auto; }
.rx-card .meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .84rem; color: var(--stone); border-top: 1px solid var(--line); padding-top: .7rem; }
.rx-card .meta .go { margin-left: auto; color: var(--ember); font-weight: 600; }
.rx-empty { text-align: center; color: var(--cream-dim); padding: 2rem 0; }

/* ---------- recipe page ---------- */
.crumbs { font-size: .88rem; color: var(--stone); padding: 1.2rem 0 0; }
.crumbs a { color: var(--cream-dim); text-decoration: none; }
.crumbs a:hover { color: var(--ember); }
.r-head { padding: 1.4rem 0 1.6rem; max-width: 52rem; }
.r-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: .03em; line-height: 1.12; margin: 0 0 .35rem; }
.r-head .sub { font-style: italic; color: var(--brass); font-size: 1.25rem; margin: 0 0 .9rem; }
.r-head .short { color: var(--cream-dim); font-size: 1.15rem; margin: 0; max-width: 44rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 1.4rem 0 0; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--surface); width: fit-content; max-width: 100%; }
.facts li { padding: .65rem 1.1rem; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; }
.facts .k { display: block; font-family: var(--serif); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.facts .v { font-size: .98rem; }

.player { position: relative; background: #000; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 16/9; }
.player.vertical { aspect-ratio: 9/16; max-width: 22rem; margin-inline: auto; }
.player-wrap.vertical-bg { background: var(--bg-2); border: 1px solid var(--line); padding: 1.2rem 0; }
.player iframe, .player button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player button { padding: 0; cursor: pointer; background: #000; }
.player button img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s ease, transform .4s ease; }
.player button:hover img { opacity: 1; transform: scale(1.02); }
.player .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 4.6rem; height: 4.6rem; border-radius: 50%; background: var(--ember); display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.55); transition: background .15s ease, transform .15s ease; }
.player button:hover .play { background: var(--ember-deep); transform: translate(-50%, -50%) scale(1.06); }
.player .play svg { width: 1.7rem; height: 1.7rem; fill: var(--cream); margin-left: .25rem; }
.player .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .8rem; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: var(--cream); font-size: .92rem; text-align: left; }

.r-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.3rem 0 0; }
.about-ep { margin: 2rem 0 0; padding: 1.2rem 1.3rem; background: var(--bg-2); border-left: 4px solid var(--brass); max-width: 52rem; }
.about-ep p { margin: 0; color: var(--cream-dim); }
.about-ep .eyebrow { margin-bottom: .4rem; }

.r-body { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2.6rem 0 3rem; margin-top: 2.4rem; border-top: 1px solid var(--line); }
.r-body h2 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; letter-spacing: .05em; margin: 0 0 .2rem; }
.ingredients { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ember); padding: 1.3rem 1.3rem 1.4rem; align-self: start; }
.ing-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.linkbtn { font: inherit; font-size: .85rem; color: var(--stone); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.linkbtn:hover { color: var(--ember); }
.ing-yield { color: var(--stone); font-size: .9rem; margin: 0 0 .6rem; }
.ingredients h3 { font-family: var(--serif); font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin: 1.3rem 0 .45rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
.ingredients ul { list-style: none; margin: 0; padding: 0; }
.ingredients li { border-bottom: 1px dashed rgba(138,128,114,.22); }
.ingredients li:last-child { border-bottom: 0; }
.ingredients label { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0; cursor: pointer; font-size: 1.02rem; line-height: 1.45; }
.ingredients input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: .17rem 0 0; border: 1.5px solid var(--brass); background: transparent; display: grid; place-items: center; cursor: pointer; transition: all .15s ease; }
.ingredients input::after { content: ""; width: .55rem; height: .3rem; border-left: 2px solid var(--cream); border-bottom: 2px solid var(--cream); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.ingredients input:checked { background: var(--ember); border-color: var(--ember); }
.ingredients input:checked::after { opacity: 1; }
.ingredients input:checked + span { color: var(--stone); text-decoration: line-through; text-decoration-color: rgba(138,128,114,.7); }

.method h3 { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); margin: 2rem 0 .8rem; display: flex; align-items: center; gap: .8rem; }
.method h3::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.method > h2 + h3 { margin-top: 1.2rem; }
.method ol { list-style: none; margin: 0; padding: 0; }
.method li { position: relative; padding: 0 0 1.15rem 3.1rem; min-height: 2.2rem; }
.method li .n { position: absolute; left: 0; top: .05rem; width: 2.15rem; height: 2.15rem; border: 1px solid var(--brass); color: var(--brass); font-family: var(--serif); font-weight: 600; font-size: .95rem; display: grid; place-items: center; }
.method li p { margin: 0; }
.tip { margin: .1rem 0 1.15rem 3.1rem; padding: .6rem .9rem; border-left: 3px solid var(--brass); background: var(--bg-2); color: var(--cream-dim); font-size: .98rem; }
.notes { margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ember); padding: 1.1rem 1.25rem; }
.notes h3 { margin: 0 0 .5rem; font-family: var(--serif); font-weight: 500; font-size: 1rem; letter-spacing: .06em; text-transform: none; color: var(--cream); display: block; }
.notes h3::after { display: none; }
.notes p { margin: 0 0 .7rem; color: var(--cream-dim); }
.notes p:last-child { margin: 0; }
.notes strong { color: var(--cream); font-weight: 600; }
.source { color: var(--stone); font-size: .9rem; margin: 1.6rem 0 0; }
.source a { color: var(--cream-dim); }

.related { border-top: 1px solid var(--line); background: var(--bg-2); padding: 2.8rem 0 3.2rem; }
.related h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: .04em; margin: 0 0 1.2rem; }

footer.site { background: var(--bg); border-top: 1px solid var(--line); color: var(--cream-dim); padding: 2.3rem 0 2.8rem; text-align: center; }
footer.site .wordmark { font-family: var(--serif); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: .95rem; margin: 0 0 .35rem; color: var(--cream); }
footer.site .tag { font-style: italic; color: var(--stone); margin: 0 0 .85rem; }
footer.site p { margin: 0 0 .3rem; color: var(--stone); font-size: .95rem; }

@media (min-width: 640px) { .rx-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .rx-grid { grid-template-columns: 1fr 1fr 1fr; }
  .r-body { grid-template-columns: minmax(19rem, 25rem) 1fr; gap: 3rem; }
  .r-top { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .nav-links { gap: .2rem .75rem; }
  .nav-links a { font-size: .84rem; }
  body { font-size: 1.05rem; }
  .facts li { flex: 1 1 45%; border-bottom: 1px solid var(--line); }
  .rx-tools { position: static; }
  .search { flex: 1 1 100%; }
  .method li { padding-left: 2.7rem; }
  .tip { margin-left: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rx-card:hover, .rx-card:hover .thumb img, .btn:hover, .player button:hover img { transform: none; }
}

/* ---------- print ---------- */
@media print {
  @page { margin: 1.6cm; }
  :root { --cream: #111; --cream-dim: #333; --stone: #555; --brass: #6b4f2a; --line: #ccc; }
  body { background: #fff; color: #111; font-size: 11pt; line-height: 1.45; }
  header.site, .skip, .player-wrap, .r-actions, .related, footer.site, .crumbs, .about-ep, .linkbtn, .rx-tools { display: none !important; }
  .wrap { width: 100%; }
  .r-head { padding: 0 0 .6rem; max-width: none; }
  .r-head h1 { font-size: 22pt; }
  .r-head .sub { font-size: 13pt; }
  .r-head .short { font-size: 11pt; }
  .facts { background: none; border-color: #bbb; margin-top: .6rem; }
  .facts li { padding: .3rem .8rem; }
  .r-body { display: grid; grid-template-columns: 34% 1fr; gap: 1.4rem; margin-top: .8rem; padding: .8rem 0 0; border-top: 1px solid #999; }
  .ingredients { background: none; border: 0; padding: 0; position: static; max-height: none; overflow: visible; }
  .ingredients label { padding: .15rem 0; font-size: 10.5pt; }
  .ingredients input { border-color: #555; width: .85rem; height: .85rem; }
  .ingredients input:checked + span { text-decoration: none; color: #111; }
  .ingredients input:checked { background: none; }
  .ingredients input::after { display: none; }
  .ingredients li { border: 0; break-inside: avoid; }
  .method li { padding-left: 2.2rem; padding-bottom: .6rem; break-inside: avoid; }
  .method li .n { width: 1.5rem; height: 1.5rem; font-size: 9pt; color: #111; border-color: #777; }
  .method h3 { margin: 1rem 0 .4rem; font-size: 10pt; }
  .tip { background: none; margin-left: 2.2rem; border-color: #999; padding: .2rem .6rem; }
  .notes { background: none; border: 1px solid #bbb; border-left: 3px solid #777; break-inside: avoid; }
  .source { color: #444; }
  .source a { text-decoration: none; }
  .print-url { display: block !important; margin-top: .8rem; font-size: 9pt; color: #555; }
}
.print-url { display: none; }
@media (max-width: 600px) { .player .label { display: none; } .player .play { width: 3.8rem; height: 3.8rem; } }
