:root {
  --ground: #573A35;
  --paper: #DFC6AB;
  --paper-edge: #C9AD8F;
  --rule: #A9AFC0;
  --margin: #A9502F;
  --ink: #2D3446;
  --ink-soft: #4B5068;
  --popcorn: #F7E08F;
  --cerulean: #98B4D4;
  --pen: #3A5A94;
  --tape: rgb(247 224 143 / .8);
  --tan: #C9AD8F;
  --print: #FFFAF2;
  --type: 'Courier Prime', 'Courier New', monospace;
  --hand: 'Nanum Pen Script', 'Segoe Print', cursive;
  --ink-hand: 'Reenie Beanie', 'Segoe Print', cursive;
  --u: 1.75rem;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ring: var(--paper);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --seat: 2px;
  --lines: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--u) - 1px), var(--rule) calc(var(--u) - 1px), var(--rule) var(--u));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--grain), var(--ground); color: var(--paper); font: 400 1.0625rem/var(--u) var(--type); }
::selection { background: var(--pen); color: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 3px; }
.sheet, .box, .card, .letter, .note-card { --ring: var(--pen); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 16px; z-index: 10; }
.skip:focus { top: 12px; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
p { max-width: 62ch; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gut); }

/* paper */
.paper, .letter, .card, .sheet, .box, .note-card {
  background: var(--grain), var(--paper); color: var(--ink);
  box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 0 18px rgb(87 58 53 / .09) inset, 0 2px 3px rgb(0 0 0 / .25), 0 18px 30px -16px rgb(0 0 0 / .55);
  border-radius: 3px;
}
.ruled { background: var(--lines), var(--grain), var(--paper); background-position: 0 calc(var(--u) * 1.5 - 1px - var(--seat)), 0 0, 0 0; position: relative; }
.card.ruled::before, .letter::before, .note-card::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(2.4rem, 7vw, 4.4rem); width: 2px; background: var(--margin); opacity: .8; }

/* top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 14px var(--gut) 0; }
.wordmark { font: 400 2.4rem/1 var(--hand); text-decoration: none; padding-block: 4px; }
.top nav { display: flex; gap: 6px; }
.top nav a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 12px; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "title pile" "letter pile"; gap: 12px clamp(24px, 5vw, 80px); align-items: start; padding-top: clamp(8px, 2vw, 24px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero h1 { grid-area: title; font: 400 clamp(4.6rem, 13vw, 10.5rem)/.9 var(--hand); letter-spacing: -.01em; margin-top: .1em; }
.letter { --stock: var(--paper); grid-area: letter; position: relative; max-width: 520px; padding: calc(var(--u) * 1.5) 1.4rem var(--u) clamp(3.4rem, 9vw, 5.6rem); background: var(--lines), var(--grain), var(--stock); background-position: 0 calc(var(--u) * 1.5 - 1px - var(--seat)), 0 0, 0 0; transform: rotate(-.7deg); }
.letter h2 { font: 700 1.0625rem/var(--u) var(--type); margin-bottom: 0; }
.letter p { margin-bottom: var(--u); }
.letter .yours { margin-bottom: 0; }
.pile { grid-area: pile; position: relative; min-height: clamp(340px, 42vw, 520px); }
.pile .big { width: min(66%, 340px); }
.pile .small { position: absolute; right: 0; bottom: 0; width: min(52%, 270px); }

/* polaroid */
.polaroid { position: relative; margin: 0; padding: .75rem .75rem 0; background: var(--print); transform: rotate(var(--tilt, 0deg)); box-shadow: 0 1px 1px rgb(0 0 0 / .25), 0 10px 16px -6px rgb(0 0 0 / .4), 0 28px 36px -22px rgb(0 0 0 / .5); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.enter .polaroid { animation: pin .9s var(--ease) both; }
.enter .polaroid.small { animation-delay: 220ms; }
.polaroid .pic { aspect-ratio: 1; overflow: hidden; background: var(--tan); box-shadow: inset 0 0 0 1px rgb(30 42 45 / .12); }
.polaroid img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { min-height: 3rem; padding: .35rem .4rem .45rem; font: 400 1.6rem/1.05 var(--ink-hand); color: var(--pen); display: flex; align-items: center; }
.slot .pic { position: relative; display: grid; place-content: center; gap: 6px; text-align: center; padding: 10px; background: var(--grain), var(--tan); color: var(--ink); font-size: .95rem; line-height: 1.3; }
.slot code { font: 400 .78rem/1.3 var(--type); color: var(--ink); overflow-wrap: anywhere; }
.tape { position: absolute; top: -.9rem; left: calc(50% + var(--tx, 0%)); width: var(--tw, 6.2rem); height: 1.7rem; margin-left: calc(var(--tw, 6.2rem) / -2); background: linear-gradient(180deg, rgb(255 255 255 / .35), transparent 60%), var(--tape); transform: rotate(calc(var(--tilt, 0deg) * -2.2)); clip-path: polygon(2% 0, 98% 6%, 100% 52%, 97% 100%, 3% 94%, 0 46%); box-shadow: 0 1px 2px rgb(0 0 0 / .2); z-index: 1; }
@keyframes pin { from { opacity: 0; transform: translateY(-22px) rotate(calc(var(--tilt, 0deg) * 3)); } to { opacity: 1; transform: rotate(var(--tilt, 0deg)); } }

/* featured card */
.featured { padding: calc(var(--u) * 1.5) clamp(1.2rem, 4vw, 3rem) var(--u); }
.featured::before { display: none; }
.featured { position: relative; }
.feat-text { padding-block: 0; }
.hand-label { font: 400 1.9rem/var(--u) var(--ink-hand); color: var(--pen); }
.feat-text h2 { font: 700 clamp(1.9rem, 4.2vw, 2.6rem)/calc(var(--u) * 2) var(--type); margin-bottom: 0; text-wrap: balance; }
.src { color: var(--ink-soft); }
.plain { margin-block: var(--u); }
.open { display: inline-block; font-weight: 700; padding-block: 8px; }
.open:hover { text-decoration-thickness: 3px; }

/* tabs + box */
.recipes { padding-top: clamp(40px, 6vw, 72px); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding-left: 6px; }
.tab { font: 700 .95rem/1 var(--type); color: var(--ink); background: var(--paper-edge); border: 0; border-radius: 10px 10px 0 0; padding: 0 1.15rem; min-height: 44px; cursor: pointer; transition: transform .2s var(--ease); }
.tab:hover { background: #D6BB9C; }
.tab[aria-pressed="true"] { background: var(--paper); min-height: 52px; }
.tabs .tab { --ring: var(--paper); }
.box { padding: clamp(1.2rem, 4vw, 2.2rem); border-top-left-radius: 0; }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 2.4rem 1.8rem; }
.mini[hidden] { display: none; }
.mini a, .mini > div { display: block; color: var(--ink); text-decoration: none; }
.mini h3 { font: 700 1.2rem/var(--u) var(--type); margin-top: 1rem; }
.mini .from { color: var(--ink-soft); font-size: .95rem; }
.mini-photo { padding-bottom: .75rem; }
.mini-photo figcaption { display: none; }
.mini a:hover .polaroid { transform: rotate(0deg) translateY(-6px); }
.mini a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.mini.is-soon h3 { color: var(--ink-soft); }
.empty { margin-top: var(--u); }

/* note + pin card */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: clamp(48px, 7vw, 96px); }
.note-card { position: relative; padding: calc(var(--u) * 1.5) 1.4rem var(--u) clamp(3.4rem, 9vw, 5.6rem); min-height: calc(var(--u) * 8); }
.note-card h2 { font: 700 1.0625rem/var(--u) var(--type); }
.ink, .note-card .ink { font: 400 1.65rem/var(--u) var(--ink-hand); color: var(--pen); margin-top: 0; }
.pin-card { border: 2px dashed rgb(223 198 171 / .55); border-radius: 6px; padding: 1.6rem; }
.pin-card h2 { font: 400 clamp(2.6rem, 6vw, 3.6rem)/1 var(--hand); margin-bottom: .6rem; }
.flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.flag { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 2px dashed rgb(223 198 171 / .55); border-radius: 8px 8px 0 0; text-decoration: none; }
.flag.on { background: var(--paper); color: var(--ink); border: 2px solid var(--paper); font-weight: 700; --ring: var(--paper); }
.flag.on:hover { background: var(--paper-edge); }
.foot { max-width: 1200px; margin: 0 auto; padding: 24px var(--gut) 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #7A5A52; font-size: .95rem; }

/* recipe page */
.sheet { position: relative; max-width: 1000px; margin: clamp(16px, 3vw, 32px) auto 72px; width: calc(100% - 2 * var(--gut)); padding: clamp(1.4rem, 4vw, 3rem) clamp(1.2rem, 4vw, 3rem) clamp(1.4rem, 4vw, 3rem) clamp(3.2rem, 9vw, 6.2rem); }
.sheet::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(2.4rem, 7vw, 4.4rem); width: 2px; background: var(--margin); opacity: .8; }
.r-head { display: grid; grid-template-columns: 1fr minmax(0, 300px); gap: 24px 40px; align-items: start; margin-bottom: calc(var(--u) * 1.5); }
.r-title h1 { font: 700 clamp(2rem, 5.4vw, 2.9rem)/calc(var(--u) * 2) var(--type); margin-bottom: var(--u); text-wrap: balance; }
.meta { color: var(--ink-soft); font-size: 1rem; }
.dish { margin-top: .6rem; }
.ingredients, .know { background: var(--lines); background-position: 0 calc(var(--u) - 1px - var(--seat)); }
.ingredients { padding-bottom: var(--u); }
.ingredients h3, .know h2, .method h2 { font: 700 1.0625rem/var(--u) var(--type); }
.ingredients h3:not(:first-child) { margin-top: var(--u); }
.ing label { display: flex; align-items: baseline; gap: .7rem; min-height: var(--u); cursor: pointer; }
.ing input { appearance: none; -webkit-appearance: none; flex: none; width: 1.15rem; height: 1.15rem; margin: 0; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); align-self: center; position: relative; cursor: pointer; }
.ing input:checked { background: var(--paper); border-color: var(--pen); }
.ing input:checked::after { content: ''; position: absolute; left: 3px; top: -3px; width: 5px; height: 11px; border: solid var(--pen); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.ing input:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }
.qty { font-weight: 700; }
.ing input:checked + .line { text-decoration: line-through 2px var(--pen); color: var(--ink-soft); }
.method { margin-top: calc(var(--u) * 1.5); }
.method h2 { font-size: 1.25rem; margin-bottom: var(--u); }
.steps { display: grid; gap: calc(var(--u) * 2); }
.step { display: grid; grid-template-columns: minmax(0, 230px) 1fr; gap: 24px 36px; align-items: start; }
.step-photo { margin-top: .5rem; }
.step-text { background: var(--lines); background-position: 0 calc(var(--u) - 1px - var(--seat)); padding-bottom: var(--u); }
.step-text h3 { font: 700 1.1rem/var(--u) var(--type); }
.step-text p { margin-bottom: 0; }
.step-text .ink { margin-top: var(--u); }
.know { margin-top: calc(var(--u) * 2); padding-bottom: var(--u); }
.know p { max-width: 70ch; }
.credit { margin-top: var(--u); color: var(--ink-soft); }
.credit a { color: var(--ink); font-weight: 700; }
.country { padding-top: 24px; padding-bottom: 72px; }
.country h1 { font: 400 clamp(4rem, 10vw, 7rem)/.9 var(--hand); margin-bottom: 12px; }
.country .lede { margin-bottom: 32px; max-width: 56ch; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "title" "letter" "pile"; }
  .pile { min-height: 420px; margin-top: 12px; }
  .featured { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .r-head { grid-template-columns: 1fr; }
  .dish { max-width: 300px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; }
  .step-photo { max-width: 260px; }
  .pile .big { width: 70%; }
  .pile .small { width: 56%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 560px) {
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1rem; }
  .mini h3 { font-size: 1rem; }
  .mini .polaroid { padding: .5rem .5rem 0; }
  .slot code { display: none; }
}

.sheet .dish { float: right; width: 300px; margin: .4rem 0 1.5rem 2.5rem; }
.r-head { display: block; }
.method { clear: both; }
@media (max-width: 880px) { .sheet .dish { float: none; margin: 0 auto 1.5rem; } }

/* second pass: calmer placeholders, pen annotation, drawn strike */
.start-here { position: absolute; right: clamp(1rem, 6vw, 5rem); top: calc(var(--u) * .4); display: flex; align-items: flex-end; gap: 4px; font: 400 2.1rem/1 var(--ink-hand); color: var(--pen); transform: rotate(-5deg); }
.start-here svg { width: 3rem; height: 2rem; fill: none; stroke: var(--pen); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.feat-text h2 { margin-top: 0; }
.mini .slot-label ~ code, .pile code { display: none; }
.sheet .slot code { display: block; }
.mini .slot-label { color: var(--ink); }
.soon-note { font: 400 1.5rem/1 var(--ink-hand); color: var(--pen); margin-top: .1rem; }
.mini.is-soon a, .mini.is-soon > div { cursor: default; }
.ing label { padding-block: .55rem; margin-block: -.55rem; }
.ing .line { background: linear-gradient(var(--pen), var(--pen)) 0 58% / 0 2px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.ing input:checked + .line { text-decoration: none; background-size: 100% 2px; color: var(--ink-soft); }
.sheet::after { content: ''; position: absolute; left: .9rem; top: 0; bottom: 0; width: 18px; background: radial-gradient(circle at 50% 14%, var(--ground) 0 7px, rgb(0 0 0 / .3) 8px, transparent 10px), radial-gradient(circle at 50% 86%, var(--ground) 0 7px, rgb(0 0 0 / .3) 8px, transparent 10px); pointer-events: none; }
.top nav a:first-child { padding-left: 0; }
@media (max-width: 560px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0; scrollbar-width: none; }
  .tab { flex: none; }
  .step-photo { max-width: 200px; }
  .start-here { font-size: 1.7rem; right: .8rem; }
}

/* handwriting stays at 24px or larger: #3A5A94 on the cards is 4.17:1, which passes as large text only */
.letter .ink, .note-card .ink, .step-text .ink, .soon-note { font-size: max(1.5rem, 24px); }

/* third pass: separate the tans, thicken the pen, one card visibly handled */
.tab { box-shadow: inset 0 0 0 1px #7A5A52; }
.tab[aria-pressed="true"] { box-shadow: 0 -3px 6px -3px rgb(0 0 0 / .35); }
.slot .pic { background: repeating-linear-gradient(135deg, rgb(169 80 47 / .09) 0 2px, transparent 2px 14px), var(--grain), var(--tan); box-shadow: inset 0 0 0 1px rgb(45 52 70 / .25); }
.tape { mix-blend-mode: multiply; box-shadow: 0 1px 2px rgb(87 58 53 / .35); }
.mini .polaroid { box-shadow: 0 1px 1px rgb(0 0 0 / .3), 0 12px 18px -6px rgb(0 0 0 / .5), 0 30px 38px -22px rgb(0 0 0 / .55); }
.ink, .soon-note, .polaroid figcaption, .start-here { -webkit-text-stroke: .3px currentColor; letter-spacing: .01em; }
.letter .ink, .note-card .ink, .step-text .ink, .soon-note { font-size: max(1.6rem, 25px); }
.featured { transform: rotate(.35deg); }
@media (max-width: 560px) {
  .sheet { padding-left: 3rem; }
  .sheet::before { left: 2.2rem; }
  .sheet::after { display: none; }
}

/* ---- fourth pass: Popcorn + Cerulean, search, country print, text between the lines ---- */
.dish-name { font: 700 1.2rem/var(--u) var(--type); margin: 0; }
.feat-text h2 { font-family: var(--hand); font-weight: 400; font-size: clamp(2.8rem, 6vw, 4rem); line-height: calc(var(--u) * 2); letter-spacing: 0; color: var(--ink); }
.start-here { background: linear-gradient(transparent 48%, var(--popcorn) 48% 90%, transparent 90%); padding: 0 .5rem; }
.tape { background: linear-gradient(180deg, rgb(255 255 255 / .3), transparent 60%), var(--tape); }
.flag.on { background: var(--cerulean); border-color: var(--cerulean); color: var(--ink); }
.flag.on:hover { background: var(--popcorn); border-color: var(--popcorn); }

.search { margin-bottom: 1.4rem; max-width: 640px; }
.search label { display: block; font-weight: 700; margin-bottom: .3rem; }
.search-row { display: flex; gap: 8px; }
input[type=search] { -webkit-appearance: none; appearance: none; }
.search input { flex: 1; min-width: 0; font: 400 1.0625rem/1.4 var(--type); color: var(--ink); background: var(--cerulean); border: 2px solid transparent; border-radius: 4px; padding: .7rem .8rem; min-height: 48px; }
.search input::placeholder { color: #2F3A55; opacity: 1; }
.search input:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; border-color: var(--ink); }
.go { font: 700 1rem/1 var(--type); color: var(--ink); background: var(--popcorn); border: 0; border-radius: 4px; padding: 0 1.3rem; min-height: 48px; cursor: pointer; box-shadow: 0 6px 10px -4px rgb(0 0 0 / .45); }
.go:hover { background: #FFEBA6; }
.go:active { transform: translateY(2px); box-shadow: 0 2px 4px -2px rgb(0 0 0 / .45); }


.print { position: relative; width: min(100%, 520px); margin: 8px 0 2rem; padding: .75rem; background: var(--print); transform: rotate(var(--tilt, 0deg)); box-shadow: 0 1px 1px rgb(0 0 0 / .3), 0 12px 18px -6px rgb(0 0 0 / .5), 0 30px 38px -22px rgb(0 0 0 / .55); }
.print svg, .print img { display: block; width: 100%; height: auto; }
.empty a { color: var(--ink); font-weight: 700; }
.recipes .search + .tabs { margin-top: .4rem; }
.country .box { margin-top: 0; border-top-left-radius: 3px; }
#about, #note { scroll-margin-top: 16px; }
@media (max-width: 700px) { .search-row { flex-direction: column; } .go { min-height: 48px; } }
.country-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 24px clamp(24px, 5vw, 72px); align-items: center; margin-bottom: 2.4rem; }
.country-head .print { margin: 12px 0; justify-self: end; }
.country-head .search { margin-bottom: 0; }
@media (max-width: 880px) { .country-head { grid-template-columns: 1fr; } .country-head .print { justify-self: start; } }

.ing li { display: flow-root; }

/* fifth pass */
.feat-text h2 { line-height: calc(var(--u) * 2); position: static; font-size: clamp(2.6rem, 5vw, 3.3rem); }
.tabs { display: none; }
.js .tabs { display: flex; }
.print figcaption { font: 400 1.6rem/1 var(--ink-hand); color: var(--pen); padding: .5rem .3rem 0; -webkit-text-stroke: .3px currentColor; }

.ing input { align-self: flex-start; margin-top: .3rem; }
@media (min-width: 881px) {
  .pile .small { right: -2rem; bottom: -3rem; width: min(46%, 240px); }
  .hero { padding-bottom: clamp(56px, 7vw, 96px); }
}

.letter .yours { margin-bottom: var(--u); }
.letter .ps { margin-bottom: 0; }

/* ---- sixth pass: grid alignment, tasks, smaller country print, video teaser ---- */
.open { margin-block: -8px; }
.ink, .note-card .ink { position: relative; top: -2px; }
.tasks { margin: 0; }
.step-text .tasks { margin-bottom: 0; }
@media (min-width: 881px) { .country-head { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); } }
.print { width: min(100%, 340px); }
.soon-tag { margin-top: 1rem; }
.soon-tag span { display: inline-block; background: var(--popcorn); color: var(--ink); font-weight: 700; padding: 0 .55rem; border-radius: 3px; margin-right: .3rem; }
/* strike each line of a wrapped item, not the gap between lines */
.ing .line { background: none; transition: color .3s; }
.ing input:checked + .line { background: none; text-decoration: line-through 2px var(--pen); text-decoration-skip-ink: none; color: var(--ink-soft); }

.top nav { flex-wrap: wrap; }
.arrow { width: 1.1em; height: .7em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; margin-right: .25em; }
.top nav a { white-space: nowrap; }

.letter .ink, .note-card .ink, .step-text .ink, .soon-note { font-size: max(1.5rem, 24px); }
/* the big handwriting heading is taller than one ruled row, so it sits on a paper patch that interrupts the rules */
.feat-text h2 { display: block; width: fit-content; background: var(--grain), var(--paper); padding: 0 .6rem; margin-left: -.6rem; line-height: calc(var(--u) * 2); }

/* ---- back links at the end of every page; flag print centred on phones ---- */
.page-end { max-width: 1200px; margin: 0 auto; padding: 8px var(--gut) 24px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.page-end a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; font-weight: 700; white-space: nowrap; color: var(--paper); }
.page-end a:hover { color: var(--popcorn); }
.page-end .to-top { margin-left: auto; }
.arrow.up { width: .7em; height: 1.1em; margin: 0 0 0 .35em; }
.sheet + .page-end, .sheet ~ .page-end { max-width: 1000px; width: calc(100% - 2 * var(--gut)); padding-inline: 0; }
@media (max-width: 880px) {
  .country-head .print { justify-self: center; width: min(100%, 340px); }
}
