/* Cursors landing page. Swiss: warm paper, near-black ink, a twelve column grid, hairline cells and one accent that
   follows the cursor you are wearing (--tint, set by js/cursor.js). Bricolage Grotesque for words, Instrument
   Serif italic for the answer, Martian Mono for labels. */
:root {
  --paper: #EFEDE7;
  --lift: #F8F7F3;
  --ink: #0E0E0E;
  --body: #2E2D29;
  --muted: #6A675E;
  --rule: #CDC9BF;
  --tint: #FF3B1F;
  --sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Martian Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--tint); color: #FFFFFF; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--tint); }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 2px; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Wearing a pack: the arrow everywhere, the hand on anything clickable, the beam in text fields. The values
   are url(…) hotspot pairs that js/cursor.js swaps frame by frame for animated packs. */
body.wearing, body.wearing * { cursor: var(--cur-arrow, auto); }
body.wearing a, body.wearing a *, body.wearing button, body.wearing button *, body.wearing label, body.wearing summary { cursor: var(--cur-link, pointer); }
body.wearing input, body.wearing textarea { cursor: var(--cur-text, text); }

/* ── the masthead: four cells on the grid, not a nav ── */
.masthead { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; align-items: center; padding-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--body); }
.masthead::after { content: ''; grid-column: 1 / -1; height: 1px; margin-top: 16px; background: var(--ink); }
.masthead > a { justify-self: end; }
.mark { display: inline-flex; align-items: center; gap: 8px; }
.mark b { font-family: var(--sans); font-size: 18px; letter-spacing: -0.03em; color: var(--ink); }
@media (max-width: 760px) {
  .masthead { grid-template-columns: minmax(0, 1fr) auto; }
  .masthead > span:not(.mark) { display: none; }
}

/* ── the top ── */
.hero h1 { margin: 76px 0 0; font-size: clamp(48px, 8.9vw, 128px); line-height: 0.9; letter-spacing: -0.055em; font-weight: 800; }
.hero h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; }
.hero-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 64px; padding-top: 22px; border-top: 2px solid var(--ink); }
.count { grid-column: 1 / span 8; }
.count b { display: block; font-size: clamp(104px, 25vw, 360px); font-weight: 800; letter-spacing: -0.075em; line-height: 0.78; }
/* clear of the comma, which hangs below the line */
.count span { display: block; margin-top: clamp(30px, 3.6vw, 56px); font-family: var(--mono); font-size: 13px; color: var(--body); }
.pitch { grid-column: 9 / span 4; align-self: end; }
.pitch p { margin: 0; font-size: 20px; line-height: 1.45; color: var(--body); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 900px) {
  .count, .pitch { grid-column: 1 / -1; }
  .pitch { margin-top: 20px; }
}

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; font-weight: 700; font-size: 17px; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.button.solid { background: var(--ink); color: var(--paper); }
.button.solid:hover { background: var(--tint); color: #FFFFFF; }
.button.line { border: 2px solid var(--ink); }
.button.line:hover { border-color: var(--tint); }

/* ── sections: a numbered head on the grid ── */
.section { margin-top: 128px; }
@media (max-width: 640px) { .section { margin-top: 96px; } }
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px 24px; padding-top: 16px; border-top: 2px solid var(--ink); }
.idx { grid-column: 1; font-family: var(--mono); font-size: 13px; padding-top: 6px; }
.head h2 { grid-column: 2 / span 7; margin: 0; font-size: clamp(40px, 5.6vw, 84px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 800; }
.head p { grid-column: 9 / span 4; align-self: end; margin: 0; font-size: 17px; line-height: 1.45; color: var(--body); }
@media (max-width: 900px) {
  .idx, .head h2, .head p { grid-column: 1 / -1; }
  .head p { margin-top: 8px; }
}

/* ── the packs: one hairline grid, every cell the same ── */
.touch-note { display: none; margin: 28px 0 0; padding: 16px 18px; background: var(--ink); color: var(--paper); font-size: 16px; }
@media (hover: none) { .touch-note { display: block; } }

.packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media (max-width: 1100px) { .packs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 8px; min-height: 236px; padding: 14px 16px 16px; border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); font: inherit; text-align: left; transition: background-color .15s; }
.cell:hover { background: var(--lift); }
.cell[aria-pressed="true"] { background: #FFFFFF; box-shadow: inset 0 0 0 3px var(--tint); }
.cell .top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.cell[aria-pressed="true"] .top { color: var(--ink); }
.cell .face { display: grid; place-items: center; min-height: 120px; }
.cell .face img { display: block; width: 96px; height: 96px; }
.cell .face img.pixelated { image-rendering: pixelated; }
.cell .name { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.cell .by { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .cell { min-height: 200px; padding: 12px; } .cell .name { font-size: 15px; } }

/* spots to try the three roles on, continuing the grid */
.try { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--rule); }
@media (max-width: 760px) { .try { grid-template-columns: 1fr; } }
.zone { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 132px; padding: 14px 16px 18px; border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); font: inherit; text-align: left; }
.zone .label { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.zone b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
button.zone b { text-decoration: underline; text-decoration-color: var(--tint); text-decoration-thickness: 3px; text-underline-offset: 6px; }
button.zone:hover { background: var(--lift); }
.zone input { width: 100%; padding: 4px 0 6px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.zone input::placeholder { color: var(--ink); opacity: 1; }
.zone input:focus { outline: 0; border-bottom-color: var(--tint); }
.zone input:focus::placeholder { color: var(--muted); }

/* the bar that says what you are wearing */
.wearing-pill { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: none; align-items: center; gap: 16px; padding: 8px 8px 8px 18px; background: var(--ink); color: var(--paper); font-size: 15px; white-space: nowrap; box-shadow: 0 0 0 3px var(--tint), 0 12px 30px rgba(0,0,0,.22); z-index: 10; max-width: calc(100% - 32px); }
body.wearing .wearing-pill { display: flex; }
.wearing-pill button { min-height: 40px; padding: 0 16px; border: 0; background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; }
.wearing-pill button:hover { background: var(--tint); color: #FFFFFF; }
@media (hover: none) { body.wearing .wearing-pill { display: none; } }

/* ── the app, as a spec sheet ── */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media (max-width: 760px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.specs div { min-height: 150px; padding: 18px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.specs dt { font-size: clamp(26px, 3.2vw, 46px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; }
.specs dt.flag { font-family: var(--mono); font-weight: 500; font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -0.02em; }
.specs dd { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .specs div { min-height: 124px; padding: 14px 12px; } .specs dt { font-size: 24px; } .specs dd { font-size: 11px; } }

/* ── download ── */
.download .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-top: 22px; border-top: 2px solid var(--ink); }
.download h2 { grid-column: 1 / span 8; margin: 0; font-size: clamp(56px, 9vw, 140px); line-height: 0.86; letter-spacing: -0.06em; font-weight: 800; }
.get { grid-column: 9 / span 4; align-self: end; }
.get .button { width: 100%; min-height: 64px; font-size: 19px; }
.get p { margin: 16px 0 0; font-family: var(--mono); font-size: 12px; color: var(--body); }
.get .note { margin-top: 8px; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 900px) { .download h2, .get { grid-column: 1 / -1; } }

/* ── credits ── */
.credits .head h2 { font-size: clamp(32px, 3.6vw, 48px); }
.credits .head p { font-size: 14px; }
.credits .scroll { margin-top: 32px; overflow-x: auto; }
.credits table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.credits th, .credits td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.credits thead th { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); border-bottom-color: var(--ink); }
.credits td:first-child { font-family: var(--mono); font-size: 11px; color: var(--muted); width: 48px; }
.credits td:nth-child(2) { font-weight: 700; }

.foot { margin-top: 96px; padding-bottom: 104px; font-size: 14px; }
.foot .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; padding-top: 16px; border-top: 1px solid var(--ink); }
.foot .row > :last-child { justify-self: end; color: var(--muted); }
@media (max-width: 640px) { .foot .row { grid-template-columns: 1fr; } .foot .row > :last-child { justify-self: start; } }
