/* chopinson.com — brand: chili red, ink, cream, mustard. Permanent Marker for one big moment per page; Outfit for the rest. */
@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url('/fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 800; font-display: swap; src: url('/fonts/outfit-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Permanent Marker'; font-weight: 400; font-display: swap; src: url('/fonts/permanent-marker-latin-400-normal.woff2') format('woff2'); }

:root {
  --chili: #c2222a;
  --palm: #8e1f17;
  --ink: #141414;
  --cream: #f5f5e9;
  --mustard: #f2b630;
  --muted: #5e5e57;
  --line: #deddcd;
  --soft: #fbe3e4;
  --green: #1e6b3f;
  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 56px);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { :root { font-size: 18px; } }
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chili); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--palm); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0; }
.marker { font-family: 'Permanent Marker', 'Outfit', cursive; font-weight: 400; letter-spacing: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
main > section { padding: clamp(56px, 9vw, 112px) var(--pad); }
main > section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.lede { font-size: 1.15rem; max-width: 34em; color: #2c2c28; }
.section-lede { color: var(--muted); margin-top: 10px; }

/* Header */
.top { display: flex; align-items: center; gap: 20px; padding: 18px var(--pad); max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.top-nav { display: flex; gap: 22px; align-items: center; }
.top-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.top-nav a:hover { color: var(--chili); }
.top-nav .top-sell { background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; }
.top-nav .top-sell:hover { background: var(--chili); color: #fff; }
@media (max-width: 720px) {
  .top-nav a:not(.top-sell) { display: none; }
  .top-nav .top-sell { padding: 8px 13px; font-size: 0.9rem; }
}

/* Buttons & stores */
.btn { display: inline-block; background: var(--chili); color: #fff; font-weight: 800; text-decoration: none; padding: 13px 22px; border-radius: 14px; }
.btn:hover { background: var(--palm); color: #fff; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: var(--mustard); color: var(--ink); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 12px; padding: 9px 16px 9px 13px; text-decoration: none; line-height: 1.15; font-weight: 800; }
.store small { display: block; font-weight: 400; font-size: 0.72rem; opacity: 0.75; }
span.store { opacity: 0.88; cursor: default; }
a.store:hover { background: var(--chili); color: #fff; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding-top: clamp(24px, 5vw, 64px) !important; }
.hero > * { max-width: none; margin: 0; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.04; color: var(--chili); margin-bottom: 26px; }
.hero h1 span { display: block; }
@media (min-width: 1100px) { .hero h1 span { white-space: nowrap; } }
.hero-cook { margin-top: 22px; color: var(--muted); }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}

/* Phone + mini feed */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone { position: relative; width: min(310px, 82vw); aspect-ratio: 9 / 19; background: var(--ink); border-radius: 46px; padding: 11px; box-shadow: 0 30px 60px -20px rgba(142, 31, 23, 0.45), 0 0 0 2px #2b2b2b inset; }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 99px; background: #000; z-index: 3; }
.phone-top { position: absolute; z-index: 2; top: 52px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 16px; color: rgba(255, 255, 255, 0.72); font-weight: 600; font-size: 0.86rem; pointer-events: none; }
.phone-top .on { color: #fff; font-weight: 800; border-bottom: 2.5px solid #fff; padding-bottom: 2px; }
.phone-top .plus { width: 22px; height: 22px; border-radius: 50%; background: var(--chili); color: #fff; display: grid; place-items: center; font-weight: 800; }
.feed { height: 100%; border-radius: 36px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.feed::-webkit-scrollbar { display: none; }
.feed:focus-visible { outline-offset: -3px; }
.clip { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; color: #fff;
  background: radial-gradient(120% 70% at 50% 35%, color-mix(in srgb, var(--food) 45%, var(--bg)) 0%, var(--bg) 70%); }
.plate { position: absolute; left: 50%; top: 37%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background:
    radial-gradient(circle at 36% 40%, var(--food2) 0 7%, transparent 7.5%),
    radial-gradient(circle at 61% 33%, var(--food2) 0 5%, transparent 5.5%),
    radial-gradient(circle at 55% 62%, color-mix(in srgb, var(--food2) 70%, #fff) 0 6%, transparent 6.5%),
    radial-gradient(circle at 40% 64%, color-mix(in srgb, var(--food) 60%, #000) 0 4%, transparent 4.5%),
    radial-gradient(circle at 50% 50%, var(--food) 0 50%, color-mix(in srgb, var(--food) 70%, #000) 56%, #f4efe2 57% 66%, #d9d2bf 67% 69%, transparent 70%);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45)); }
.clip-info { position: absolute; left: 16px; right: 74px; bottom: 26px; display: flex; flex-direction: column; gap: 4px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.clip-cook { font-size: 0.74rem; font-weight: 600; opacity: 0.9; }
.clip-title { font-size: 1.75rem; line-height: 1.02; }
.clip-meta { font-size: 0.78rem; opacity: 0.85; }
.rail { position: absolute; right: 10px; bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rail-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; background: none; border: 0; padding: 0; font: inherit; font-size: 0.72rem; font-weight: 600; cursor: default; }
button.rail-btn { cursor: pointer; }
.rail-btn svg { width: 30px; height: 30px; fill: #fff; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5)); }
.like[aria-pressed='true'] svg { fill: #ff3b47; transform: scale(1.12); transition: transform 0.15s; }
.rail-order { background: var(--chili); color: #fff; border-radius: 12px; padding: 7px 8px; font-weight: 800; font-size: 0.74rem; text-align: center; line-height: 1.15; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.rail-order small { display: block; font-weight: 600; font-size: 0.64rem; opacity: 0.9; }
.phone-note { font-size: 0.82rem; color: var(--muted); }

/* How it works (a real sequence, so numbered) */
.how h2 { max-width: var(--wrap); }
.steps { list-style: none; padding: 0; margin: 40px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--chili); margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: #3a3a35; }
.steps-long { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
@media (max-width: 960px) { .steps, .steps-long { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps, .steps-long { grid-template-columns: minmax(0, 1fr); } }

/* Pay-for-me */
.pfm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; }
.pfm > * { max-width: none; margin: 0; }
.pfm-text p { margin-top: 16px; }
.pfm-text h2 { color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; font-weight: 600; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.35em; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.pfm-gift { color: var(--muted); }
.chat { background: #e7dfd1; border-radius: 28px; padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04); }
.bubble { background: #fff; border-radius: 14px 14px 14px 4px; padding: 9px 11px 6px; max-width: 88%; align-self: flex-start; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); font-size: 0.95rem; }
.bubble.mine { background: #d9fdd3; border-radius: 14px 14px 4px 14px; align-self: flex-end; }
.bubble .time { display: block; text-align: right; font-size: 0.7rem; color: #7a7a72; margin-top: 2px; }
.linkcard { display: flex; gap: 10px; background: #f3f0e8; border-radius: 10px; padding: 9px; margin-top: 8px; }
.linkcard img { width: 44px; height: auto; flex: none; align-self: center; }
.linkcard div { display: flex; flex-direction: column; font-size: 0.82rem; line-height: 1.3; min-width: 0; }
.linkcard span { color: #55554e; }
.linkcard .url { color: #0b7a5c; margin-top: 2px; }
@media (max-width: 860px) { .pfm { grid-template-columns: minmax(0, 1fr); } }

/* Cooks band */
.cooks { background: var(--ink); color: var(--cream); }
.cooks-inner h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cooks-lede { font-size: 1.15rem; max-width: 34em; margin-top: 16px; color: #d8d8cc; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 44px 0 40px; }
.facts div { border-top: 3px solid var(--mustard); padding-top: 14px; }
.facts dt { color: var(--mustard); font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; }
.facts dd { margin: 0; color: #ececdf; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 34px; }
.trust-grid p { border-left: 3px solid var(--chili); padding-left: 16px; color: #33332e; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: minmax(0, 1fr); } }

/* Where */
.where { background: var(--soft); }
.where > p { margin-top: 12px; color: #4b2a26; }
.areas { list-style: none; padding: 0; margin-top: 26px !important; display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { background: #fff; border-radius: 999px; padding: 7px 15px; font-weight: 600; }

/* FAQ */
.faq h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); max-width: 760px; margin-left: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 800; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--chili); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: #3a3a35; max-width: 40em; }
.faq > details { margin-left: auto; margin-right: auto; max-width: var(--wrap); }
.faq > details > * { max-width: 760px; }

/* Closer */
.closer { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.closer > * { margin: 0; }
.closer p { color: var(--muted); }
.closer .stores { justify-content: center; margin-top: 10px; }

/* Sell page */
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; max-width: 14em; }
.money-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 72px); margin-top: 30px; align-items: start; }
.money-rules { display: grid; gap: 16px; font-size: 1.08rem; }
.receipt { margin: 0; background: #fff; border-radius: 6px; padding: 22px 22px 18px; box-shadow: 0 18px 40px -24px rgba(20, 20, 20, 0.35);
  background-image: radial-gradient(circle at 10px -4px, var(--cream) 8px, transparent 8.5px); background-size: 20px 12px; background-repeat: repeat-x; background-position: 0 100%; padding-bottom: 28px; }
.receipt figcaption { font-weight: 800; margin-bottom: 12px; }
.receipt table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.receipt th { text-align: left; font-weight: 400; padding: 7px 0; }
.receipt td { text-align: right; padding: 7px 0; }
.receipt tr.minus td, .receipt tr.minus th { color: var(--chili); }
.receipt tr.total th, .receipt tr.total td { font-weight: 800; font-size: 1.2rem; border-top: 2px dashed var(--line); padding-top: 12px; }
.receipt p { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .money-grid { grid-template-columns: minmax(0, 1fr); } }
.running-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); margin-top: 30px; }
.running-grid h3 { margin-bottom: 6px; }
.running-grid p { color: #3a3a35; }
@media (max-width: 720px) { .running-grid { grid-template-columns: minmax(0, 1fr); } }
.sell .money, .sell .running { background: #fff; }

/* Legal */
.legal-doc { max-width: 42em !important; }
.legal-doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
.legal-doc .updated { color: var(--muted); margin: 8px 0 28px; }
.legal-doc h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.legal-doc h3 { margin: 22px 0 8px; }
.legal-doc p, .legal-doc li { color: #2c2c28; }
.legal-doc p + p { margin-top: 12px; }
.legal-doc ul { padding-left: 1.2em; margin: 10px 0; display: grid; gap: 6px; }
main > .legal-doc { padding: clamp(40px, 7vw, 80px) var(--pad); margin: 0 auto; }

/* Notice pages (pay, 404) */
.notice { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; min-height: 52vh; justify-content: center; }
.notice > * { margin: 0; }
.notice h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.notice p { max-width: 32em; color: #3a3a35; }

/* Footer */
.foot { background: var(--ink); color: #cfcfc3; padding: 56px var(--pad) 28px; }
.foot-inner { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px 60px; justify-content: space-between; }
.foot-brand { display: flex; gap: 18px; align-items: center; max-width: 380px; }
.foot-brand img { width: 74px; flex: none; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.foot-links a { color: #fff; text-decoration: none; }
.foot-links a:hover { color: var(--mustard); }
.foot-small { max-width: var(--wrap); margin: 40px auto 0; font-size: 0.85rem; color: #8f8f86; }
@media (max-width: 520px) { .foot-links { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Page intros line up on the left edge of the content column. */
main > section.page-hero { padding-left: max(var(--pad), calc((100% - var(--wrap)) / 2)); padding-right: var(--pad); }
main > section.page-hero > * { margin-left: 0; margin-right: 0; }

/* Gift links (/gift/<token>) */
main > section.giftpage { padding: clamp(28px, 6vw, 72px) var(--pad); }
.gift-card { max-width: 30rem !important; margin: 0 auto; background: #fff; border-radius: 24px; padding: clamp(22px, 5vw, 36px); box-shadow: 0 10px 30px rgba(20, 20, 20, 0.08); display: flex; flex-direction: column; gap: 14px; text-align: center; }
.gift-card h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.gift-card h2 { font-size: 1.3rem; text-align: left; }
.gift-emoji { font-size: 3.2rem; line-height: 1; }
.gift-who { color: var(--muted); margin-top: -8px; }
.gift-msg { margin: 0; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: var(--cream); font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.gift-photo { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 16 / 11; object-fit: cover; margin: 0 auto 6px; border-radius: 20px; background: var(--line); }
.gift-dish { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.gift-dish span { color: var(--muted); font-size: 0.92rem; }
.gift-dish .gift-paid { color: var(--green); font-weight: 800; }
.gift-when { align-self: center; background: #fcefcf; color: #7a5600; font-weight: 800; padding: 4px 12px; border-radius: 10px; font-size: 0.92rem; }
.gift-cta { font-size: 1.05rem; padding: 16px 20px; }
.gift-cta.is-off { background: #d9d8ce; color: var(--muted); cursor: default; }
.gift-small { color: var(--muted); font-size: 0.92rem; }
.gift-open { font-weight: 700; }
.gift-card hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 4px 0; }
.gift-card .linkish { background: none; border: 0; padding: 6px; color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer; align-self: center; }
.gift-form { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.gift-form label { font-weight: 700; font-size: 0.92rem; margin-top: 6px; }
.gift-form input, .gift-form select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; width: 100%; min-width: 0; }
.gift-form .linkish { align-self: flex-start; padding-left: 0; }
.gift-form .btn { border: 0; margin-top: 8px; font: inherit; font-weight: 800; cursor: pointer; }
.gift-err { color: var(--chili); font-weight: 700; }
.gift-options { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.gift-opt { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font: inherit; text-align: left; cursor: pointer; }
.gift-opt span { color: var(--muted); font-size: 0.9rem; }
.gift-opt[aria-checked='true'] { border-color: var(--chili); background: var(--soft); }
.gift-card .btn { border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.gift-card .btn[disabled] { background: #e3a6a9; cursor: default; }
.gift-code { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--cream); }
.gift-code strong { font-size: 2.4rem; letter-spacing: 0.3em; color: var(--chili); }
.gift-code span { color: var(--muted); font-size: 0.9rem; }
.gift-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); padding: 30px 0; }
.gift-notice { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.gift-notice p { color: #3a3a35; }
