/* Recipe-card editorial: cream paper, ink-brown serif, one cranberry accent. Radius scale: 6px fields, 14px cards, pill chips. */
:root {
  --paper: oklch(96.5% 0.018 85);
  --card: oklch(99% 0.008 85);
  --ink: oklch(27% 0.035 45);
  --muted: oklch(46% 0.03 50);
  --line: oklch(86% 0.025 75);
  --berry: oklch(42% 0.15 20);
  --berry-soft: oklch(93% 0.035 20);
  --squash: oklch(76% 0.13 70);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-field: 6px;
  --r-card: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--berry); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--squash); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: var(--r-field); }
.skip:focus { left: 16px; z-index: 10; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 15px; }
.brand { font: 700 18px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.brand span { font: 600 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--berry); margin-left: 6px; }

.eyebrow, .step-label { font: 650 12px/1.2 var(--sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--berry); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 78px); letter-spacing: -0.022em; margin: 0 0 18px; max-width: 13ch; }
h1 em { color: var(--berry); font-style: italic; }
h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; margin: 0 0 14px; }
h3 { font-size: 22px; letter-spacing: -0.012em; margin: 0 0 10px; }
.intro { padding: 28px 0 36px; }
.lede { font-size: 19px; max-width: 58ch; color: var(--muted); text-wrap: pretty; margin: 0; }

.board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 22px; align-items: start; }
.card { background: var(--card); border-radius: var(--r-card); padding: 26px; box-shadow: 0 1px 2px oklch(30% 0.04 50 / 0.08), 0 8px 28px oklch(30% 0.04 50 / 0.08); }
.row { display: grid; gap: 14px; margin-bottom: 14px; }
.row.two { grid-template-columns: 1fr 1fr; }
label { display: block; font-weight: 600; font-size: 15px; }
label small, .check small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; margin-top: 5px; line-height: 1.45; }
input[type=number], input[type=date], input[type=time], select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; min-height: 46px; font: 500 16px var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-field); font-variant-numeric: tabular-nums;
}
input:hover, select:hover { border-color: oklch(70% 0.04 60); }
select:disabled { opacity: 0.5; }
#thaw-field { margin-bottom: 14px; }
#thaw-field.off { color: var(--muted); }
.choice { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.choice legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; width: 100%; }
.choice label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; min-height: 42px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; cursor: pointer; transition-property: background-color, border-color; transition-duration: 160ms; }
.choice label:has(input:checked) { background: var(--berry-soft); border-color: var(--berry); color: var(--berry); }
.choice input, .check input { accent-color: var(--berry); width: 18px; height: 18px; margin: 0; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 4px 10px; align-items: start; font-weight: 600; margin-bottom: 8px; }
.check input { margin-top: 3px; }
.check small { grid-column: 2; margin-top: 0; }
.step-label { margin-top: 6px; }
form .step-label:not(:first-child) { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }

#error { color: var(--berry); font-weight: 600; min-height: 1.6em; margin: 10px 0 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
button { font: 600 15px var(--sans); min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; touch-action: manipulation; transition-property: transform, background-color; transition-duration: 140ms; }
button.primary { background: var(--berry); border-color: var(--berry); color: oklch(98% 0.01 85); padding: 0 24px; }
button.quiet { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
button:active:not(:disabled) { transform: scale(0.96); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
@media (hover: hover) { button.primary:hover { background: oklch(37% 0.14 20); } }

.result { position: sticky; top: 16px; min-height: 420px; display: flex; flex-direction: column; }
.empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 32px 18px; min-height: 280px; font-family: var(--serif); font-size: 19px; }
.empty p { max-width: 26ch; margin: 0; }
.headline { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.headline strong { font: 700 clamp(30px, 3.6vw, 40px)/1.05 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.headline span { color: var(--muted); font-size: 15px; }
.late { background: var(--berry-soft); color: var(--berry); padding: 12px 14px; border-radius: 10px; font-weight: 600; margin: 0 0 16px; }

.timeline { list-style: none; margin: 0 0 18px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--squash), var(--berry)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 16px 32px; animation: rise 420ms cubic-bezier(0.2, 0, 0, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--berry); }
.timeline li:last-child::before { background: var(--berry); }
.timeline time { display: block; font: 700 14px var(--sans); color: var(--berry); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.timeline strong { font: 700 19px/1.3 var(--serif); }
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
#copy-status { min-height: 1.4em; font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.fine { font-size: 13.5px; color: var(--muted); margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); }

.method { margin-top: 72px; display: grid; gap: 26px; }
.method-head p:last-child { max-width: 66ch; color: var(--muted); margin: 0; }
.tables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.table-wrap { background: var(--card); border-radius: var(--r-card); padding: 18px 20px; box-shadow: 0 1px 2px oklch(30% 0.04 50 / 0.07); }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
caption { text-align: left; font: 700 17px var(--serif); padding-bottom: 8px; }
th { text-align: left; font: 650 12px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
td { padding: 7px 0; border-bottom: 1px solid oklch(91% 0.015 80); }
td + td, th + th { text-align: right; }
.rules { max-width: 78ch; }
.rules ul { margin: 0; padding-left: 20px; }
.rules li { margin-bottom: 8px; text-wrap: pretty; }

.faq { margin-top: 64px; max-width: 78ch; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 19px/1.4 var(--serif); padding: 12px 0; min-height: 44px; }
.faq p { margin: 0 0 14px; color: var(--muted); text-wrap: pretty; }
.privacy { margin-top: 56px; max-width: 78ch; }
.privacy h2 { font-size: 24px; }
.privacy p { color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 36px 0 44px; margin-top: 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .result { position: static; min-height: 0; }
  .empty { min-height: 140px; }
  .tables { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .row.two { grid-template-columns: 1fr; }
  .card { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline li { animation: none; }
  button { transition: none; }
}
