@font-face { font-family: 'Geist'; src: url(../assets/fonts/Geist-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(../assets/fonts/GeistMono-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Pixel'; src: url(../assets/fonts/GeistPixel-Square.woff2) format('woff2'); font-display: swap; }

:root {
  --black: #000;
  --ink: #0e0e11;
  --line: #26262e;
  --ctl: #5c5c68;      /* control borders, 3:1 on black */
  --text: #ededef;
  --white: #fff;
  --muted: #ababba;
  --dim: #8d8d9b;      /* 6.4:1 on black */
  --purple: #aa67fb;
  --blue: #3c91ff;
  --day: var(--purple);
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pixel: 'Geist Pixel', 'Geist Mono', ui-monospace, monospace;
  --pad: clamp(16px, 2.4vw, 32px);
  --gap: 24px;
  --band-h: 132px;
  --edge-h: 88px;
  --edge-w: 864px;
  --arw: 0.4603;       /* wallpaper width / height, set from JS */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body {
  margin: 0; background: var(--black); color: var(--text); position: relative; overflow-x: hidden;
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--white); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--white); text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--black); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.label { margin: 0; font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.link {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer; color: var(--white);
  font: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.link:hover { text-decoration-thickness: 2px; }
.copied { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
.copied:empty { display: none; }

.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 48px; padding: 0 20px; border: 1px solid var(--white); border-radius: 0; cursor: pointer;
  font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; text-decoration: none;
  background: transparent; color: var(--white);
}
.btn.primary { background: var(--white); color: var(--black); }
.btn:hover, .btn.primary:hover { background: var(--black); color: var(--white); border-color: var(--white); }
.btn[aria-disabled="true"] { opacity: .4; cursor: progress; }

/* ---------- photo band with the pixel staircase ---------- */
.band { position: absolute; top: 0; left: 0; right: 0; height: var(--band-h); background: var(--purple); overflow: hidden; z-index: 0; }
.band img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  filter: grayscale(1) contrast(1.35) brightness(1.08); mix-blend-mode: multiply;
}
.band::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--edge-h);
  background: url(../assets/img/pixel-edge-black.svg) right bottom / max(var(--edge-w), 100%) 100% no-repeat;
}

/* ---------- top bar: a black box on the photo, like the brand nav ---------- */
.top {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: max(12px, env(safe-area-inset-top)) max(var(--pad), calc((100% - 1440px) / 2 + var(--pad))) 0; padding: 0 6px 0 14px; height: 48px; background: var(--black);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 72px; height: auto; flex: none; }
.brand span { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--white); padding-top: 1px; white-space: nowrap; }
.top-links { display: flex; align-items: center; gap: 16px; }
.agenda-link { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--muted); white-space: nowrap; }
.agenda-link:hover { color: var(--white); }
.tickets {
  display: flex; align-items: center; gap: .5em; height: 36px; padding: 0 12px; background: var(--white); color: var(--black); text-decoration: none;
  font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.tickets:hover { background: var(--black); color: var(--white); outline: 1px solid var(--white); outline-offset: -1px; }

/* ---------- page ---------- */
.page { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad) max(48px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.intro { padding-top: calc(var(--band-h) - 76px); }
.facts {
  margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 0;
  font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--white);
}
.facts span { white-space: nowrap; }
.facts span + span::before { content: '·'; margin: 0 .6em; color: var(--dim); }
h1 {
  margin: 0; color: var(--white); font-weight: 400; letter-spacing: -.055em; line-height: .94;
  font-size: clamp(40px, 11.2vw, 56px);
}
.ticket-line { margin: 14px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.code {
  appearance: none; display: inline-block; margin: 0 .15em; padding: 3px 6px 2px; border: 1px dashed var(--ctl); border-radius: 0; background: none; cursor: copy;
  font: 600 12px/1 var(--mono); letter-spacing: .06em; color: var(--white);
}
.code:hover { border-style: solid; border-color: var(--white); }
.ticket-line .copied { margin-left: .4em; }

/* ---------- the ask ---------- */
.ask { margin-top: 24px; display: grid; gap: 8px; }
.ask-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
#q {
  appearance: none; -webkit-appearance: none; min-width: 0; height: 52px; padding: 0 14px; border-radius: 0;
  background: var(--ink); border: 1px solid var(--ctl); border-right: 0; color: var(--white);
  font: 400 17px/1 var(--sans); letter-spacing: -.01em;
}
#q::placeholder { color: var(--dim); }
#q::-webkit-search-cancel-button { -webkit-appearance: none; }
#q:focus { outline: 1px solid var(--white); outline-offset: -1px; border-color: var(--white); }
#go { height: 52px; padding: 0 16px; }

.ideas {
  display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 2px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); scroll-padding-inline: var(--pad);
}
.ideas::-webkit-scrollbar { display: none; }
.idea {
  flex: none; scroll-snap-align: start; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--muted); cursor: pointer;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.idea:hover { border-color: var(--ctl); color: var(--white); }
.idea[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--black); }

/* ---------- status ---------- */
.status { margin-top: 22px; scroll-margin-top: 6px; }
.summary { margin: 0; color: var(--text); font-size: 16px; line-height: 1.4; letter-spacing: -.005em; text-wrap: balance; }
.summary .n { font-variant-numeric: tabular-nums; }
.notice { margin: 6px 0 0; font: 500 11px/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); overflow-wrap: anywhere; }
.status-links { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.status-links .link { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- day heads (one component for tabs, wallpaper captions and list heads) ---------- */
.dayhead {
  --dh-size: 30px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'n count' 'date date';
  align-items: baseline; row-gap: 4px; padding-bottom: 10px; border-bottom: 2px solid var(--day); text-align: left;
}
.dh-n { grid-area: n; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--day); }
.dh-date { grid-area: date; font: 400 var(--dh-size)/1 var(--sans); letter-spacing: -.045em; color: var(--white); }
.dh-count { grid-area: count; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dh-title { display: contents; margin: 0; font: inherit; }

/* ---------- the wallpapers ---------- */
.stage { margin-top: 24px; }
[data-day="2"] { --day: var(--blue); }
.day-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab {
  appearance: none; border: 0; border-radius: 0; background: transparent; cursor: pointer; padding: 10px 12px 12px; color: var(--muted);
  --dh-size: 28px; border-bottom: 0;
}
.tab .dh-n, .tab .dh-date, .tab .dh-count { color: inherit; }
.tab[aria-pressed="true"] { background: var(--day); color: var(--black); }
.tab[aria-pressed="false"]:hover { color: var(--white); }

.walls {
  --wall-w: min(76vw, calc((100svh - 176px) * var(--arw)), 360px);
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding-inline: var(--pad);
}
.walls::-webkit-scrollbar { display: none; }
.wall { margin: 0; flex: 0 0 var(--wall-w); scroll-snap-align: start; display: grid; gap: 10px; min-width: 0; align-content: start; }
.wall .dayhead { display: none; }
.phone {
  position: relative; aspect-ratio: var(--ar, 1320 / 2868); overflow: hidden; background: var(--ink);
  border-radius: 12% / 5.5%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); container-type: inline-size;
}
.phone img { width: 100%; height: 100%; object-fit: cover; -webkit-touch-callout: default; user-select: auto; }
.lock-ui {
  position: absolute; left: 0; right: 0; top: 5.4%; display: grid; justify-items: center; pointer-events: none;
  color: rgba(255, 255, 255, .94); text-align: center;
}
.lock-date { font: 600 4.6cqw/1 var(--sans); letter-spacing: -.005em; }
.lock-time { font: 600 22cqw/1 var(--sans); letter-spacing: -.035em; margin-top: 1.2cqw; }
.phone.loading::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 25%; background: var(--day);
  animation: step 1.2s steps(4, end) infinite;
}
@keyframes step { from { transform: translateX(0); } to { transform: translateX(400%); } }
.phone.failed img { opacity: .25; }
.wall-error {
  position: absolute; left: 8%; right: 8%; bottom: 16%; margin: 0; padding: 10px; background: var(--black); border: 1px solid var(--ctl);
  font: 500 11px/1.4 var(--mono); letter-spacing: .04em; color: var(--white);
}
.save { width: 100%; }
.save-day { display: none; }
.tip { margin: 14px 0 0; max-width: 46ch; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ---------- phone size + QR ---------- */
.fit { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-start; }
.fit-line { margin: 0; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fit-line .link { text-transform: uppercase; letter-spacing: .06em; }
.fit-pick { display: grid; gap: 8px; flex: 1 1 260px; min-width: 0; max-width: 360px; }
select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 48px; padding: 0 40px 0 14px; border-radius: 0; cursor: pointer;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23ababba'/%3E%3C/svg%3E") right 16px center no-repeat;
  border: 1px solid var(--ctl); color: var(--white); font: 400 16px/1 var(--sans);
}
select:focus { outline: 1px solid var(--white); outline-offset: -1px; border-color: var(--white); }
.custom-size { display: flex; align-items: center; gap: 8px; }
.custom-size input {
  width: 92px; height: 44px; padding: 0 12px; border-radius: 0; border: 1px solid var(--ctl); background: var(--ink);
  font: 500 16px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--white);
}
.custom-size input::placeholder { color: var(--dim); }
.custom-size input:focus { outline: 1px solid var(--white); outline-offset: -1px; }
.custom-size input[aria-invalid="true"] { border-color: var(--white); border-style: dashed; }
.custom-size .unit { font: 500 11px/1 var(--mono); color: var(--muted); }
.fit-size, .size-error { margin: 0; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.fit-size { color: var(--muted); }
.size-error { color: var(--white); text-transform: none; letter-spacing: .02em; }
.size-error:empty { display: none; }
.handoff { display: flex; gap: 14px; align-items: center; flex: 0 1 280px; }
.qr { flex: none; width: 96px; height: 96px; background: #fff; padding: 4px; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr.too-long { display: none; }
.handoff p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---------- picks lists ---------- */
.lists { margin-top: 36px; }
.day-lists { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px var(--gap); }
.daylist { min-width: 0; }
.daylist .dayhead { --dh-size: 30px; }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 3.1em minmax(0, 1fr) 32px; column-gap: 12px; align-items: start;
  padding: 9px 0 9px 10px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px;
}
.row .t { font: 500 13px/22px var(--mono); color: var(--day); font-variant-numeric: tabular-nums; }
.row .fl {
  width: 16px; height: 16px; display: inline-grid; place-items: center; border: 1px solid var(--ctl); padding-top: 1px;
  font: 600 9.5px/1 var(--mono); letter-spacing: 0; color: var(--muted);
}
.row .b { min-width: 0; }
.row .ttl {
  appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; display: block; width: 100%;
  font: 400 16px/22px var(--sans); letter-spacing: -.012em; color: var(--white); text-wrap: balance;
}
.row .ttl:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.row .sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin-top: 3px;
  font: 500 10px/1.35 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--dim);
}
.tag { display: inline-block; padding: 2px 5px 1px; border: 1px solid currentColor; white-space: nowrap; }
.tag.must { color: var(--day); }
.tag.mine { color: var(--day); border-style: dashed; }
.tag.clash { color: var(--white); }
.tag.added { color: var(--muted); }
.row.must { box-shadow: inset 2px 0 0 var(--day); }
.row .detail { margin: 8px 0 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.row .detail .who { color: var(--text); }
.nw { white-space: nowrap; }
.row .detail .where { display: block; font: 500 10px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.sq {
  width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 0;
  border: 1px solid var(--ctl); background: transparent; color: var(--muted); cursor: pointer; font: 400 18px/1 var(--sans);
  margin-top: -5px;
}
.sq:hover { border-color: var(--white); color: var(--white); }
.sq.add { color: var(--white); }
.empty { padding: 14px 0; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line); }

.toomany { margin: 10px 0 0; font: 500 11px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.more { margin-top: 14px; }
.more summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 0 0 14px;
  border: 1px solid var(--ctl); font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--white);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: '+'; content: '+' / ''; margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center; border-left: 1px solid var(--ctl);
  font: 400 20px/1 var(--sans);
}
.more[open] summary::after { content: '–'; content: '–' / ''; }
.more summary:hover { border-color: var(--white); }
.more-n { color: var(--day); font-variant-numeric: tabular-nums; }
.more-body { padding-top: 10px; }
.filter {
  width: 100%; height: 44px; padding: 0 14px 0 38px; border-radius: 0; border: 1px solid var(--line); margin-bottom: 2px;
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23ababba' stroke-width='1.5'%3E%3Ccircle cx='6' cy='6' r='5'/%3E%3Cpath d='M9.6 9.6L13 13'/%3E%3C/svg%3E") 14px center no-repeat;
  font: 400 16px/1 var(--sans); color: var(--white); -webkit-appearance: none; appearance: none;
}
.filter::placeholder { font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--dim); }
.filter:focus { outline: 1px solid var(--white); outline-offset: -1px; border-color: var(--white); }
.others .ttl { font-size: 15px; }
.show-all { margin-top: 12px; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- switch automatically each morning ---------- */
.auto { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 640px; }
.auto h2 { margin: 8px 0 0; font-weight: 400; font-size: 26px; line-height: 1.05; letter-spacing: -.04em; color: var(--white); }
.steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; align-items: baseline;
  font-size: 15px; line-height: 1.45; color: var(--text);
}
.steps li::before { content: counter(step, decimal-leading-zero); font: 400 15px/1 var(--pixel); color: var(--muted); }
.steps li > * { grid-column: 2; }
.step-add { align-items: center !important; }
.step-add { row-gap: 8px; }
.step-add .btn { height: 44px; }
.file-link { justify-self: start; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.desk-only { display: none; }
.is-desktop .desk-only { display: inline; }
.is-desktop .phone-only { display: none; }
.is-android .auto, .is-android .tip { display: none; }
#shortcut-status { margin: 12px 0 0; }

@media (max-width: 479.98px) {
  .brand span { display: none; }
}
@media (max-width: 759.98px) {
  .daylist[data-active="false"] { display: none; }
  .daylist .dayhead { --dh-size: 22px; }
}

/* ---------- 760px and up: both wallpapers side by side ---------- */
@media (min-width: 760px) {
  :root { --band-h: clamp(200px, 22vw, 300px); --edge-h: 146px; --edge-w: 1440px; }
  .intro { padding-top: calc(var(--band-h) - 140px); }
  h1 { font-size: clamp(48px, 6vw, 84px); }
  .ideas { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .day-tabs { display: none; }
  .walls {
    --wall-w: min(calc(50% - 12px), calc((100svh - 230px) * var(--arw)), 340px);
    display: grid; grid-template-columns: repeat(2, var(--wall-w)); column-gap: var(--gap); row-gap: 0; overflow: visible; margin: 0; padding: 0;
  }
  .wall { gap: 0; }
  .wall .dayhead { display: grid; margin-top: 14px; --dh-size: 26px; }
  .wall .save { margin-top: 12px; }
  .save-day { display: inline; }
  .day-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 1024px and up: copy left, sticky wallpapers right ---------- */
@media (min-width: 1024px) {
  .page {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start;
    grid-template-rows: auto auto auto auto auto auto 1fr;
  }
  .page > * { grid-column: 1 / span 6; }
  .intro { grid-row: 1; }
  .ask { grid-row: 2; }
  .status { grid-row: 3; }
  .fit { grid-row: 4; margin-top: 28px; }
  .lists { grid-row: 5; }
  .auto { grid-row: 6; }
  .stage {
    grid-column: 7 / -1; grid-row: 1 / -1; align-self: start; margin-top: 18px;
    position: sticky; top: 12px;
  }
  .walls { --wall-w: min(calc(50% - 12px), calc((100svh - 200px) * var(--arw)), 340px); justify-content: end; }
  .tip { margin-left: auto; text-align: left; width: calc(2 * var(--wall-w) + var(--gap)); max-width: none; }
  .day-lists { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .lists { margin-top: 44px; }
  .fit { flex-wrap: nowrap; }
}
@media (min-width: 1024px) and (max-height: 700px) { .stage { position: static; } }
@media (min-width: 1280px) {
  .page > * { grid-column: 1 / span 6; }
  .stage { grid-column: 7 / -1; }
}

@media (hover: none) { .row .ttl:hover { text-decoration: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
