@font-face { font-family: "Gloock"; src: url("../fonts/Gloock-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-VariableFont_wght.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
/* The Gustable, a candlelit supper club; espresso-dark room, saffron accents; one centered 1200px column, photo-led hero, card grid, full recipe view */
:root {
  --bg: #1c1411;
  --surface: #261b16;
  --surface-2: #32241c;
  --line: #3e2d24;
  --ink: #f5ead9;
  --ink-2: #dcc9b3;
  --muted: #ab937d;
  --brass: #f0a93b;
  --brass-ink: #211505;
  --danger: #ef8f74;
  --display: "Gloock", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
img { max-width: 100%; }
body { color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
a { color: var(--brass); }
a:hover { color: #f7c46e; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 480px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(28, 20, 17, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.logo .mark { width: 46px; height: 46px; color: var(--brass); flex: none; }
.logo .lockup { display: grid; gap: 4px; }
.logo .word { font-family: var(--display); font-size: 28px; line-height: 1; }
.logo .tagline { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.logo:hover .word { color: #fff4e3; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nav button { background: none; border: 0; padding: 10px 0 6px; color: var(--muted); font-weight: 500; font-size: 15px; cursor: pointer; border-bottom: 2px solid transparent; }
.nav button:hover { color: var(--ink); }
.nav button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }
.tools { flex: 1 1 260px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; min-width: 0; }
.search { flex: 0 1 240px; width: 240px; min-width: 0; -webkit-appearance: none; appearance: none; height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.search::placeholder { color: var(--muted); }
.me { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 22px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); color: var(--ink); }
.btn.primary { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); font-weight: 600; }
.btn.primary:hover { background: #f5bb5a; }
.btn.light { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.btn.on { border-color: var(--brass); color: var(--brass); }
.btn.icon { width: 44px; padding: 0; }
.btn.danger { color: var(--danger); }
.btn.danger.armed { background: var(--danger); color: #1c0d09; border-color: var(--danger); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.count { font-variant-numeric: tabular-nums; }

/* main */
main { padding-block: 40px 80px; }
.view { display: grid; gap: 52px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
.hero { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.hero .art { flex: 1 1 min(520px, 100%); min-width: 0; }
.hero .copy { flex: 1 1 min(360px, 100%); min-width: 0; display: grid; gap: 16px; align-content: start; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1.02; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.hero .eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brass); }
.hero .lede { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.byline { font-size: 14px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.art { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 4px; overflow: hidden; background: var(--surface); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 20px; }
.ph .mono { font-family: var(--display); font-size: clamp(64px, 12vw, 140px); line-height: .8; color: rgba(237, 230, 214, .16); }
.ph .cat { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(237, 230, 214, .7); }
.ph.link { flex-direction: column; align-items: flex-start; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.ph.link .quote { font-family: var(--display); font-size: 22px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ph.link .quote.empty { color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); font-weight: 600; }

.section { display: grid; gap: 24px; }
.section h2 { font-size: 34px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 32px 28px; }
.card { display: grid; gap: 12px; align-content: start; min-width: 0; }
.card .open { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; display: grid; gap: 12px; text-decoration: none; }
.card .open:hover { color: inherit; }
.card .open:hover h3 { color: #fff7e6; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.card h3 { font-size: 25px; line-height: 1.15; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card .row .actions { gap: 8px; flex-wrap: nowrap; }
.card .row .btn { height: 40px; padding: 0 14px; }
.card .row .btn.icon { width: 40px; padding: 0; }
.addcard { border: 1px dashed #54402f; border-radius: 4px; padding: 30px; display: grid; gap: 14px; align-content: center; }
.addcard h3 { font-size: 27px; }
.addcard p { margin: 0; color: var(--ink-2); }

.ranked { list-style: none; margin: 0; padding: 0; display: grid; }
.ranked li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ranked .n { font-family: var(--display); font-size: 30px; color: var(--brass); font-variant-numeric: tabular-nums; }
.ranked .t { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: grid; gap: 2px; min-width: 0; }
.ranked .t span:first-child { font-family: var(--display); font-size: 24px; line-height: 1.2; }
.ranked .t:hover span:first-child { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }

.empty { border: 1px dashed var(--line); border-radius: 4px; padding: 40px 28px; display: grid; gap: 12px; justify-items: start; color: var(--ink-2); }
.empty h2 { font-size: 30px; color: var(--ink); }
.empty p { margin: 0; max-width: 56ch; }

/* recipe view */
.back { justify-self: start; }
.recipe-top { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.recipe-top .art { flex: 1 1 min(460px, 100%); min-width: 0; }
.recipe-top .copy { flex: 1 1 min(380px, 100%); min-width: 0; display: grid; gap: 16px; }
.recipe-top h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pills li { font-size: 14px; padding: 6px 12px; border-radius: 4px; background: var(--surface-2); color: var(--ink); font-variant-numeric: tabular-nums; }
.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
@media (max-width: 760px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin: 0 0 14px; }
.ing-group + .ing-group { margin-top: 20px; }
.ing-group h3 { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.ing { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ing li { display: flex; gap: 12px; align-items: flex-start; }
.ing input { margin: 5px 0 0; width: 17px; height: 17px; accent-color: var(--brass); flex: none; cursor: pointer; }
.ing label { cursor: pointer; padding: 1px 0; min-width: 0; }
.ing input:checked + label { color: var(--muted); text-decoration: line-through; text-decoration-color: #6a5242; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 24px; line-height: 1.1; color: var(--brass); }
.about { max-width: 980px; }
.about-head { display: grid; gap: 16px; max-width: 62ch; }
.about-head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.02; }
.about-head .lede { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.4; color: var(--ink-2); }
.about-sec { display: grid; gap: 18px; }
.about-sec h2 { font-size: 30px; }
.about p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.65; max-width: 62ch; }
.how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how-item { display: grid; gap: 8px; align-content: start; padding: 20px 22px; border: 1px solid var(--line); border-top: 2px solid var(--brass); border-radius: 4px; background: var(--surface); }
.how-item h3 { font-size: 21px; color: var(--ink); }
.how-item p { font-size: 16px; }
.story { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.story .portrait { flex: 0 1 min(320px, 100%); min-width: 0; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--surface); }
.story .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-copy { flex: 1 1 min(360px, 100%); min-width: 0; display: grid; gap: 16px; }
.about .sign { font-family: var(--display); font-size: 24px; color: var(--brass); }
.notes { display: grid; gap: 12px; max-width: 760px; }
.notes .label { margin-bottom: 4px; }
.notes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.notes li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); color: var(--ink-2); }
.notes li::before { content: "\2022"; color: var(--brass); }
.credit { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.linkbody { display: grid; gap: 18px; max-width: 70ch; }
.linkbody blockquote { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.35; }

/* form */
.form { display: grid; gap: 28px; max-width: 820px; }
.form h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 24px; padding: 3px; gap: 3px; justify-self: start; flex-wrap: wrap; }
.seg button { height: 40px; padding: 0 18px; border-radius: 20px; border: 0; background: none; color: var(--ink-2); cursor: pointer; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.fields { display: grid; gap: 18px; }
.two { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .two { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 11px 14px; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 2px rgba(240, 169, 59, .25); }
.photo { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.photo .thumb { width: 120px; aspect-ratio: 4 / 3; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.photo .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.err { color: var(--danger); font-size: 14px; margin: 0; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 22px; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); z-index: 20; max-width: calc(100% - 32px); }
footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 24px; font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .view { animation: rise .25s ease-out; } @keyframes rise { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } } }

/* standalone site additions */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.acct { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-family: var(--display); font-size: 20px; cursor: pointer; flex: none; }
.acct:hover { border-color: var(--brass); }
.panel { display: grid; gap: 18px; max-width: 560px; }
.panel h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.panel p { margin: 0; color: var(--ink-2); }
.panel .row2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.panel .row2 .field { flex: 1 1 220px; }
.notice { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 16px 18px; color: var(--ink-2); }
.notice strong { color: var(--ink); }
.members { list-style: none; margin: 0; padding: 0; display: grid; }
.members li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.members .who { display: grid; gap: 2px; min-width: 0; }
.members .who span:first-child { font-weight: 600; }
.members .who span + span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--surface-2); color: var(--brass); margin-left: 8px; vertical-align: 2px; }
.catpick { border: 0; margin: 0; padding: 0; }
.catpick legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.catpick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.catpick-row label { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 400; cursor: pointer; }
.catpick-row label:hover { border-color: var(--muted); }
.catpick-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.catpick-row label:has(input:checked) { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); font-weight: 600; }
.catpick-row label:has(input:focus-visible) { box-shadow: 0 0 0 2px rgba(240, 169, 59, .5); }
.catpick-row label:has(input:checked) span::before { content: "✓ "; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.check input { width: 17px; height: 17px; accent-color: var(--brass); }

/* plain pages (sign-in confirmation, setup) */
body.plain { align-items: center; justify-content: center; padding: 32px 16px; box-sizing: border-box; }
.plain-card { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 32px; display: grid; gap: 16px; box-sizing: border-box; flex: 0 0 auto; }
.plain-card.wide { max-width: 720px; }
.plain-card h1 { font-size: 32px; }
.plain-card h2 { font-size: 24px; margin-top: 8px; }
.plain-card p { margin: 0; color: var(--ink-2); }
.plain-brand { font-family: var(--display); font-size: 22px; color: var(--brass); text-decoration: none; }
.plain-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 23px; border: 1px solid var(--brass); background: var(--brass); color: var(--brass-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.plain-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.plain-row { display: flex; flex-wrap: wrap; gap: 10px; }
.plain-notes { display: grid; gap: 8px; border: 1px solid var(--brass); border-radius: 6px; padding: 14px 16px; }
.plain-notes p { color: var(--ink); overflow-wrap: anywhere; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { padding: 10px 12px; border-radius: 6px; background: var(--surface-2); overflow-wrap: anywhere; }
.checks li strong { display: inline-block; min-width: 2.6rem; }
.checks li.ok strong { color: #9fd18b; }
.checks li.bad strong { color: var(--danger); }
.checks li span { color: var(--muted); font-size: 14px; }
.small { font-size: 14px; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: .92em; }

/* phones: compact header (not sticky), featured panel and type sized for small screens */
@media (max-width: 640px) {
  .top { position: static; }
  .top .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo acct" "nav nav" "search share"; gap: 12px 10px; padding-block: 12px 14px; }
  .tools { display: contents; }
  .logo { grid-area: logo; gap: 10px; min-width: 0; }
  .logo .mark { width: 38px; height: 38px; }
  .logo .word { font-size: 23px; }
  .logo .tagline { font-size: 10px; letter-spacing: .16em; }
  #signin-btn, #acct-btn { grid-area: acct; justify-self: end; }
  .hero .actions .btn { height: 42px; padding: 0 16px; }
  .hero .actions .btn.light { flex: 1 1 100%; }
  #signin-btn { height: 40px; padding: 0 16px; }
  .nav { grid-area: nav; justify-content: space-between; gap: 4px 12px; border-top: 1px solid var(--line); padding-top: 4px; }
  .nav button { font-size: 15px; padding: 8px 0 6px; }
  .search { grid-area: search; width: 100%; height: 42px; font-size: 16px; }
  #share-btn { grid-area: share; height: 42px; padding: 0 16px; }
  main { padding-block: 24px 64px; }
  .view { gap: 36px; }
  .hero { padding: 12px 12px 20px; gap: 18px; }
  .hero .copy { padding-inline: 4px; gap: 12px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero .lede { font-size: 16px; }
  .section h2 { font-size: 28px; }
  .recipe-top h1, .about-head h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .about-head .lede { font-size: 19px; }
  .card h3 { font-size: 23px; }
}
