/* unwrapped.sh's pages: concept D ("The index") on the "unwrapped.sh homepage" canvas,
   approved 2026-10-06, shared by every page. Every value comes from tokens.css (the design
   system); see its README, "Web pages". */
html, body { margin: 0; }
html { background: var(--win); }
body {
  min-height: 100vh; background: var(--win); color: var(--text2);
  font: var(--type-page);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
a:focus-visible, button:focus-visible { outline: var(--size-focus-ring) solid var(--acc-border); outline-offset: 2px; border-radius: var(--radius-xs); }
::selection { background: var(--sel); }
/* Side gutters only: sections set their own vertical rhythm. */
.col { max-width: var(--size-page-column); margin: 0 auto; padding-left: var(--space-6); padding-right: var(--space-6); box-sizing: border-box; }
.quiet { color: var(--text2); text-decoration: none; }
.quiet:hover { color: var(--text); }
.label { color: var(--text3); margin-bottom: var(--space-2_5); }
.lead { color: var(--text); }
p { margin: 0; }

header { display: flex; align-items: center; gap: var(--space-5_5); padding-top: var(--space-7); }
header .name { color: var(--text); font-weight: 600; text-decoration: none; flex: 1; }
#mode {
  height: var(--size-field); padding: 0 var(--space-2); margin-right: calc(-1 * var(--space-2));
  border: none; border-radius: var(--radius-control); background: transparent;
  color: var(--text2); font: inherit; cursor: pointer;
}
#mode:hover { background: var(--hover); color: var(--text); }
/* The toggle names the appearance it switches to; set by CSS so it's right on first paint. */
#mode::after { content: "dark"; }
[data-mode="dark"] #mode::after { content: "light"; }

.hero { padding-top: var(--space-24); display: flex; flex-direction: column; gap: var(--space-4); }
h1 { margin: 0; font: var(--type-page-title); color: var(--text); text-wrap: balance; }

section.list, form.list, section.notes { padding-top: var(--space-16); }
.app { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); padding: var(--space-3) 0; box-shadow: inset 0 -1px 0 var(--line); }
.app > a, .app > .app-name { font-weight: 600; color: var(--text); }
.app .what { flex: 1; }
.app .status { color: var(--text3); }
.app .status a { color: inherit; }
.app .status a:hover { color: var(--text); }

.notes { display: flex; flex-direction: column; gap: var(--space-7); }
h2 { margin: 0 0 var(--space-1); font: inherit; font-weight: 600; color: var(--text); }

footer { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding-top: var(--space-24); padding-bottom: var(--space-24); font: var(--type-page-small); color: var(--text3); }
footer .grow { flex: 1; }

/* The beta sign-up (beta/), approved 2026-10-10 on the "Feedback, crash reports and beta"
   canvas. Its form controls are the only ones on the site: a 28 px field and button with
   the apps' control corners, and checkboxes drawn as the apps draw theirs. */
.choice { cursor: pointer; }
.choice .name-of { color: var(--text); font-weight: 600; }
.choice .what { flex: 1 1 200px; }
.choice input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: var(--size-icon-small); height: var(--size-icon-small); box-sizing: border-box;
  border-radius: var(--radius-tile); border: 1px solid var(--line2); background: var(--control);
  display: inline-grid; place-items: center; cursor: pointer;
  /* On the text's baseline, then down to sit level with the name. */
  transform: translateY(calc(var(--space-1) / 2));
}
.choice input:checked { background: var(--acc-fill); border-color: transparent; }
/* The tick: two sides of a box, turned. */
.choice input:checked::after {
  content: ""; width: 3px; height: 6px; margin-top: -2px;
  border: solid var(--onacc); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.choice input:focus-visible { outline: none; box-shadow: 0 0 0 var(--size-focus-ring) var(--acc-border); }
.join { padding-top: var(--space-7); display: flex; flex-direction: column; gap: var(--space-2); }
.join label { color: var(--text); }
.join .row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.join input {
  flex: 1 1 240px; min-width: 0; height: var(--size-row); box-sizing: border-box;
  padding: 0 var(--space-2); border-radius: var(--radius-control); border: 1px solid var(--line2);
  background: var(--control); color: var(--text); font: inherit; outline: none;
}
.join input::placeholder { color: var(--text3); }
.join input:focus { box-shadow: 0 0 0 var(--size-focus-ring) var(--acc-border); }
.join input[aria-invalid="true"] { border-color: var(--danger); }
.join button {
  height: var(--size-row); padding: 0 var(--space-4); border: none; border-radius: var(--radius-control);
  background: var(--acc-fill); color: var(--onacc); font: inherit; font-weight: 600; cursor: pointer;
}
.join button:active { opacity: .7; }
.busy .join button { opacity: .5; pointer-events: none; }
.error { color: var(--danger); }
