/* The Year Page. Fonts are self-hosted: no third-party requests. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Layout idea: full-bleed grid of 365 days. Days 1–364 fill 28 / 14 / 7 columns exactly (52 weeks); 31 December closes the grid as one full-width row. */
  --cols: 28;
  --paper: #ffffff;
  --ink: #0a0a0a;
  --grey: #8c8c8c;
  --faint: #bdbdbd;
  --hairline: #e4e4e4;
  --signal: #39ff14;
  --critical: #d4001c;
  --font-ui: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding: 10px 16px; }
.brand { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand small { font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; }
.stats { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.stats .k { color: var(--grey); margin-right: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 1px var(--ink); margin-right: 8px; vertical-align: 1px; }
.btn-bid { border: 1px solid var(--ink); background: var(--signal); padding: 7px 12px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.btn-bid:hover { background: var(--ink); color: var(--signal); }
.btn-bid:disabled { background: var(--paper); color: var(--grey); border-color: var(--faint); cursor: default; }

/* Grid: full bleed */
.grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 1px; background: var(--ink); border-bottom: 1px solid var(--ink); }
@media (orientation: portrait), (max-width: 900px) { :root { --cols: 14; } }
@media (max-width: 560px) { :root { --cols: 7; } }

/* 31 December: the closing row, full width, same height as a row of squares */
.cell.last { grid-column: 1 / -1; aspect-ratio: var(--cols) / 1; container-type: normal; display: flex; align-items: stretch; }
.cell.last .slot { flex: none; width: calc((100% - (var(--cols) - 1) * 1px) / var(--cols)); height: 100%; position: relative; overflow: hidden; container-type: inline-size; border-right: 1px solid var(--ink); }
.cell.last .slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cell.last .info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px 28px; padding: 0 16px; overflow: hidden; white-space: nowrap; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(10px, calc(100vw / var(--cols) * .2), 16px); text-transform: uppercase; letter-spacing: .04em; color: var(--grey); }
.cell.last .info b { font-weight: 500; color: var(--ink); }
.cell.last .info .big { font-size: 1.6em; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.cell.last.live .info, .cell.last.live .info b, .cell.last.live .info .big { color: var(--ink); }
.cell.last.live .info .ext2 { background: var(--ink); color: var(--signal); padding: 1px 5px; }
.cell.last.live:hover .info, .cell.last.live:hover .info b, .cell.last.live:hover .info .big { color: var(--signal); }
.cell.last.sold { background: var(--ink); }
.cell.last.sold .info, .cell.last.sold .info b { color: var(--paper); }
.cell.last.sold .info .price { color: var(--signal); }
.cell.last.picked .info, .cell.last.picked .info b { color: var(--signal); }
.cell.last.reminded::after { width: 8px; height: 8px; min-width: 0; min-height: 0; top: 8px; right: 8px; }
@media (max-width: 560px) { .cell.last .info .hide-s { display: none; } }

.cell { aspect-ratio: 1; position: relative; overflow: hidden; background: var(--paper); border: 0; padding: 0; margin: 0; text-align: left; display: block; container-type: inline-size; text-decoration: none; color: var(--ink); }
.cell .n, .cell .d { position: absolute; left: 9%; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: max(7px, 13cqi); line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.cell .n { top: 9%; color: var(--grey); }
.cell .d { bottom: 9%; color: var(--grey); text-transform: uppercase; }
.cell:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; z-index: 2; }

.cell.upcoming .n, .cell.upcoming .d { color: var(--faint); }
.cell.upcoming:hover { background: #f6f6f6; }

.cell.unsold { background: repeating-linear-gradient(45deg, var(--paper) 0 5px, var(--hairline) 5px 6px); }

.cell.live, .cell.soon { cursor: pointer; }
.cell.live { background: var(--signal); }
.cell.soon { background: var(--ink); }
.cell.live .n, .cell.live .d { color: var(--ink); }
.cell.soon .n, .cell.soon .d { color: var(--signal); }
.cell .mid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 3%; padding: 0 9%; font-family: var(--font-mono); font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.cell .mid .cd { font-weight: 500; font-size: max(7px, 15.5cqi); letter-spacing: -0.03em; }
.cell .mid .hb { font-size: max(7px, 12cqi); }
.cell.soon .mid { color: var(--signal); }
.cell.live .ext { position: absolute; right: 9%; bottom: 9%; font-family: var(--font-mono); font-size: max(6px, 10cqi); line-height: 1; background: var(--ink); color: var(--signal); padding: 1px 2px; }
.cell.live:hover { background: var(--ink); }
.cell.live:hover .n, .cell.live:hover .d, .cell.live:hover .mid { color: var(--signal); }
.cell.live:hover .ext { background: var(--signal); color: var(--ink); }

.cell.sold { cursor: pointer; background: var(--ink); }
.cell.sold img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cell.sold::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--signal); opacity: 0; }
.cell.sold:hover::after, .cell.sold:focus-visible::after { opacity: 1; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 16px 28px; font-family: var(--font-mono); font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: .05em; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 7px; vertical-align: -1px; border: 1px solid var(--ink); }
.legend .l-live::before { background: var(--signal); }
.legend .l-sold::before { background: var(--ink); }
.legend .l-up::before { background: var(--paper); }
.legend .l-un::before { background: repeating-linear-gradient(45deg, var(--paper) 0 2px, #bbb 2px 3px); }

/* Tooltip */
.tip { position: fixed; z-index: 30; pointer-events: none; background: var(--ink); color: var(--paper); padding: 8px 10px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 11px; line-height: 1.45; max-width: 240px; border-left: 3px solid var(--signal); }
.tip[hidden] { display: none; }
.tip .t1 { color: #9a9a9a; text-transform: uppercase; letter-spacing: .05em; }
.tip .t2 { font-family: var(--font-ui); font-size: 13px; font-weight: 500; }
.tip b { color: var(--signal); font-weight: 500; }

/* Footer strip */
footer { background: var(--ink); color: var(--paper); padding: 44px 20px 28px; }
.foot { max-width: 1120px; margin: 0 auto; display: grid; gap: 36px; }
.foot h2 { margin: 0; font-weight: 500; font-size: clamp(22px, 3vw, 34px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; max-width: 24ch; }
.foot h2 em { font-style: normal; color: var(--signal); }
.cols { display: grid; grid-template-columns: 1fr 1.4fr 0.8fr; gap: 32px; }
.cols h3 { margin: 0 0 12px; font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: #9a9a9a; text-transform: uppercase; letter-spacing: .08em; }
.cols ol, .cols ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; display: grid; gap: 6px; max-width: 65ch; }
.cols ul { list-style: square; }
.linklist { list-style: none !important; padding: 0 !important; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--paper); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.linkbtn:hover, .linkbtn:focus-visible { color: var(--signal); }
.fineprint { border-top: 1px solid #2a2a2a; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-family: var(--font-mono); font-size: 11px; color: #9a9a9a; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }

/* Dialogs */
dialog { border: 1px solid var(--ink); padding: 0; width: calc(100% - 32px); max-width: 900px; max-height: calc(100svh - 32px); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(10,10,10,.55); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--ink); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.dlg-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.dlg-head .sub { font-family: var(--font-mono); font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.x { border: 1px solid var(--ink); background: var(--paper); width: 32px; height: 32px; cursor: pointer; font-size: 16px; line-height: 1; }
.x:hover { background: var(--ink); color: var(--paper); }
.band { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ink); }
.band > div { padding: 12px 18px; border-right: 1px solid var(--ink); }
.band > div:last-child { border-right: 0; }
.band .k { font-family: var(--font-mono); font-size: 10px; color: var(--grey); text-transform: uppercase; letter-spacing: .08em; }
.band .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 500; margin-top: 4px; letter-spacing: -0.02em; }
.band .time { background: var(--signal); }
.band .time .k { color: var(--ink); }
.band .extnote { font-family: var(--font-mono); font-size: 10px; margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; min-height: 12px; }
.dlg-body { display: grid; grid-template-columns: 1fr 1.25fr; }
.side { padding: 18px; border-right: 1px solid var(--ink); display: grid; gap: 18px; align-content: start; }
.preview { aspect-ratio: 1; border: 1px solid var(--ink); background: repeating-linear-gradient(45deg, var(--paper) 0 9px, var(--hairline) 9px 10px); display: grid; place-items: center; overflow: hidden; }
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview span { font-family: var(--font-mono); font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; background: var(--paper); padding: 4px 6px; }
.hist h3 { margin: 0 0 8px; font-family: var(--font-mono); font-weight: 400; font-size: 10px; color: var(--grey); text-transform: uppercase; letter-spacing: .08em; }
.hist ol { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; }
.hist li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 7px 0; border-top: 1px solid var(--hairline); }
.hist li:first-child { font-weight: 500; }
.hist li .t { color: var(--grey); }
.hist li.me .who::after { content: " (you)"; color: var(--ink); background: var(--signal); padding: 0 3px; margin-left: 4px; }
.hist .empty { color: var(--grey); font-family: var(--font-mono); font-size: 12px; display: block; border: 0; }
form.bid { padding: 18px; display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label, .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.field input[type=text], .field input[type=email], .field input[type=url], .field input[type=number] {
  width: 100%; border: 1px solid var(--ink); border-radius: 0; padding: 10px 12px; font: 15px var(--font-ui); background: var(--paper); color: var(--ink); }
.field input:focus-visible, .check input:focus-visible, .file:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; box-shadow: 0 0 0 5px var(--signal); }
.amount { position: relative; }
.amount input { font-family: var(--font-mono) !important; font-size: 22px !important; padding-left: 34px !important; }
.amount::before { content: "€"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 20px; }
.hint { font-size: 12px; color: var(--grey); line-height: 1.4; }
.err { font-size: 12px; color: var(--critical); line-height: 1.4; }
.err:empty { display: none; }
.file { border: 1px dashed var(--ink); padding: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file input { font-size: 13px; max-width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.45; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); }
.invoice { display: none; gap: 12px; padding: 12px; border: 1px solid var(--hairline); }
.invoice.on { display: grid; }
.card { border: 1px dashed var(--grey); padding: 12px; font-size: 12px; color: var(--grey); line-height: 1.45; }
.card b { color: var(--ink); font-weight: 500; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 4px; }
.submit { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 15px; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.submit:hover, .submit:focus-visible { background: var(--signal); color: var(--ink); }
.ok { background: var(--signal); border: 1px solid var(--ink); padding: 12px; font-size: 13px; line-height: 1.45; }
.ok:empty { display: none; }
.locked { font-size: 12px; background: #f4f4f4; padding: 10px 12px; line-height: 1.45; }

@media (max-width: 720px) {
  dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; }
  .dlg-body { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--ink); }
  .preview { max-width: 240px; }
  .band .v { font-size: 18px; }
  .band > div { padding: 10px 12px; }
  .row2 { grid-template-columns: 1fr; }
}

/* Legal dialog */
.legal { padding: 22px 24px 32px; font-size: 14px; line-height: 1.6; }
.legal .draft { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--signal); display: inline-block; padding: 3px 6px; margin-bottom: 14px; }
.legal h3 { font-size: 14px; font-weight: 600; margin: 22px 0 6px; }
.legal p { margin: 0 0 8px; max-width: 70ch; }
.legal ul { margin: 0 0 10px; padding-left: 20px; max-width: 70ch; display: grid; gap: 4px; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.legal .toc button { border: 1px solid var(--ink); background: var(--paper); padding: 5px 9px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.legal .toc button:hover, .legal .toc button:focus-visible { background: var(--ink); color: var(--paper); }
.legal h3 { scroll-margin-top: 80px; }
.legal .form-model { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; border: 1px dashed var(--grey); padding: 12px; }
.legal .ph { background: #fff3a6; padding: 0 2px; }

/* Toast + prototype controls */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--font-mono); font-size: 12px; z-index: 50; max-width: calc(100% - 32px); border-left: 4px solid var(--signal); }
.toast[hidden] { display: none; }

/* Pre-launch landing */
.hero { border-bottom: 1px solid var(--ink); padding: 44px 16px 40px; }
.hero[hidden] { display: none; }
.hero-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.eyebrow { margin: 0 0 26px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); }
.hero h1 { margin: 0; font-weight: 600; font-size: clamp(44px, 7.4vw, 104px); line-height: .94; letter-spacing: -0.045em; text-wrap: balance; }
.hero h1 em { font-style: normal; background: var(--signal); padding: 0 .08em; }
.lede { font-size: 17px; line-height: 1.5; max-width: 52ch; margin: 20px 0 22px; }
.launch { display: inline-flex; align-items: baseline; gap: 12px; border: 1px solid var(--ink); padding: 10px 14px; font-variant-numeric: tabular-nums; }
.launch .k { font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: .08em; }
.launch b { font-weight: 500; font-size: 26px; letter-spacing: -0.02em; }
.remind { border: 1px solid var(--ink); padding: 20px; display: grid; gap: 14px; background: var(--paper); }
.remind h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.remind .field input[type=date] { width: 100%; border: 1px solid var(--ink); border-radius: 0; padding: 9px 12px; font: 15px var(--font-mono); background: var(--paper); color: var(--ink); }
.pick { font-size: 12px; line-height: 1.5; padding: 10px 12px; background: #f4f4f4; }
.pick b { font-weight: 500; background: var(--signal); padding: 0 3px; }
.cell.pickable { cursor: pointer; }
.cell.picked { background: var(--ink); }
.cell.picked .n, .cell.picked .d { color: var(--signal); }
.cell.reminded::after { content: ""; position: absolute; top: 9%; right: 9%; width: 16cqi; height: 16cqi; min-width: 5px; min-height: 5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 1px var(--ink); }
@media (max-width: 820px) { .hero-in { grid-template-columns: 1fr; gap: 28px; } .hero { padding: 32px 16px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* Utilities replacing inline styles (the site runs under a strict Content-Security-Policy) */
.linkbtn.on-light { color: var(--ink); font-size: 13px; }
.linkbtn.muted { color: var(--grey); font-size: 12px; }
.contact { font-size: 14px; color: #9a9a9a; }
.contact a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal a { color: var(--ink); }
.count { color: var(--signal); }

/* Standalone message pages (confirm, unsubscribe, errors) */
.page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.page-body { max-width: 640px; padding: 56px 20px; margin: 0 auto; width: 100%; }
.page-body h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1; letter-spacing: -0.04em; margin: 0 0 18px; font-weight: 600; text-wrap: balance; }
.page-body h1 em { font-style: normal; background: var(--signal); padding: 0 .08em; }
.page-body p { font-size: 16px; line-height: 1.55; margin: 0 0 14px; max-width: 60ch; }
.page-body ul { font-family: var(--font-mono); font-size: 14px; line-height: 1.8; padding-left: 18px; margin: 0 0 20px; }
.page-body .submit { display: inline-block; text-decoration: none; }
.brand a { color: inherit; text-decoration: none; }
