/* Steaksgiving — Bill of Fare. A printed steakhouse menu: ivory card, oxblood + black ink. */
:root {
  --table: #2b211b;      /* the dark wood the menu sits on */
  --paper: #f4ecdc;
  --paper-2: #ebe0cb;
  --ink: #1d1611;
  --ox: #7c1d16;
  --muted: #5b4d40;
  --faint: #8a7a68;
  --rule: #1d1611;
  --script: "Yesteryear", cursive;
  --display: "Libre Caslon Display", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--table); color: var(--ink); font: 18px/1.6 var(--serif); overflow-x: hidden; }
a { color: var(--ox); }
::selection { background: var(--ox); color: var(--paper); }

#dev-ribbon {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: repeating-linear-gradient(45deg, #ffcc00 0 14px, #1a1a1a 14px 28px);
  color: #000; text-align: center; font: 700 13px/2.2 ui-monospace, monospace; letter-spacing: .08em;
}
#dev-ribbon span { background: #ffcc00; padding: 2px 10px; }
.dev .sheet { margin-top: 52px; }

/* The menu card */
.sheet {
  max-width: 1000px; margin: 32px auto; padding: 26px;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(120, 90, 50, .08) 1px, transparent 1px),
    radial-gradient(rgba(120, 90, 50, .05) 1px, transparent 1px);
  background-size: 7px 7px, 13px 13px; background-position: 0 0, 3px 5px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.frame { border: 3px double var(--rule); outline: 1px solid var(--rule); outline-offset: 6px; padding: 30px clamp(18px, 5vw, 64px) 34px; }

/* Ornamental rule: two hairlines and a diamond */
.orn { display: flex; align-items: center; gap: 16px; margin: 28px auto; max-width: 520px; }
.orn::before, .orn::after { content: ""; flex: 1; height: 4px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.orn i { width: 9px; height: 9px; background: var(--ox); transform: rotate(45deg); }

/* Masthead */
.masthead { text-align: center; }
.contents { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 14px; margin-bottom: 30px; border-bottom: 1px solid var(--rule); }
.contents a { color: var(--ink); text-decoration: none; padding: 0 12px; }
.contents a + a { border-left: 1px solid var(--faint); }
.contents a:hover { color: var(--ox); }
.est { font-size: 15px; letter-spacing: .32em; text-transform: uppercase; margin: 0; }
h1 { font: 400 clamp(76px, 15vw, 156px)/.95 var(--script); color: var(--ox); margin: 14px 0 26px; }
.tagline { font: italic 400 clamp(20px, 3vw, 26px) var(--serif); margin: 0; }
.tagline span { color: var(--ox); white-space: nowrap; }
.est a, footer a { color: inherit; text-decoration: none; }
.masthead-sub h1 { font-size: clamp(56px, 10vw, 104px); margin: 10px 0 18px; }
.seating { font: 400 clamp(18px, 2.6vw, 22px) var(--display); letter-spacing: .04em; margin: 0; }
.seating b { font-weight: 400; color: var(--ox); font-size: 1.6em; font-variant-numeric: lining-nums; }
.seating.live { color: var(--ox); font-size: 30px; }
.seating-date { font: italic 16px var(--serif); color: var(--muted); margin: 2px 0 0; }

/* Hero: the table, mounted like a photo on the menu card */
.hero { margin: 40px 0 0; }
.hero img { display: block; width: 100%; height: auto; background: #fbf6ea; padding: 8px; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px; }
.hero figcaption { text-align: center; font: italic 15px var(--serif); color: var(--muted); margin-top: 14px; }

/* Sections */
section { margin-top: 64px; scroll-margin-top: 20px; }
h2 { font: 400 clamp(26px, 4.4vw, 40px)/1.15 var(--display); text-align: center; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; }
.h2sub { text-align: center; font-style: italic; color: var(--muted); margin: 0 auto 30px; font-size: 16px; max-width: 560px; }
h3 { font: 700 21px/1.25 var(--serif); margin: 0; }

/* House rules */
.rules { columns: 2; column-gap: 56px; margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rules li { break-inside: avoid; margin: 0 0 18px; padding-left: 46px; position: relative; counter-increment: r; }
.rules li::before { content: counter(r, upper-roman) "."; position: absolute; left: 0; top: 0; font: 400 22px var(--display); color: var(--ox); }
.rules b { display: block; }

/* How would you like it? */
.oracle { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 44px; align-items: center; max-width: 820px; margin: 0 auto; }
.steak-svg { width: 100%; height: auto; display: block; overflow: visible; }
.steak-svg .steam path { opacity: 0; animation: steam 3.2s ease-in-out infinite; transform-box: fill-box; }
.steak-svg .steam path:nth-child(2) { animation-delay: 1.1s; }
.steak-svg .steam path:nth-child(3) { animation-delay: 2.1s; }
.steak-svg.no-steam .steam { display: none; }
@keyframes steam { 0% { opacity: 0; transform: translateY(14px); } 40% { opacity: .5; } 100% { opacity: 0; transform: translateY(-16px); } }
input[type=range] { width: 100%; accent-color: var(--ox); height: 28px; margin: 0; }
.ticks { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 2px 0 0; }
.oracle-readout h3 { font: 400 36px/1.1 var(--display); margin-top: 20px; }
.temps { font-style: italic; color: var(--ox); margin: 4px 0 8px; }
#dn-verdict { color: var(--muted); min-height: 3.2em; margin: 0; }

/* From the broiler */
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 44px; }
.item { padding: 0 0 22px; border-bottom: 1px dotted var(--faint); }
.item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #fbf6ea; padding: 6px; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; margin-bottom: 18px; }
.line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.line .name { white-space: nowrap; }
.line .dots { flex: 1; min-width: 16px; border-bottom: 2px dotted var(--ink); transform: translateY(-5px); }
.line { flex-wrap: nowrap; }
.line .mp { font: 400 15px var(--display); letter-spacing: .08em; color: var(--ox); white-space: nowrap; }
.item .cut, .special .cut { font: italic 400 15px var(--serif); color: var(--ox); margin: 1px 0 0; }
.item p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.special { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 30px; align-items: center; margin: 36px 0 0; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px; padding: 26px; background: var(--paper-2); }
.special-label { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); margin: 0; background: var(--ox); color: var(--paper); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; padding: 4px 14px; white-space: nowrap; }
.special img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; border: 1px solid var(--ink); }
.special h3 { font: 400 30px/1.1 var(--display); }
.special .cut { margin: 4px 0 10px; }
.special p:last-child { margin: 0; }
.credits { font: italic 12px/1.6 var(--serif); color: var(--faint); margin: 26px 0 0; text-align: center; }
.credits a { color: var(--muted); }

/* Which cut are you? */
.quiz { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.quiz fieldset { border: 0; border-top: 1px solid var(--ink); margin: 0; padding: 12px 0 0; min-width: 0; }
.quiz legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; font-weight: 700; }
.quiz legend span { font: 400 20px var(--display); color: var(--ox); margin-right: 4px; }
.quiz .opts { clear: both; display: grid; gap: 2px; }
.quiz label { display: flex; gap: 10px; align-items: baseline; cursor: pointer; padding: 3px 0; font-size: 16px; line-height: 1.4; color: var(--muted); }
.quiz label:hover, .quiz label:has(input:checked) { color: var(--ink); }
.quiz input { accent-color: var(--ox); width: 16px; height: 16px; flex: none; transform: translateY(2px); margin: 0; }
.quiz-go { grid-column: 1 / -1; text-align: center; }
.quiz-msg { margin: 10px 0 0; min-height: 1.4em; font-style: italic; color: var(--ox); font-size: 16px; }
.quiz-result { max-width: 700px; margin: 26px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 26px; align-items: center; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px; background: var(--paper-2); padding: 24px; }
.quiz-result[hidden] { display: none; }
.quiz-result img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; border: 1px solid var(--ink); }
.quiz-result h3 { font: 400 32px/1.1 var(--display); color: var(--ox); }
.quiz-result p { margin: 8px 0 0; }
.quiz-you { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; margin: 0 !important; }
.quiz-links { font-size: 15px; font-style: italic; }
.quiz-86 { margin: 0; text-align: center; font: 400 clamp(56px, 9vw, 84px)/1 var(--script); color: var(--ox); transform: rotate(-8deg); }
.quiz-result.turkey h3 { color: var(--ink); }

/* Words of wisdom */
.quotes { columns: 2; column-gap: 48px; max-width: 860px; margin: 0 auto; }
.quotes blockquote { break-inside: avoid; margin: 0 0 30px; padding: 0 0 0 22px; border-left: 3px double var(--ox); }
.quotes blockquote p { margin: 0; font: italic 400 19px/1.5 var(--serif); }
.quotes blockquote > p::before { content: "\201C"; } .quotes blockquote > p::after { content: "\201D"; }
.quotes .dialog > p::before, .quotes .dialog > p::after { content: none; }
.quotes footer { margin: 8px 0 0; text-align: left; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.quotes cite { display: block; font: italic 14px var(--serif); letter-spacing: 0; text-transform: none; color: var(--muted); }

/* How to cook: the method */
.method-note { max-width: 680px; margin: 10px auto 0; padding: 14px 18px; border: 1px dotted var(--faint); font-size: 16px; color: var(--muted); }
.method-note b { color: var(--ink); }

/* The butcher's order */
.calc { display: flex; flex-wrap: wrap; gap: 18px 34px; justify-content: center; align-items: flex-end; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.calc label { display: flex; flex-direction: column; gap: 4px; }
.calc label.check { flex-direction: row; align-items: center; gap: 8px; padding-bottom: 8px; text-transform: none; letter-spacing: 0; font-size: 16px; font-style: italic; }
.calc input[type=number], .calc select {
  font: 400 20px var(--serif); color: var(--ink); background: transparent; letter-spacing: 0; text-transform: none;
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 4px 2px; min-width: 90px;
}
.calc input[type=number] { width: 90px; }
.calc input:focus, .calc select:focus, .hall-form input:focus { outline: 2px solid var(--ox); outline-offset: 2px; }
.calc input[type=checkbox] { accent-color: var(--ox); width: 18px; height: 18px; }
.calc-result { max-width: 620px; margin: 30px auto 0; border: 1px solid var(--ink); background: var(--paper-2); padding: 24px clamp(14px, 4vw, 32px); text-align: center; }
.calc-total { font: 400 clamp(44px, 8vw, 60px)/1 var(--display); color: var(--ox); margin: 0; }
.calc-total span { font: italic 22px var(--serif); color: var(--ink); }
.calc-sub { font-style: italic; color: var(--muted); margin: 6px 0 20px; font-size: 16px; }
.calc-cuts { width: 100%; border-collapse: collapse; text-align: left; font-size: 17px; }
.calc-cuts caption { font-size: 16px; padding-bottom: 10px; }
.calc-cuts caption em { font-style: italic; font-weight: 700; color: var(--ox); }
.calc-cuts thead th { font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 0 8px 6px; border-bottom: 1px solid var(--ink); }
.calc-cuts td, .calc-cuts tbody th { padding: 9px 8px; border-bottom: 1px dotted var(--faint); vertical-align: baseline; }
.calc-cuts tbody th { font-weight: 700; }
.calc-cuts tbody th small { display: block; font-weight: 400; font-style: italic; font-size: 14px; color: var(--muted); }
.calc-cuts .q { font: 400 26px/1 var(--display); color: var(--ox); text-align: right; width: 2.6em; }
.calc-cuts .e { color: var(--muted); white-space: nowrap; font-style: italic; }
.calc-cuts .t { white-space: nowrap; text-align: right; }
.calc-cuts thead th:first-child, .calc-cuts thead th:last-child { text-align: right; }
.calc-note { font-style: italic; font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Inquiries: question only until opened */
#inquiries h2 { margin-bottom: 26px; }
.faq { max-width: 640px; margin: 0 auto; border-top: 1px dotted var(--faint); }
.faq details { border-bottom: 1px dotted var(--faint); }
.faq summary { cursor: pointer; list-style: none; position: relative; font-weight: 700; padding: 12px 34px 12px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-52%); font: 700 24px/1 var(--serif); color: var(--ox); }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--ox); }
.faq summary:focus-visible { outline: 2px solid var(--ox); outline-offset: 2px; }
.faq details p { margin: -4px 0 14px; font-style: italic; color: var(--muted); }

/* Hall of Fame */
.hall-empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--faint); color: var(--muted); font-style: italic; }
.hall-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); justify-content: center; gap: 22px; }
.hall-grid figure { margin: 0; background: #fbf6ea; padding: 10px 10px 4px; border: 1px solid var(--ink); box-shadow: 0 3px 0 var(--paper-2); cursor: zoom-in; }
.hall-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.hall-grid figcaption { padding: 8px 2px 6px; font-style: italic; font-size: 14px; line-height: 1.4; color: var(--muted); text-align: center; }
.hall-grid figcaption b { color: var(--ink); font-style: normal; }
.hall-cta { text-align: center; margin-top: 28px; }
.btn { font: 400 13px var(--serif); letter-spacing: .2em; text-transform: uppercase; background: var(--ox); color: var(--paper); border: 1px solid var(--ox); outline: 1px solid var(--ox); outline-offset: 3px; border-radius: 0; padding: 12px 26px; cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); outline-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); outline-color: transparent; }
.btn.ghost:hover { color: var(--paper); }
.btn:disabled { opacity: .6; cursor: wait; }
.hall-form[hidden] { display: none; }
.hall-form { max-width: 560px; margin: 30px auto 0; display: grid; gap: 16px; border: 1px solid var(--ink); background: var(--paper-2); padding: 24px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.hall-form label { display: grid; gap: 4px; }
.hall-form label span { text-transform: none; letter-spacing: 0; font-style: italic; color: var(--faint); font-size: 14px; }
.hall-form input:not([type=file]) { font: 400 18px var(--serif); color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 4px 2px; width: 100%; letter-spacing: 0; text-transform: none; }
.hall-form input::placeholder { color: var(--faint); font-style: italic; }
.hall-form input[type=file] { font: 15px var(--serif); text-transform: none; letter-spacing: 0; }
.hall-form .row { display: grid; grid-template-columns: 1fr 120px; gap: 16px; }
.hall-form .row.end { display: flex; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.hall-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.hall-form .fine { margin: 0; font-size: 13px; line-height: 1.5; text-transform: none; letter-spacing: 0; font-style: italic; color: var(--muted); }
#hall-preview { max-height: 220px; width: auto; max-width: 100%; justify-self: start; border: 1px solid var(--ink); }
.hall-msg { margin: 0; min-height: 1.4em; color: var(--ox); text-transform: none; letter-spacing: 0; font-size: 16px; font-style: italic; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 14, 10, .92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82vh; border: 10px solid #fbf6ea; }
.lightbox p { color: var(--paper); font: italic 16px var(--serif); text-align: center; margin: 12px 0 0; }

footer { text-align: center; margin-top: 64px; }
footer .orn { margin-bottom: 18px; }
footer p { margin: 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .sheet, .dev .sheet { margin: 0; padding: 10px; box-shadow: none; }
  .dev .sheet { margin-top: 30px; }
  .frame { padding: 22px 16px 28px; outline-offset: 3px; }
  .contents { font-size: 11px; letter-spacing: .1em; margin-bottom: 24px; }
  .contents a { padding: 0 8px; }
  .est { font-size: 12px; letter-spacing: .2em; }
  section { margin-top: 52px; }
  .rules { columns: 1; }
  .oracle { grid-template-columns: 1fr; gap: 18px; }
  .steak-svg { max-width: 400px; margin: 0 auto; }
  .oracle-readout { text-align: center; }
  .menu { grid-template-columns: 1fr; }
  .quiz { grid-template-columns: 1fr; gap: 22px; }
  .quiz-result { grid-template-columns: 1fr; padding: 18px; }
  .quotes { columns: 1; }
  .hero { margin-top: 28px; }
  .hero img { padding: 4px; outline-offset: 3px; }
  .special { grid-template-columns: 1fr; padding: 26px 16px 18px; }
  .hall-form .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
