/* The Gourmet Craft: cinematic editorial. Instrument Serif + Inter Tight. One file, no framework. */
:root {
  --cream: #f3ede4;
  --paper: #faf6ef;
  --ink: #1b1714;
  --muted: #6f655c;
  --line: rgba(27, 23, 20, .14);
  --night: #14110f;
  --night-2: #1f1a16;
  --on-night: #efe7dc;
  --ember: #c4562b;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 50; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -.01em; margin: 0; }
h1 em, h2 em, h3 em, h4 em { font-style: italic; }
.label { font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.25rem; }
.label.light, .kicker.light { color: rgba(239, 231, 220, .78); }
.dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 .7em; vertical-align: middle; opacity: .7; }
.section-h { font-size: clamp(2.4rem, 5.5vw, 5rem); max-width: 18ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

/* reveal */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* header: transparent over the hero, solid after scrolling */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 2.5rem; padding: 1.1rem var(--pad);
  color: #fff; transition: background .4s, color .4s, padding .4s; }
.site-head.solid { background: rgba(243, 237, 228, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); padding-top: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.brand { font: 400 1.7rem/1 var(--serif); text-decoration: none; white-space: nowrap; }
.cats { display: flex; gap: 1.6rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; font: 500 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.cats a { text-decoration: none; white-space: nowrap; padding: .4rem 0; opacity: .85; border-bottom: 1px solid transparent; }
.cats a:hover, .cats a[aria-current] { opacity: 1; border-color: currentColor; }
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 30; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--ember); transform: scaleX(0); transform-origin: 0 50%; }

/* hero */
.hero { position: relative; min-height: min(100svh, 1000px); display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { animation: drift 24s var(--ease) both; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 7, .55) 0%, rgba(10, 8, 7, .05) 28%, rgba(10, 8, 7, .25) 55%, rgba(10, 8, 7, .88) 100%); }
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-text { position: relative; width: 100%; padding: 0 var(--pad) clamp(2.5rem, 7vh, 5rem); animation: rise 1.4s .15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.hero .kicker { font: 500 .74rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin: 0 0 1.5rem; }
.hero .kicker a { text-decoration: none; }
.hero .kicker a:hover { text-decoration: underline; }
.hero .kicker span:not(.dot) { margin: 0 .8em; opacity: .6; }
.hero-title { font-size: clamp(3.2rem, 9.5vw, 10.5rem); line-height: .9; letter-spacing: -.025em; max-width: 14ch; text-wrap: balance; }
.hero-dek { max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.55; color: rgba(255, 255, 255, .86); margin: 1.75rem 0 0; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem 3rem; padding: 1.5rem 0 0; margin: 2rem 0 0; border-top: 1px solid rgba(255, 255, 255, .25); max-width: 760px; font: 400 1rem/1.3 var(--sans); }
.hero-meta span { display: block; font: 500 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .65; margin-bottom: .45rem; }
.scroll-cue { position: absolute; right: var(--pad); bottom: clamp(2.5rem, 7vh, 5rem); font: 500 .68rem/1 var(--sans); letter-spacing: .25em; text-transform: uppercase; writing-mode: vertical-rl; opacity: .7; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 56px; background: currentColor; margin: 1rem auto 0; animation: cue 2.2s infinite var(--ease); transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.btn-line { display: inline-flex; gap: .8rem; align-items: center; margin-top: 2rem; padding: 1rem 1.6rem; border: 1px solid rgba(255, 255, 255, .7); text-decoration: none;
  font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: background .3s, color .3s; }
.btn-line:hover { background: #fff; color: var(--ink); }

/* manifesto */
.manifesto { padding-top: clamp(5rem, 12vw, 10rem); padding-bottom: clamp(4rem, 9vw, 8rem); }
.manifesto-text { font: 400 clamp(2rem, 4.6vw, 4.4rem)/1.08 var(--serif); letter-spacing: -.015em; max-width: 24ch; margin: 0; text-wrap: balance; }
.manifesto-text em { color: var(--ember); }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 2.5rem 0 0; margin: clamp(3rem, 6vw, 5rem) 0 0; border-top: 1px solid var(--line); max-width: 980px; }
.stats strong { display: block; font: 400 clamp(3rem, 7vw, 6rem)/1 var(--serif); }
.stats span { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* category tiles */
.cats-sec { padding-bottom: clamp(4rem, 8vw, 7rem); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0 var(--pad); max-width: 1440px; margin: 0 auto; }
.tile { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; color: #fff; text-decoration: none; background: var(--night); }
.tile-img, .tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,7,.35), rgba(10,8,7,0) 35%, rgba(10,8,7,.75)); }
.tile:hover .tile-img img { transform: scale(1.06); }
.tile-n { position: absolute; top: 1.25rem; left: 1.4rem; font: 500 .74rem/1 var(--sans); letter-spacing: .2em; }
.tile-name { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 3.3rem; font: 400 clamp(2rem, 3.4vw, 3.2rem)/1 var(--serif); }
.tile-sub { position: absolute; left: 1.4rem; bottom: 1.4rem; font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .8; }

/* cards */
.card a { display: block; text-decoration: none; }
.card-img { overflow: hidden; background: var(--night-2); aspect-ratio: 4/3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card a:hover .card-img img { transform: scale(1.05); }
.card .kicker { font: 500 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 1.2rem 0 .7rem; }
.card h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.04; text-wrap: balance; }
.card h3 em { color: var(--ember); }
.card a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 4rem) clamp(1rem, 2vw, 2rem); }
.list { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.feature { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.feature-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.card-xl .card-img { aspect-ratio: 5/4; }
.card-xl h3 { font-size: clamp(2.4rem, 4.4vw, 4.4rem); line-height: .98; }
.feature-side { display: grid; gap: clamp(2rem, 3vw, 3rem); }

/* dark sections */
.dark { background: var(--night); color: var(--on-night); padding: clamp(5rem, 10vw, 9rem) 0; }
.dark .card .kicker { color: rgba(239, 231, 220, .6); }
.dark .card h3 em, .dark .section-h em { color: #e9a07c; }
.how-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding: 0; margin: 0; }
.how-list li { border-top: 1px solid rgba(239, 231, 220, .2); padding-top: 1.6rem; }
.how-list span { font: 400 1.1rem/1 var(--serif); font-style: italic; color: #e9a07c; }
.how-list h3 { font-size: clamp(2rem, 3vw, 2.8rem); margin: 1rem 0 .9rem; }
.how-list p { color: rgba(239, 231, 220, .72); max-width: 34ch; margin: 0; }

/* article */
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); padding: clamp(4rem, 8vw, 6rem) var(--pad) clamp(5rem, 9vw, 8rem); }
.toc { grid-column: 1; justify-self: end; position: sticky; top: 6rem; align-self: start; width: 210px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: .8rem; padding: .45rem 0; text-decoration: none; color: var(--muted); font-size: .88rem; line-height: 1.35; border-top: 1px solid var(--line); }
.toc a::before { content: counter(t, decimal-leading-zero); font: italic 400 .95rem/1.35 var(--serif); color: var(--ember); }
.toc a:hover { color: var(--ink); }
.prose { grid-column: 2; min-width: 0; font-size: 1.125rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.25rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose > p:first-of-type + p::first-letter { float: left; font: 400 5.2rem/.8 var(--serif); padding: .35rem .6rem 0 0; color: var(--ember); }
.prose h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); margin-top: 5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin-top: 3.25rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li + li { margin-top: .5rem; }
.prose li::marker { color: var(--ember); }
.prose a { text-decoration-color: rgba(196, 86, 43, .5); text-underline-offset: 3px; }
.prose a:hover { color: var(--ember); }
.prose strong { font-weight: 600; }
.disclosure, .note { font-size: .88rem; line-height: 1.55; color: var(--muted); }
.disclosure { padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* quick picks: a ruled, numbered list rather than a boxed table */
.table { margin-top: 2rem; }
.table table { width: 100%; border-collapse: collapse; counter-reset: r; font-size: .98rem; line-height: 1.45; }
.table th { text-align: left; font: 500 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 0 1rem .9rem 0; border-bottom: 1px solid var(--ink); }
.table td { padding: 1.2rem 1rem 1.2rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr { counter-increment: r; }
.table td:first-child { font: 400 1.45rem/1.1 var(--serif); }
.table td:first-child::before { content: counter(r, decimal-leading-zero); display: block; font: 500 .68rem/1 var(--sans); letter-spacing: .2em; color: var(--ember); margin-bottom: .55rem; }
.table td:first-child a { text-decoration: none; }
.table td:first-child a:hover { color: var(--ember); }

/* product card: dark, numbered */
.product { position: relative; background: var(--night); color: var(--on-night); padding: clamp(1.75rem, 4vw, 3rem); margin-top: 2.5rem !important; overflow: hidden; }
.product-no { position: absolute; right: clamp(1rem, 3vw, 2rem); top: -.1em; font: italic 400 clamp(6rem, 12vw, 9rem)/1 var(--serif); color: rgba(233, 160, 124, .22); pointer-events: none; }
.product-best { font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #e9a07c; margin: 0; }
.product-name { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.05; margin: .9rem 0 1.4rem; max-width: 18ch; }
.product ul { list-style: none; padding: 0; margin: 0 0 2rem; font-size: 1rem; line-height: 1.5; }
.product li { padding: .75rem 0 .75rem 2rem; border-top: 1px solid rgba(239, 231, 220, .14); position: relative; }
.product li::before { position: absolute; left: 0; top: .72rem; font: 400 1.2rem/1 var(--serif); }
.product li.pro::before { content: "+"; color: #a9c79b; }
.product li.con::before { content: "\2013"; color: #e9a07c; }
.btn { display: inline-flex; gap: .8rem; align-items: center; background: var(--on-night); color: var(--ink); text-decoration: none; font: 500 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 1.05rem 1.6rem; transition: background .3s, color .3s; }
.btn:hover { background: var(--ember); color: #fff; }

/* video */
.video { margin-left: 0; margin-right: 0; }
.video a { position: relative; display: block; overflow: hidden; }
.video img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: rgba(20, 17, 15, .75); transition: transform .3s var(--ease); }
.video a:hover .play { transform: scale(1.08); }
.play::after { content: ""; position: absolute; left: 34px; top: 27px; border: 15px solid transparent; border-left: 24px solid #fff; border-right: 0; }
.video iframe { width: 100%; aspect-ratio: 16/9; border: 0; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--ink); margin-top: 1.5rem; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 0; font: 400 1.6rem/1.15 var(--serif); }
.faq summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); color: var(--ember); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 1.4rem; color: #3b342e; }

/* footer */
.site-foot { background: var(--night); color: var(--on-night); padding: clamp(4rem, 8vw, 6rem) var(--pad) 0; overflow: hidden; border-top: 1px solid rgba(239, 231, 220, .12); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; max-width: 1440px; margin: 0 auto; }
.foot-lede { font: 400 clamp(1.6rem, 2.6vw, 2.4rem)/1.15 var(--serif); max-width: 22ch; margin: 0 0 1.5rem; }
.small { font-size: .85rem; color: rgba(239, 231, 220, .6); max-width: 52ch; }
.foot-cats { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 2rem; align-content: start; }
.foot-cats .label { grid-column: 1 / -1; color: rgba(239, 231, 220, .55); }
.foot-cats a { text-decoration: none; padding: .35rem 0; border-bottom: 1px solid rgba(239, 231, 220, .12); font-size: .95rem; }
.foot-cats a:hover { color: #e9a07c; }
.wordmark { font: 400 15.5vw/.8 var(--serif); letter-spacing: -.035em; white-space: nowrap; margin: clamp(3rem, 7vw, 6rem) 0 -.12em; text-align: center; color: var(--on-night); }
.wordmark em { color: #e9a07c; }
.plain { padding-top: 12rem; padding-bottom: 8rem; }
.plain .prose { max-width: 720px; }
.site-head:has(+ main .plain) { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: 1.5rem; font-size: .85rem; }
.foot-links a { color: rgba(239, 231, 220, .75); text-decoration: none; }
.foot-links a:hover { color: #e9a07c; }

/* narrow screens */
@media (max-width: 1180px) {
  .post-grid { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .toc { display: none; }
  .prose { grid-column: 1; }
  .cats { display: none; }
}
@media (max-width: 900px) {
  .grid3, .how-list { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: none; }
  .tile { flex: 0 0 72vw; scroll-snap-align: start; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .grid3, .how-list, .foot-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(3rem, 14vw, 4.6rem); }
  .hero-meta { gap: .75rem 2rem; }
  .scroll-cue { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .prose { font-size: 1.06rem; }
  .table thead { display: none; }
  .table table, .table tbody, .table tr, .table td { display: block; }
  .table td { border: 0; padding: .2rem 0; }
  .table tr { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
  .table td:not(:first-child)::before { content: attr(data-label) " · "; font: 500 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
