/* Paul's Pumpkin Bars — 1976 magazine, 2026 browser */
:root {
  --paper: #f4e8cf;
  --paper-2: #ecdcb9;
  --ink: #2e1a0e;
  --ink-soft: #6a4a33;
  --pumpkin: #c8541a;
  --pumpkin-deep: #9c3d10;
  --gold: #e2a322;
  --avocado: #6c7a2c;
  --brown: #5b3418;
  --frost: #fbf1dc;
  --rule: rgba(46, 26, 14, .22);
  --display: "Fraunces", "Cooper Black", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: min(1120px, 100% - 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .11; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .1 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .18em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--avocado); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: .5rem; z-index: 200; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { left: .5rem; }

.kicker {
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--pumpkin-deep);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fine { font-size: .86rem; color: var(--ink-soft); font-style: italic; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--pumpkin); color: var(--frost);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: .7rem 1.35rem; font-weight: 700; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn--ghost { background: var(--paper); color: var(--ink); }
.btn--small { padding: .4rem .95rem; font-size: .88rem; box-shadow: 2px 2px 0 var(--ink); }

/* ── top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem max(1.25rem, (100% - 1120px) / 2);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.topbar__mark { font-weight: 900; letter-spacing: .08em; text-decoration: none; font-variation-settings: "SOFT" 100, "WONK" 1; }
.topbar nav { display: flex; gap: 1.4rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { color: var(--pumpkin-deep); text-decoration: underline; }
@media (max-width: 760px) { .topbar nav { display: none; } }

/* ── stripes ── */
.stripes { display: grid; }
.stripes i { display: block; height: 14px; }
.stripes i:nth-child(1) { background: var(--pumpkin); }
.stripes i:nth-child(2) { background: var(--gold); }
.stripes i:nth-child(3) { background: var(--brown); }
.stripes--thin i { height: 6px; }

/* ── cover ── */
.cover { position: relative; padding-top: 1.4rem; background:
  radial-gradient(120% 70% at 50% 0%, #f9efd9 0%, var(--paper) 60%); }
.cover__meta {
  width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: .45rem 0;
}
.cover__title {
  width: var(--wrap); margin: 1.2rem auto 0; text-align: center; line-height: .82;
  font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 900;
  display: grid; justify-items: center;
}
.cover__pauls {
  font-style: italic; font-weight: 500; font-size: clamp(2rem, 6vw, 4.4rem); color: var(--brown);
  transform: rotate(-4deg) translateY(.25em); z-index: 2;
}
.cover__big {
  font-size: clamp(4.2rem, 19.5vw, 16.5rem); letter-spacing: -.045em; color: var(--pumpkin);
  text-shadow: .035em .035em 0 var(--gold), .07em .07em 0 var(--brown);
}
.cover__big--b { color: var(--pumpkin-deep); margin-top: -.02em; }

.cover__stage {
  width: var(--wrap); margin: -1.1rem auto 0; position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr minmax(0, 560px) 1fr; gap: 2rem; align-items: end;
  padding-bottom: 3rem;
}
.cover__blurb { font-size: .98rem; padding-bottom: 2.2rem; }
.cover__blurb p + p { margin-top: .5rem; font-size: 1.12rem; line-height: 1.35; font-weight: 600; }
.cover__blurb ul { margin-top: .5rem; display: grid; gap: .35rem; }
.cover__blurb li { padding-left: 1.1rem; position: relative; line-height: 1.3; }
.cover__blurb li::before { content: "■"; position: absolute; left: 0; top: .1em; font-size: .6em; color: var(--pumpkin); }
.cover__blurb--r { text-align: left; }
@media (max-width: 900px) {
  .cover__stage { grid-template-columns: 1fr 1fr; margin-top: -1rem; }
  .panwrap { grid-column: 1 / -1; order: -1; }
  .cover__blurb { padding-bottom: 0; }
}
@media (max-width: 520px) { .cover__stage { grid-template-columns: 1fr; } }

/* ── the pan ── */
.panwrap { perspective: 1100px; }
.pan {
  --cols: 6; --rows: 4; --ratio: 1.5;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr);
  gap: 3px; aspect-ratio: var(--ratio); width: 100%;
  padding: clamp(8px, 1.6vw, 14px);
  background: #4a3524;
  border-radius: 16px;
  border: clamp(6px, 1.2vw, 10px) solid #c9c2b2;
  box-shadow:
    inset 0 0 0 2px #8f8878, inset 0 6px 14px rgba(0,0,0,.55),
    0 2px 0 #9b9484, 0 26px 40px -14px rgba(46,26,14,.55);
  transform: rotateX(var(--rx, 14deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
}
.panwrap--flat .pan { transform: none; }
.bar {
  position: relative; border: 0; padding: 0; min-width: 0; min-height: 0;
  border-radius: 3px; overflow: hidden;
  background:
    radial-gradient(60% 45% at 30% 30%, rgba(255,255,255,.75), transparent 70%),
    radial-gradient(50% 40% at 75% 70%, rgba(226,196,150,.5), transparent 70%),
    var(--frost);
  box-shadow: inset 0 -4px 0 #cf7a2f, inset 0 -5px 0 rgba(0,0,0,.12), inset 0 1px 0 #fff;
  transition: transform .15s, filter .15s;
}
.pan[data-eat] .bar:not(.gone):hover { transform: translateY(-3px) scale(1.04); z-index: 2; filter: brightness(1.04); }
.bar i {
  position: absolute; width: 14%; aspect-ratio: 1.7; border-radius: 45% 55% 50% 50%;
  background: linear-gradient(160deg, #8a5527, #5b3418); box-shadow: 0 1px 0 rgba(0,0,0,.25);
  left: var(--x); top: var(--y); transform: rotate(var(--r));
}
.pan.nopecan .bar i { display: none; }
.pan.thick .bar { box-shadow: inset 0 -2px 0 #cf7a2f, inset 0 -3px 0 rgba(0,0,0,.12), inset 0 2px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.8); }
.bar.lift { animation: lift .5s cubic-bezier(.3,.7,.4,1) forwards; z-index: 5; }
@keyframes lift { to { transform: translateY(-70px) rotate(9deg) scale(1.25); opacity: 0; } }
.bar.gone {
  background:
    radial-gradient(circle at 22% 30%, #c98b4a 0 2px, transparent 3px),
    radial-gradient(circle at 68% 62%, #e7c48e 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 44% 80%, #c98b4a 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 82% 22%, #b7722f 0 1px, transparent 2px);
  box-shadow: none; pointer-events: none;
}
.bar.gone i { display: none; }
.pan__caption { text-align: center; margin-top: 1.1rem; font-style: italic; font-weight: 600; min-height: 1.6em; }

/* ── sections ── */
section { position: relative; }
.sechead { width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) 0 2rem; max-width: 780px; text-align: center; }
.sechead h2 {
  font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em; font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 1; margin-top: .6rem; text-wrap: balance;
}
.lede { margin-top: 1rem; font-size: 1.15rem; color: var(--ink-soft); text-wrap: pretty; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── dials ── */
.dials { width: var(--wrap); margin: 0 auto 1.6rem; display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; justify-content: center; }
.dial { border: 0; padding: 0; margin: 0; min-width: 0; }
.dial legend { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; padding: 0 0 .3rem .2rem; color: var(--ink-soft); }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--frost); box-shadow: 3px 3px 0 var(--ink); }
.seg button { border: 0; background: none; padding: .5rem .95rem; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--frost); }
.seg button:not([aria-pressed="true"]):hover { background: var(--gold); }
@media (max-width: 520px) { .seg button { padding: .45rem .6rem; font-size: .82rem; } }

/* ── recipe card ── */
.card {
  width: var(--wrap); margin: 0 auto 5rem; background: var(--frost);
  border: 2px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--brown);
  overflow: hidden;
}
.card__head {
  display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.6rem clamp(1.2rem, 4vw, 2.6rem) 1.1rem;
  border-bottom: 2px solid var(--pumpkin);
  background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(200,84,26,.13) 31px 32px);
}
.card__from { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.card__name { font-size: 3rem; line-height: 1; font-style: italic; font-weight: 600; color: var(--pumpkin-deep); font-variation-settings: "SOFT" 100, "WONK" 1; }
.card__facts { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.card__facts div { display: grid; }
.card__facts dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.card__facts dd { font-weight: 800; font-size: 1.15rem; }
.card__body { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; }
.card__ing { padding: 1.6rem clamp(1.2rem, 3vw, 2.2rem); border-right: 1px dashed var(--rule); background: rgba(236,220,185,.35); }
.card__method { padding: 1.6rem clamp(1.2rem, 4vw, 2.6rem); }
.card h3 { font-family: var(--mono); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pumpkin-deep); margin-bottom: .7rem; }
.card__ing h3:not(:first-child) { margin-top: 1.6rem; }
@media (max-width: 800px) { .card__body { grid-template-columns: 1fr; } .card__ing { border-right: 0; border-bottom: 1px dashed var(--rule); } }

.ing li { border-bottom: 1px solid var(--rule); }
.ing label { display: grid; grid-template-columns: 1.35rem 1fr; gap: .6rem; align-items: baseline; padding: .5rem 0; cursor: pointer; }
.ing input { appearance: none; width: 1.1rem; height: 1.1rem; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); translate: 0 .18rem; cursor: pointer; display: grid; place-content: center; margin: 0; }
.ing input:checked { background: var(--pumpkin); }
.ing input:checked::after { content: "✓"; color: var(--frost); font-size: .8rem; font-weight: 900; line-height: 1; }
.ing b { font-weight: 800; }
.ing input:checked + span { text-decoration: line-through; text-decoration-color: var(--pumpkin); opacity: .5; }
.ing small { display: block; color: var(--ink-soft); font-style: italic; font-size: .82rem; }
.qty { transition: background .6s; border-radius: 3px; }
.qty.flash { background: var(--gold); transition: none; }

.steps { counter-reset: s; display: grid; gap: 1.15rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; gap: .2rem .6rem; }
.steps li::before {
  content: counter(s); grid-row: span 3; font-size: 2.2rem; font-weight: 900; line-height: 1; color: var(--gold);
  -webkit-text-stroke: 1.5px var(--ink); font-variation-settings: "SOFT" 100, "WONK" 1;
}
.steps h4 { font-size: 1.08rem; font-weight: 800; }
.steps p { color: #3f2a1b; }
.steps b { font-weight: 700; color: var(--pumpkin-deep); }
.timer {
  justify-self: start; margin-top: .35rem; font-family: var(--mono); font-size: .8rem; font-weight: 600;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: .3rem .7rem;
}
.timer:hover { background: var(--gold); }
.timer.running { background: var(--ink); color: var(--gold); }
.timer.done { background: var(--pumpkin); color: var(--frost); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }

.card__foot { display: flex; flex-wrap: wrap; gap: .8rem; padding: 1.3rem clamp(1.2rem, 4vw, 2.6rem) 1.6rem; border-top: 2px solid var(--ink); background: var(--paper-2); }

/* ── cut ── */
.cut { background: var(--brown); color: var(--frost); padding-bottom: 5rem; }
.cut .kicker { color: var(--gold); }
.cut .lede, .cut .fine { color: #e4cfa9; }
.cut__grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 800px) { .cut__grid { grid-template-columns: 1fr; } }
.cut .pan { box-shadow: inset 0 0 0 2px #8f8878, inset 0 6px 14px rgba(0,0,0,.55), 0 30px 50px -18px rgba(0,0,0,.8); max-height: 70vh; margin-inline: auto; }
.cut .pan__caption { font-family: var(--mono); font-style: normal; font-size: .8rem; letter-spacing: .08em; font-weight: 400; }
.stepper { display: grid; grid-template-columns: 1fr auto 3.4rem auto; align-items: center; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid rgba(251,241,220,.25); }
.stepper__label { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.stepper button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--frost); background: none; font-size: 1.4rem; line-height: 1; font-weight: 700; }
.stepper button:hover { background: var(--pumpkin); }
.stepper output { text-align: center; font-size: 2.2rem; font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; }
.presets { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.presets button { border: 1.5px solid var(--gold); color: var(--gold); background: none; border-radius: 999px; padding: .35rem .85rem; font-size: .88rem; font-weight: 600; }
.presets button:hover, .presets button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.readout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(251,241,220,.25); border: 1px solid rgba(251,241,220,.25); margin-bottom: 1rem; }
.readout div { background: var(--brown); padding: .8rem .9rem; }
.readout dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #e4cfa9; }
.readout dd { font-size: 1.7rem; font-weight: 900; line-height: 1.15; color: var(--gold); font-variation-settings: "SOFT" 100, "WONK" 1; }

/* ── ledger ── */
.ledger { padding-bottom: 5rem; }
.ledger__paper {
  width: min(880px, 100% - 2.5rem); margin: 0 auto; font-family: var(--mono); font-size: .86rem;
  background: #f1f6e6; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--avocado);
  padding: 1.4rem clamp(.8rem, 3vw, 2rem) 1.6rem; overflow-x: auto;
}
.ledger__title { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; border-bottom: 3px double var(--ink); padding-bottom: .6rem; margin-bottom: .2rem; }
.ledger table { width: 100%; border-collapse: collapse; min-width: 520px; }
.ledger th { text-align: left; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #4f5a22; padding: .6rem .5rem .4rem; border-bottom: 1px solid var(--ink); }
.ledger td { padding: .42rem .5rem; border-bottom: 1px solid rgba(108,122,44,.35); }
.ledger tbody tr:nth-child(odd) td { background: rgba(108,122,44,.12); }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; }
.ledger td:nth-child(2), .ledger td:nth-child(4) { color: #5d5340; }
.ledger input { width: 5.2rem; font: inherit; text-align: right; border: 0; border-bottom: 1.5px dashed var(--pumpkin); background: transparent; color: var(--pumpkin-deep); font-weight: 600; padding: .1rem .15rem; }
.ledger input:focus { outline: 2px solid var(--pumpkin); background: #fff; }
.ledger tfoot td { border-bottom: 0; font-weight: 600; padding-top: .6rem; }
.ledger tfoot tr:first-child td { border-top: 1.5px solid var(--ink); }
.ledger tfoot .grand td { font-size: 1.15rem; color: var(--pumpkin-deep); }
.ledger tfoot .grand td:last-child span { border-bottom: 4px double var(--ink); padding-bottom: 2px; }
.ledger__note { margin-top: 1.1rem; font-size: .74rem; color: #5d5340; }

/* ── drift ── */
.drift { padding-bottom: 5rem; }
.constants { width: var(--wrap); margin: 0 auto 3rem; text-align: center; }
.constants__label { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.constants ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.constants li { background: var(--ink); color: var(--frost); border-radius: 14px; padding: .8rem 1.2rem; min-width: 8.5rem; font-size: .92rem; }
.constants b { display: block; font-size: 2.6rem; line-height: 1; color: var(--gold); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; }

.versions { width: min(860px, 100% - 2.5rem); margin: 0 auto; position: relative; display: grid; gap: 1.4rem; }
.versions::before { content: ""; position: absolute; left: 3.1rem; top: .5rem; bottom: .5rem; width: 3px; background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 12px); }
.ver { display: grid; grid-template-columns: 6.2rem 1fr; gap: 1.2rem; position: relative; }
.ver__year { justify-self: center; align-self: start; background: var(--pumpkin); color: var(--frost); border: 2px solid var(--ink); border-radius: 999px; padding: .2rem .7rem; font-weight: 900; font-size: 1rem; z-index: 1; white-space: nowrap; }
.ver--base .ver__year { background: var(--gold); color: var(--ink); }
.ver__body { background: var(--frost); border: 2px solid var(--ink); border-radius: 14px; padding: 1rem 1.2rem 1.1rem; box-shadow: 5px 5px 0 var(--paper-2); }
.ver__body h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.ver__body p { font-size: .96rem; color: var(--ink-soft); margin-top: .25rem; }
.ver__body a { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; }
.diff { margin-top: .7rem; font-family: var(--mono); font-size: .8rem; display: grid; gap: 2px; }
.diff li { padding: .22rem .6rem; border-radius: 4px; }
.diff .add { background: rgba(108,122,44,.2); }
.diff .add::before { content: "+ "; font-weight: 700; color: #4f5a22; }
.diff .del { background: rgba(200,84,26,.17); }
.diff .del::before { content: "− "; font-weight: 700; color: var(--pumpkin-deep); }
.diff .chg { background: rgba(226,163,34,.25); }
.diff .chg::before { content: "~ "; font-weight: 700; color: #8a5e00; }
@media (max-width: 560px) {
  .versions::before { display: none; }
  .ver { grid-template-columns: 1fr; gap: .4rem; }
  .ver__year { justify-self: start; }
}

.inflation { width: min(860px, 100% - 2.5rem); margin: 3.5rem auto 0; background: var(--ink); color: var(--frost); border-radius: 18px; padding: clamp(1.3rem, 4vw, 2.2rem); }
.inflation h3 { font-size: 1.6rem; font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; }
.inflation .fine { color: #d9c39c; }
.inflation__chart { display: grid; gap: 1.3rem; margin-top: 1.4rem; }
.infl__row { display: grid; gap: .3rem; }
.infl__name { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.infl__name em { font-style: normal; color: var(--gold); font-weight: 600; }
.infl__bar { height: 1.5rem; border-radius: 4px; width: 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1); display: flex; align-items: center; padding-left: .5rem; font-family: var(--mono); font-size: .72rem; color: var(--ink); white-space: nowrap; font-weight: 600; }
.infl__bar--then { background: var(--gold); }
.infl__bar--now { background: var(--frost); }

/* ── paul ── */
.paul { background: var(--pumpkin); color: var(--frost); padding: clamp(4rem, 9vw, 7rem) 0; }
.paul__inner { width: var(--wrap); margin: 0 auto; }
.paul .kicker { color: var(--ink); }
.paul h2 { font-size: clamp(3rem, 11vw, 8rem); line-height: .9; font-weight: 900; letter-spacing: -.035em; font-variation-settings: "SOFT" 100, "WONK" 1; text-shadow: .04em .04em 0 var(--brown); margin: .4rem 0 2rem; }
.paul__cols { columns: 3 260px; column-gap: 2.4rem; font-size: 1.08rem; }
.paul__cols p { break-inside: avoid; margin-bottom: 1rem; }
.dropcap { float: left; font-size: 4.4rem; line-height: .78; font-weight: 900; padding: .28rem .5rem 0 0; color: var(--ink); font-variation-settings: "SOFT" 100, "WONK" 1; }
.paul__sign { margin-top: 2rem; font-style: italic; font-size: 1.3rem; font-weight: 600; border-top: 2px solid var(--frost); padding-top: 1rem; }

/* ── photos ── */
.photos { padding-bottom: 5rem; }
.photos__grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.polaroid { background: #fffdf6; padding: .8rem .8rem 2.6rem; border: 1px solid var(--rule); box-shadow: 0 14px 28px -12px rgba(46,26,14,.5); transform: rotate(var(--tilt, -2deg)); transition: transform .3s; }
.polaroid:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(1.1) contrast(1.03) sepia(.12); }

/* ── footer ── */
.foot { background: var(--ink); color: var(--paper); }
.foot__inner { width: var(--wrap); margin: 0 auto; padding: 3.5rem 0 3rem; }
.foot__big { font-size: clamp(2.6rem, 10vw, 7.5rem); line-height: .95; font-weight: 900; font-style: italic; color: var(--gold); letter-spacing: -.03em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; margin-top: 2.5rem; font-size: .92rem; }
.foot h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.foot li { margin-bottom: .35rem; }
.foot p + p { margin-top: .7rem; }
.foot a:hover { color: var(--gold); }

/* ── cook mode ── */
.cook { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: var(--ink); color: var(--frost); }
.cook[open] { display: grid; grid-template-rows: auto auto 1fr auto; }
.cook::backdrop { background: var(--ink); }
.cook__top, .cook__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem); }
.cook__progress { font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.cook__bar { height: 6px; background: rgba(251,241,220,.15); }
.cook__bar i { display: block; height: 100%; background: var(--pumpkin); width: 0; transition: width .35s; }
.cook__stage { display: grid; align-content: center; gap: 1.2rem; padding: 1rem clamp(1.2rem, 8vw, 8rem); overflow-y: auto; }
.cook__title { font-size: clamp(2.2rem, 7vw, 5rem); line-height: 1; font-weight: 900; color: var(--gold); font-variation-settings: "SOFT" 100, "WONK" 1; }
.cook__text { font-size: clamp(1.25rem, 3.1vw, 2.2rem); line-height: 1.35; max-width: 34ch; }
.cook__text b { color: #ffc98a; font-weight: 700; }
.cook .timer { font-size: 1.2rem; padding: .6rem 1.2rem; color: var(--ink); }
.cook .timer.running { background: var(--gold); color: var(--ink); }
.cook .btn--ghost { background: transparent; color: var(--frost); border-color: var(--frost); box-shadow: none; }
.cook .fine { color: #b89f7c; }
@media (max-width: 600px) { .cook__nav .fine { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pan { transition: none; }
  .bar.lift { animation-duration: .01s; }
  .timer.done { animation: none; }
}

/* ── print: just the card ── */
@media print {
  @page { margin: .5in; }
  body { background: #fff; font-size: 10.5pt; }
  body::before, .topbar, .cover, .dials, .cut, .ledger, .drift, .paul, .photos, .foot, .stripes, .recipe .sechead, .card__foot, .timer, .cook, .skip { display: none !important; }
  .card { width: 100%; margin: 0; box-shadow: none; border: 1.5pt solid #000; break-inside: avoid; }
  .card__head { background: none; }
  .card__ing { background: none; }
  .reveal { opacity: 1; transform: none; }
  .card__name::after { content: "'s Pumpkin Bars"; }
  .ing input { border-width: 1pt; }
}

/* ── citations ── */
sup { line-height: 0; }
.cite { font-family: var(--mono); font-size: .68em; font-weight: 600; text-decoration: none; padding: 0 .2em; color: inherit; opacity: .7; }
.cite:hover, .cite:focus-visible { opacity: 1; text-decoration: underline; }
h2 .cite { font-size: .3em; vertical-align: super; }
.notes ol { list-style: decimal; padding-left: 1.3rem; display: grid; gap: .6rem; }
.notes li { margin: 0; scroll-margin-top: 5rem; }
.notes li:target { background: rgba(226,163,34,.22); outline: 6px solid rgba(226,163,34,.22); border-radius: 2px; }
.foot__cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 760px) { .foot__cols { grid-template-columns: 1fr; } }
@media print { .cite { display: none; } }
