/* elvarmarskkairo.com — California citrus crate labels (1920s–50s): a brand swept in script on a ribbon,
   a sunburst, a mascot in an oval vignette, grade stamps and lot numbers on a pine crate end. */

:root {
  --ink: #2A1C18; --ink-soft: #5B4538;
  --ultra: #1E348C; --ultra-deep: #14225E; --ultra-lite: #2B47AE;
  --red: #D2412A; --red-deep: #A32F1F; --red-lite: #B8382A;
  --cream: #F7EEDA; --paper: #FBF6EA; --paper-back: #E6D6B4;
  --citrus: #F2A33A; --lemon: #F5D04A;
  --leaf: #3E8B5A; --leaf-deep: #2B6A42; --leaf-lite: #347A4E;
  --pine: #DDB57C; --pine-dark: #C49A5E; --pine-line: #A87A45;

  --script: "Shrikhand", Georgia, serif;
  --text: "Asap", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "Asap Condensed", "Arial Narrow", sans-serif;
  --pad: 20px;
  --inner: 1224px;
  --bh: 84px;                /* crate board height */
  /* Figma tile hover: 180 ms, ease-out */
  --hover: 180ms ease-out;
}
@media (min-width: 900px) { :root { --pad: 72px; --bh: 118px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.58; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--citrus); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red-deep); color: var(--cream); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.script { font-family: var(--script); font-weight: 400; line-height: 1.08; text-wrap: balance; }
.h1 { font-size: clamp(2.375rem, 1.6rem + 3.4vw, 4.5rem); }
.h2 { font-size: clamp(2rem, 1.47rem + 2.38vw, 3.5rem); }
.shade-citrus { text-shadow: 2px 2px 0 var(--citrus); }
@media (min-width: 900px) { .shade-citrus { text-shadow: 3px 3px 0 var(--citrus); } .h1.shade-citrus { text-shadow: 4px 4px 0 var(--citrus); } }
.p { font-size: 16px; line-height: 1.58; text-wrap: pretty; }
.p--s { font-size: 16px; }
.p--big { font-size: 17px; }
.soft { color: var(--ink-soft); }
.lead { font-size: 16px; color: var(--ink-soft); line-height: 1.58; }
.lead--big { font-size: clamp(16px, 0.5vw + 14px, 18px); }
@media (min-width: 900px) { .p { font-size: 18px; } .p--big { font-size: 20px; } }
.p a, .fq-a a { color: var(--red-deep); text-underline-offset: 3px; }
.red-link { font-size: 17px; font-weight: 600; color: var(--red-deep); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.ultra-link { font-size: 16px; font-weight: 600; color: var(--ultra); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.ultra-link--b { font-size: 18px; font-weight: 700; }
.red-link:hover, .ultra-link:hover { color: var(--red); }

/* ---------- world pieces ---------- */
/* sunburst: alternating rays from one point (vars set inline) */
[style*="--sb-n"] { background: repeating-conic-gradient(from calc(90deg + var(--sb-turn, 0deg)) at var(--sb-x) var(--sb-y), var(--sb-r) 0 calc(180deg / var(--sb-n)), var(--sb-g) 0 calc(360deg / var(--sb-n))); }

/* ribbon: the brand band with swallow-tail ends folded behind */
.ribbon { --h: 1.55em; display: inline-flex; align-items: flex-start; font-family: var(--script); line-height: 1; filter: drop-shadow(0 6px 12px rgb(42 28 24 / 0.28)); }
.rb-band { display: flex; align-items: center; height: var(--h); padding: 0 0.5em; background: var(--red-lite); color: var(--cream); white-space: nowrap; }
.rb-text { text-shadow: max(2px, 0.07em) max(2px, 0.07em) 0 var(--red-deep); }
.rb-tail { position: relative; flex: none; width: calc(var(--h) * 0.62); height: calc(var(--h) + 10px); }
.rb-tail::after { content: ""; position: absolute; inset: 0; background: var(--red-deep); }
.rb-tail::before { content: ""; position: absolute; top: 0; width: 40%; height: 10px; background: rgb(42 28 24 / 0.45); }
.rb-tail--l::after { clip-path: polygon(100% 10px, 0 10px, 45% calc(50% + 5px), 0 100%, 100% 100%); }
.rb-tail--l::before { right: 0; clip-path: polygon(100% 0, 0 100%, 100% 100%); }
.rb-tail--r::after { clip-path: polygon(0 10px, 100% 10px, 55% calc(50% + 5px), 100% 100%, 0 100%); }
.rb-tail--r::before { left: 0; clip-path: polygon(0 0, 0 100%, 100% 100%); }

/* stamp: an inked grade word in a rounded box */
.stamp { display: inline-flex; align-items: center; width: fit-content; padding: 6px 12px; border: 2px solid var(--red-deep); border-radius: 6px; color: var(--red-deep); font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; }

/* pine crate end: boards with gaps and nails */
.crate, .hero, .sec.sec--crate { background-color: var(--pine-dark);
  background-image:
    radial-gradient(circle 4px at 30px calc(var(--bh) / 2 - 2px), rgb(110 82 52 / 0.8) 97%, transparent),
    radial-gradient(circle 4px at calc(100% - 30px) calc(var(--bh) / 2 - 2px), rgb(110 82 52 / 0.8) 97%, transparent),
    repeating-linear-gradient(to bottom, transparent 0 22px, rgb(168 122 69 / 0.22) 22px 23.5px, transparent 23.5px calc(var(--bh) / 2)),
    repeating-linear-gradient(to bottom, #E2BC86 0 calc(var(--bh) - 5px), var(--pine-dark) calc(var(--bh) - 5px) var(--bh), var(--pine) var(--bh) calc(2 * var(--bh) - 5px), var(--pine-dark) calc(2 * var(--bh) - 5px) calc(2 * var(--bh)));
  background-size: 100% var(--bh), 100% var(--bh), 100% var(--bh), 100% calc(2 * var(--bh)); }

/* registration marks and the colour bar of a press sheet */
.reg { position: absolute; width: 34px; height: 34px; background: linear-gradient(var(--ink-soft), var(--ink-soft)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink-soft), var(--ink-soft)) center / 1.5px 100% no-repeat; }
.reg::before { content: ""; position: absolute; inset: 6px; border: 1.5px solid var(--ink-soft); border-radius: 50%; }
.reg--tl { left: -5px; top: -3px; } .reg--tr { right: -5px; top: -3px; } .reg--bl { left: -5px; bottom: -3px; } .reg--br { right: -5px; bottom: -3px; }
.colour-bar { display: none; }
@media (min-width: 900px) {
  .reg--tl { left: 17px; top: 17px; } .reg--tr { right: 17px; top: 17px; } .reg--bl { left: 17px; bottom: 17px; } .reg--br { right: 17px; bottom: 17px; }
  .colour-bar { display: flex; gap: 6px; position: absolute; right: 100px; top: 26px; }
  .colour-bar i { width: 20px; height: 20px; }
}

.hole { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ultra); border: 2px solid var(--paper-back); }
.hole--big { width: 22px; height: 22px; border-width: 4px; }
.hole--pine { background: var(--pine-dark); }
.tag { display: inline-flex; align-items: center; gap: 14px; width: fit-content; padding: 13px 18px 13px 14px; background: var(--cream); border-radius: 4px; box-shadow: 0 8px 16px rgb(20 34 94 / 0.4); color: var(--red-deep); font-weight: 700; font-size: 16px; text-decoration: none; rotate: 2deg; transition: translate var(--hover); }
.tag:hover { translate: 0 -2px; }
@media (min-width: 900px) { .tag { padding: 16px 26px 16px 18px; font-size: 19px; } }

/* ---------- header: inline anchor list, like the lithographer's register line ---------- */
.masthead { display: flex; flex-direction: column; gap: 10px; padding: 14px var(--pad) 12px; background: var(--paper); border-bottom: 2px solid var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 10px; width: fit-content; text-decoration: none; font-family: var(--script); font-size: 22px; color: var(--red-deep); line-height: 1; }
.logo img { width: 32px; height: 32px; }
.anchors ul { display: flex; align-items: center; gap: 12px; }
.anchors li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 12px; border-radius: 50%; background: var(--citrus); vertical-align: middle; }
.anchors a { display: inline-block; padding: 4px 0 3px; border-bottom: 3px solid transparent; font-family: var(--cond); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.anchors a:hover { color: var(--red-deep); }
.anchors a[aria-current] { color: var(--red-deep); border-bottom-color: var(--red); }
@media (min-width: 900px) {
  .masthead { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; padding: 22px var(--pad); }
  .logo { font-size: 28px; }
  .logo img { width: 40px; height: 40px; }
  .anchors ul { gap: 18px; }
  .anchors li + li::before { margin-right: 18px; }
  .anchors a { font-size: 16px; }
}
.crumbs { padding: 14px var(--pad) 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.crumbs li + li::before { content: "›"; margin-right: 10px; font-family: var(--text); letter-spacing: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red-deep); text-decoration: underline; }
.crumbs [aria-current] { font-weight: 700; color: var(--red-deep); }
@media (min-width: 900px) { .crumbs { padding-top: 22px; } }

/* ---------- sections ---------- */
.sec { position: relative; overflow: hidden; padding: 52px var(--pad) 60px; background: var(--paper); }
.sec > .in { position: relative; z-index: 1; max-width: var(--inner); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.in--center { justify-items: center; }
.split-head { display: grid; gap: 12px; }
@media (min-width: 900px) {
  .sec { padding: 104px var(--pad); }
  .sec > .in { gap: 44px; }
  .split-head { grid-template-columns: minmax(0, 640px) minmax(0, 440px); justify-content: space-between; align-items: end; gap: 48px; }
  .split-head--page { grid-template-columns: minmax(0, 700px) minmax(0, 520px); gap: 56px; }
  .split-head .lead { font-size: 18px; }
}

/* ---------- hero: an ultramarine label pasted on the crate end ---------- */
.hero { position: relative; overflow: hidden; padding: 16px 12px 28px; }
.hero-label { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 34px 22px 40px; rotate: -0.8deg; box-shadow: 0 16px 30px rgb(42 28 24 / 0.45);
  --sb-x: 50% !important; --sb-y: 210px !important; --sb-n: 28 !important;
  animation: label-slap 320ms ease-out both; }
.keyline { position: absolute; inset: 10px; border: 1.5px solid var(--lemon); pointer-events: none; }
.hero-vig { order: 1; position: relative; width: 250px; aspect-ratio: 250 / 330; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px var(--cream); outline: 8px solid var(--red-deep); outline-offset: 10px; background: var(--leaf); }
.hero-vig img { width: 100%; height: 100%; object-fit: cover; }
.hero-h1 { order: 2; position: relative; z-index: 2; display: flex; flex-direction: column; margin: -46px 0 0; font-size: 30px; font-weight: 400; rotate: -3deg; animation: ribbon-in 320ms ease-out 80ms both; }
.hero-h1 .rb-a { align-self: flex-start; margin-left: -14px; }
.hero-h1 .rb-b { align-self: flex-end; margin: 4px -18px 0 0; }
.hero-brand { order: 3; margin-top: 40px; font-size: 28px; line-height: 1; color: var(--cream); text-shadow: 3px 3px 0 var(--red); }
.hero-col { order: 4; display: grid; gap: 20px; margin-top: 20px; }
.hero-lead { font-size: 16px; line-height: 1.5; color: var(--cream); }
.hero-lots { order: 5; margin-top: 20px; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2; color: var(--lemon); }
.peel { display: none; }
@keyframes label-slap { from { transform: scale(1.04); rotate: -2deg; } to { transform: none; rotate: -0.8deg; } }
@keyframes ribbon-in { from { transform: translateX(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 900px) {
  .hero { height: 790px; padding: 44px 48px; }
  .hero-label { display: block; max-width: 1272px; height: 694px; margin: 0 auto; padding: 0; box-shadow: 0 26px 50px rgb(42 28 24 / 0.45);
    --sb-x: 73.1% !important; --sb-y: 50.4% !important; --sb-n: 40 !important; }
  .keyline { inset: 18px; border-width: 2px; }
  .hero-vig { position: absolute; left: 50.3%; top: -54px; width: 47.2%; aspect-ratio: 600 / 820; margin: 0; box-shadow: 0 0 0 10px var(--cream); outline-width: 12px; outline-offset: 16px; }
  .hero-brand { position: absolute; left: 90px; top: 62px; margin: 0; font-size: 58px; text-shadow: 5px 5px 0 var(--red); }
  .hero-lots { position: absolute; left: 96px; top: 150px; width: 520px; margin: 0; font-size: 15px; letter-spacing: 0.16em; }
  .hero-h1 { position: absolute; left: 40px; top: 206px; flex-direction: row; margin: 0; font-size: clamp(44px, 5.1vw, 70px); }
  .hero-h1 .rb-a, .hero-h1 .rb-b { margin: 0; align-self: flex-start; filter: none; }
  .hero-h1 { filter: drop-shadow(0 6px 12px rgb(42 28 24 / 0.28)); }
  .hero-h1 .rb-a .rb-tail--r, .hero-h1 .rb-b .rb-tail--l { display: none; }
  .hero-h1 .rb-a .rb-band { padding-right: 0.13em; }
  .hero-h1 .rb-b .rb-band { padding-left: 0.13em; }
  .hero-col { position: absolute; left: 96px; top: 392px; width: 470px; gap: 30px; margin: 0; }
  .hero-lead { font-size: 20px; }
  .peel { display: block; position: absolute; right: 0; bottom: 0; width: 120px; height: 120px; background: linear-gradient(to bottom right, var(--paper-back) 50%, var(--pine-dark) 50%); }
}

/* ---------- G: one press sheet of labels ---------- */
.sheet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 640px) { .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; } }
.tile { position: relative; display: grid; gap: 14px; align-content: start; padding: 10px 10px 16px; background: var(--paper); border: 1px solid var(--paper-back); box-shadow: 0 8px 18px rgb(42 28 24 / 0.16); transition: rotate var(--hover), box-shadow var(--hover); }
.tile-face { position: relative; overflow: hidden; aspect-ratio: 1 / 0.9; border: 3px solid var(--cream); container-type: inline-size; }
.vig-ring { position: absolute; left: calc(20% - 9px); top: calc(10% - 9px); width: calc(60% + 18px); height: calc(66% + 18px); border: 2px solid var(--lemon); border-radius: 50%; }
.vig { position: absolute; left: 20%; top: 10%; width: 60%; height: 66%; border-radius: 50%; overflow: hidden; border: 6px solid var(--cream); background: var(--cream); }
.vig .cover { width: 100%; height: 100%; object-fit: cover; }
.tile-rb { position: absolute; left: 50%; top: 70%; translate: -50% 0; font-size: min(26px, calc((100cqw - 90px) / (var(--len) * 0.62))); transition: translate var(--hover); }
.tile-stamp { position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-color: var(--cream); color: var(--cream); font-size: 12px; rotate: 4deg; }
.tile-print { display: grid; gap: 8px; padding: 0 6px; }
.tile-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lot { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-deep); }
.packed { font-style: italic; font-size: 13px; color: var(--ink-soft); }
.tile-one { font-size: 15px; line-height: 1.45; }
.tile-link { font-size: 15px; font-weight: 600; color: var(--red-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; width: fit-content; transition: text-decoration-thickness var(--hover); }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.tile-link:focus-visible { outline: none; }
/* hover / focus (Figma): the label lifts off the crate end */
.tile:hover, .tile:focus-within { rotate: 1.5deg; box-shadow: 6px 22px 34px rgb(42 28 24 / 0.32); }
.tile:hover .tile-rb, .tile:focus-within .tile-rb { translate: -50% -4px; }
.tile:hover .tile-link, .tile:focus-within .tile-link { text-decoration-thickness: 3px; }
.tile:has(.tile-link:focus-visible) { outline: 3px solid var(--citrus); outline-offset: 4px; }
@media (min-width: 900px) {
  .tile-face { aspect-ratio: 1 / 0.94; }
  .tile-rb { font-size: min(32px, calc((100cqw - 90px) / (var(--len) * 0.62))); }
  .tile-one { font-size: 16px; }
}

/* ---------- D: picks pasted on the crate end ---------- */
.sec--crate .h2 { max-width: 900px; }
.picks { display: grid; gap: 24px; }
.pick { display: grid; gap: 14px; align-content: start; padding: 24px 22px; background: var(--paper); box-shadow: 0 10px 20px rgb(42 28 24 / 0.3); }
.pick-stamp { rotate: 3deg; }
.pick-t { font-family: var(--cond); font-weight: 800; font-size: 24px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; color: var(--red-deep); }
.pick .p { font-size: 15px; }
.pick-links { display: grid; gap: 6px; }
.pick-links a { font-size: 16px; font-weight: 600; color: var(--ultra); text-underline-offset: 3px; }
.pick-links a:hover { color: var(--red); }
@media (min-width: 900px) {
  .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .pick { padding: 30px 30px 32px; rotate: var(--r); }
  .pick-t { font-size: 30px; }
  .pick .p { font-size: 17px; }
}

/* ---------- T: the stencilled lot strip ---------- */
.marquee { overflow: hidden; background: var(--red-deep); padding: 14px 0; }
.mq-track { display: flex; width: max-content; animation: mq 40s linear infinite; }
.marquee:hover .mq-track, .marquee:focus-within .mq-track { animation-play-state: paused; }
.mq-run { display: flex; align-items: center; gap: 20px; padding-right: 20px; flex: none; }
.mq-item { font-family: var(--cond); font-weight: 800; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); white-space: nowrap; }
.star { width: 18px; height: 18px; flex: none; fill: var(--lemon); }
@keyframes mq { to { transform: translateX(-50%); } }
@media (min-width: 900px) { .marquee { padding: 22px 0; } .mq-run { gap: 30px; padding-right: 30px; } .mq-item { font-size: 22px; } }

/* ---------- A: what's printed on each label ---------- */
.sec--cream { background: var(--cream); }
.bg-sun { position: absolute; width: 840px; height: 840px; right: -420px; top: -420px; border-radius: 50%; opacity: 0.55;
  background: repeating-conic-gradient(from 90deg, var(--paper-back) 0 6deg, transparent 0 12deg); }
.about-row { gap: 20px !important; }
.about-l { display: grid; gap: 18px; justify-items: start; }
.about-stamp { rotate: 3deg; }
.about-r { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .bg-sun { width: 1520px; height: 1520px; left: -760px; right: auto; top: calc(300px - 760px); }
  .about-row { grid-template-columns: minmax(0, 520px) minmax(0, 1fr) !important; gap: 80px !important; }
}

/* ---------- K: a shipping tag on the ultramarine label ---------- */
.sec--ultra { background-color: var(--ultra); }
.ship-tag { position: relative; display: grid; gap: 18px; width: 100%; max-width: 760px; padding: 28px 22px; background: var(--paper); border-radius: 6px; box-shadow: 0 18px 36px rgb(20 34 94 / 0.55); }
.h2--tag { font-size: clamp(28px, 1.9vw + 20px, 44px); max-width: 648px; }
.tag-mail { font-family: var(--cond); font-weight: 800; font-size: clamp(21px, 2.1vw + 12px, 38px); letter-spacing: 0.02em; color: var(--red-deep); text-decoration: none; overflow-wrap: anywhere; line-height: 1.2; }
.tag-mail:hover { text-decoration: underline; }
@media (min-width: 900px) { .ship-tag { padding: 44px 56px 48px; rotate: 1.5deg; } }

/* ---------- F: questions ---------- */
.fqs { display: grid; gap: 22px; }
.fq { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.fq-q { font-weight: 600; font-size: 18px; line-height: 1.3; }
.fq-a { font-size: 15px; line-height: 1.58; color: var(--ink-soft); }
@media (min-width: 900px) { .fqs { grid-template-columns: 1fr 1fr; gap: 36px 56px; } .fq-q { font-size: 21px; } .fq-a { font-size: 17px; } }

/* ---------- footer: the red crate-end band ---------- */
.footer { position: relative; overflow: hidden; background: var(--red-deep); color: var(--cream); padding: 40px var(--pad) 28px; }
.footer::before { content: ""; position: absolute; width: 520px; height: 520px; right: -260px; top: -230px; border-radius: 50%; background: repeating-conic-gradient(from 90deg, var(--red-lite) 0 9deg, transparent 0 18deg); }
.footer-in { position: relative; max-width: var(--inner); margin-inline: auto; display: grid; gap: 28px; }
.footer-cols { display: grid; gap: 26px; }
.footer-brand { display: grid; gap: 12px; max-width: 380px; }
.f-name { font-family: var(--script); font-size: 30px; line-height: 1.05; }
.f-line { font-size: 15px; line-height: 1.5; }
.f-head { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lemon); margin-bottom: 10px; }
.footer-cols ul { display: grid; gap: 10px; font-size: 16px; font-weight: 500; }
.footer-cols a, .linkish { color: var(--cream); text-decoration: none; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.footer-cols a:hover, .linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-social { display: flex; gap: 10px; }
.footer-cols .f-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgb(247 238 218 / 0.55); transition: background .2s, color .2s, border-color .2s; }
.footer-cols .f-social a:hover { background: var(--cream); color: var(--red-deep); border-color: var(--cream); text-decoration: none; }
.linkish { background: none; border: 0; padding: 0; text-align: left; }
.f-base { display: grid; gap: 8px; padding-top: 24px; border-top: 1px solid rgb(247 238 218 / 0.45); font-size: 14px; }
.f-copy { font-weight: 600; }
@media (min-width: 900px) {
  .footer { padding: 64px var(--pad) 36px; }
  .footer::before { width: 840px; height: 840px; right: -380px; top: -380px; }
  .footer-in { gap: 40px; }
  .footer-cols { grid-template-columns: 380px repeat(3, minmax(0, 1fr)); gap: 56px; }
  .f-name { font-size: 40px; }
  .f-base { display: flex; justify-content: space-between; gap: 24px; }
  .f-base p:last-child { text-align: right; max-width: 820px; }
}

/* ---------- games page ---------- */
.sec--first { padding-top: 24px; }
@media (min-width: 900px) { .sec--first { padding-top: 40px; padding-bottom: 110px; } }

/* ---------- game page: the grade card ---------- */
.grade { padding: 18px var(--pad) 0; }
.grade-card { display: grid; max-width: var(--inner); margin: 0 auto; background: var(--gr); border: 6px solid var(--cream); overflow: hidden; box-shadow: 0 18px 36px rgb(42 28 24 / 0.3); }
.grade-face { position: relative; height: 330px; }
.grade-face .vig-ring { left: calc(50% - 106px); top: calc(50% - 136px); width: 212px; height: 272px; }
.grade-face .vig { left: calc(50% - 95px); top: calc(50% - 125px); width: 190px; height: 250px; border-width: 5px; }
.grade-stamp { position: absolute; left: 14px; top: 14px; border-color: var(--cream); color: var(--cream); rotate: 4deg; }
.grade-lot { position: absolute; left: 14px; bottom: 14px; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); }
.grade-info { display: grid; gap: 16px; align-content: start; padding: 8px 18px 26px; color: var(--cream); container-type: inline-size; }
.grade-h1 { font-weight: 400; font-size: min(30px, calc(74cqw / (var(--len, 12) * 0.62))); margin-left: -18px; }
.grade-h1 .ribbon { font-size: min(30px, calc(74cqw / (var(--len) * 0.62))); }
.grade-sum { font-size: 16px; line-height: 1.55; }
.grade-meta { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.gfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.gfact { display: grid; gap: 3px; align-content: start; padding-top: 10px; border-top: 1px solid rgb(247 238 218 / 0.4); }
.gfact dt { font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.gfact dd { font-weight: 600; font-size: 15px; line-height: 1.35; }
@media (min-width: 900px) {
  .grade { padding-top: 28px; }
  .grade-card { grid-template-columns: 500px minmax(0, 1fr); border-width: 10px; }
  .grade-face { height: 620px; }
  .grade-face .vig-ring { left: calc(50% - 176px); top: calc(50% - 231px); width: 352px; height: 462px; }
  .grade-face .vig { left: calc(50% - 165px); top: calc(50% - 220px); width: 330px; height: 440px; border-width: 8px; }
  .grade-stamp { left: 28px; top: 28px; }
  .grade-lot { left: 30px; bottom: 30px; }
  .grade-info { gap: 22px; padding: 48px 52px 48px 12px; align-content: center; }
  .grade-h1 .ribbon { font-size: min(44px, calc(85cqw / (var(--len) * 0.62))); }
  .grade-h1 { margin-left: -12px; }
  .grade-sum { font-size: 19px; }
  .gfacts { gap: 14px 28px; }
  .gfact dd { font-size: 17px; }
}
.gcol { max-width: calc(860px + 2 * var(--pad)); margin: 0 auto; padding: 44px var(--pad) 60px; display: grid; gap: 40px; }
.gblk { display: grid; gap: 18px; }
.h2--blk { font-size: clamp(28px, 1.2vw + 23px, 40px); }
.keys { display: grid; gap: 12px; }
.krow { display: flex; align-items: center; gap: 16px; }
.keycap { flex: none; padding: 8px 14px; background: var(--cream); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 0 3px 0 rgb(42 28 24 / 0.18); font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.tips { display: grid; gap: 14px; }
.tips li { display: flex; gap: 14px; }
.tips .star { fill: var(--red); margin-top: 5px; }
.gtwo { display: grid; gap: 20px; }
.gbox { display: grid; gap: 14px; align-content: start; padding: 22px; }
.gbox--cream { background: var(--cream); }
.gbox--line { background: var(--paper); border: 2px solid var(--red-deep); }
.h2--box { font-size: clamp(24px, 0.6vw + 21px, 30px); }
.similar { display: grid; }
.similar li { display: flex; align-items: center; gap: 18px; padding: 12px 0; border-bottom: 1px solid rgb(42 28 24 / 0.3); }
.similar li > div { display: grid; gap: 4px; }
.sim-vig { flex: none; width: 72px; height: 88px; border-radius: 50%; overflow: hidden; border: 3px solid var(--red-deep); background: var(--cream); }
.sim-vig .cover { width: 100%; height: 100%; object-fit: cover; }
.similar .p--s { font-size: 15px; }
.where { display: grid; gap: 12px; padding: 18px; border: 1px dashed var(--ink-soft); }
.gq { font-weight: 600; font-size: 19px; line-height: 1.3; margin-top: 6px; }
@media (min-width: 900px) {
  .gcol { padding: 80px 0 104px; gap: 64px; }
  .gtwo { grid-template-columns: 1fr 1fr; gap: 28px; }
  .gbox { padding: 30px; }
  .where { padding: 22px 26px; }
}

/* ---------- about ---------- */
.about-top { position: relative; overflow: hidden; margin-top: 14px; padding: 262px var(--pad) 36px; --sb-x: 50% !important; --sb-y: 120px !important; }
.about-vig { position: absolute; left: calc(50% - 85px); top: 20px; width: 170px; height: 220px; border-radius: 50%; overflow: hidden; border: 6px solid var(--cream); background: var(--leaf); }
.about-vig img { width: 100%; height: 100%; object-fit: cover; }
.about-top-t { position: relative; display: grid; gap: 20px; max-width: 720px; }
.h1--about { color: var(--cream); font-size: clamp(34px, 3.6vw + 20px, 68px); text-shadow: 2px 2px 0 var(--red); }
.about-lead { font-size: 16px; line-height: 1.55; color: var(--cream); }
.arows { gap: 36px !important; }
.arow { display: grid; gap: 12px; padding-top: 18px; border-top: 2px solid var(--ink); }
.h2--row { font-size: clamp(26px, 1vw + 22px, 36px); }
.arow-b { display: grid; gap: 14px; }
.ship-tag--about { max-width: 820px; gap: 16px; }
.ship-tag--about .p--s { font-size: 16px; }
.krows { display: grid; }
.krow2 { display: grid; gap: 2px; padding-top: 10px; margin-top: 6px; border-top: 1px solid rgb(42 28 24 / 0.25); }
.krow2 dt { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-deep); }
.krow2 dd { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.krow2 a { color: var(--ink); }
@media (min-width: 900px) {
  .about-top { margin-top: 22px; height: 460px; padding: 96px var(--pad) 0; --sb-x: 79% !important; --sb-y: 230px !important; }
  .about-vig { left: auto; right: calc(118px); top: 20px; width: 340px; height: 460px; border-width: 10px; }
  .h1--about { text-shadow: 4px 4px 0 var(--red); }
  .about-lead { font-size: 19px; }
  .arows { gap: 56px !important; }
  .arow { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 64px; padding-top: 28px; }
  .ship-tag--about { padding: 40px 52px; rotate: -1deg; }
  .krow2 { grid-template-columns: 180px 1fr; gap: 24px; }
}

/* ---------- legal ---------- */
.sec--legal { padding-top: 26px; padding-bottom: 56px; }
.lcol { max-width: 780px !important; gap: 26px !important; }
.lhead { display: grid; gap: 16px; justify-items: start; }
.legal-stamp { rotate: 2deg; }
.lsum { padding: 18px; background: var(--cream); border: 2px solid var(--red-deep); }
.lsec { display: grid; gap: 12px; }
.lsec-t { font-weight: 700; font-size: 20px; line-height: 1.3; }
.lsec .p { font-size: 15px; }
@media (min-width: 900px) {
  .sec--legal { padding-top: 48px; padding-bottom: 104px; }
  .lcol { gap: 40px !important; }
  .lsum { padding: 24px 28px; }
  .lsum .p { font-size: 18px; }
  .lsec-t { font-size: 24px; }
  .lsec .p { font-size: 17px; }
}

/* ---------- cookie label ---------- */
.cookie { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 500px; overflow: hidden; display: grid; gap: 14px; padding: 24px 20px; background: var(--ultra); border: 6px solid var(--cream); color: var(--cream); font-size: 15px; line-height: 1.5; box-shadow: 0 16px 32px rgb(20 34 94 / 0.45); }
.cookie::before { content: ""; position: absolute; width: 520px; height: 520px; right: -260px; top: -260px; border-radius: 50%; background: repeating-conic-gradient(from 90deg, var(--ultra-lite) 0 8.18deg, transparent 0 16.36deg); }
.cookie > * { position: relative; }
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 26px; text-shadow: 2px 2px 0 var(--red); }
.cookie-acts { display: flex; gap: 12px; }
.cbtn { flex: 1; padding: 13px 10px; border-radius: 4px; border: 2px solid var(--cream); background: transparent; color: var(--cream); font-weight: 700; font-size: 15px; }
.cbtn--on { background: var(--cream); color: var(--red-deep); }
.cbtn:hover { background: var(--ultra-deep); } .cbtn--on:hover { background: var(--paper); }
.cookie-link { font-size: 14px; font-weight: 600; color: var(--lemon); text-underline-offset: 3px; width: fit-content; }
.cookie-manage { display: grid; gap: 10px; padding: 12px; border: 1px solid rgb(247 238 218 / 0.5); }
.cookie-manage[hidden] { display: none; }
.cookie-opt { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.cookie-opt input { width: 18px; height: 18px; accent-color: var(--citrus); }
.cookie-manage .cbtn { flex: none; }
@media (min-width: 900px) {
  .cookie { left: 24px; right: auto; bottom: 24px; width: 500px; padding: 32px; gap: 16px; border-width: 8px; }
  .cookie h2 { font-size: 32px; }
}

/* ---------- page transitions (Figma notes): the label is slapped on and settles ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: page-slap 320ms ease-out both; transform-origin: 50% 0; }
@keyframes page-slap { from { transform: scale(1.04) rotate(0.4deg); } to { transform: none; } }
/* cards appear the same way: slapped on, a slight overshoot, ~300 ms */
.js [data-slap]:not(.is-in) { opacity: 0; }
[data-slap].is-in { animation: card-slap 300ms cubic-bezier(0.3, 1.45, 0.55, 1) both; }
@keyframes card-slap { 0% { opacity: 0; transform: scale(1.07) rotate(-1.2deg); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }

/* reduced motion: everything instant, the marquee stands still; tile hover changes only the shadow */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-slap]:not(.is-in) { opacity: 1; }
  .tile:hover, .tile:focus-within { rotate: none; }
  .tile:hover .tile-rb, .tile:focus-within .tile-rb { translate: -50% 0; }
}
