/* designscroll.app
 *
 * The app's own register, not a new one: src/theme.ts `ig`. True black ground,
 * white SF Pro, the 0.7 white secondary line, the 0.10 white hairline. No mono,
 * the app dropped it on 2026-09-26.
 *
 * DESIGN.md material model: the ground is achromatic and the colour arrives on
 * one object. Here that object is the app icon, the holographic bookmark. Nothing
 * else on the page carries a hue. The only rounded corners are Apple's: the icon
 * mask and the badge.
 *
 * Contrast measured on #000000.
 */
:root {
  color-scheme: dark;
  --ground: #000000;
  --text: #ffffff;                     /* 21:1 */
  --dim: rgba(255, 255, 255, 0.7);     /* ig.color.textDim, #b3b3b3, 10.4:1 */
  --ghost: rgba(255, 255, 255, 0.42);  /* #6b6b6b, 3.9:1. Display size only, where 3:1 is the AA floor */
  --hairline: rgba(255, 255, 255, 0.1);/* theme.ts color.hairline */
  --gutter: 16px;                      /* theme.ts space.edgeInset */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) env(safe-area-inset-bottom) max(var(--gutter), env(safe-area-inset-left));
}

.page { max-width: 1240px; margin: 0 auto; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ghost); transition: text-decoration-color 160ms ease, color 160ms ease; }
@media (hover: hover) { a:hover { text-decoration-color: var(--text); } }
a:focus-visible { outline: none; transition: none; border-radius: 2px; box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--text); }

/* Top bar: the wordmark and one link. Same 44pt row the app uses for its bars. */
.bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding-top: max(20px, env(safe-area-inset-top));
}
.bar a { text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.bar .mark { font-size: 17px; }
.bar nav a { color: var(--dim); }
@media (hover: hover) { .bar nav a:hover { color: var(--text); } }

/* Home: text on the left, the icon hanging off the right edge of the column. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "icon" "words";
  gap: 40px;
  padding: 56px 0 72px;
}
.hero .icon { grid-area: icon; width: 132px; height: 132px; display: block; }
.hero .words { grid-area: words; }

h1 {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 108px);
  line-height: 1;
  font-weight: 700;
  text-wrap: balance;
}
h1 .ghost { color: var(--ghost); display: block; }

.lead { margin: 32px 0 0; max-width: 30em; font-size: 20px; line-height: 1.45; color: var(--dim); text-wrap: pretty; }

.get { display: flex; align-items: center; gap: 16px; margin-top: 32px; color: var(--dim); font-size: 15px; }
.get a { display: block; line-height: 0; border-radius: 8px; text-decoration: none; }
.get img { height: 48px; width: auto; display: block; }

.prose { border-top: 1px solid var(--hairline); padding: 40px 0 64px; max-width: 34em; }
.prose p { margin: 0 0 1.1em; color: var(--dim); text-wrap: pretty; }
.prose p strong { color: var(--text); font-weight: 600; }

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "words icon";
    column-gap: 64px;
    padding: 120px 0 128px;
    align-items: start;
  }
  .hero .icon { width: clamp(220px, 24vw, 320px); height: auto; margin-top: 8px; }
  .prose { margin-left: 0; padding: 56px 0 96px; }
  .prose p { font-size: 19px; }
}

/* Support */
.doc { padding: 56px 0 72px; max-width: 36em; }
.doc h1 { font-size: clamp(40px, 6vw, 72px); }
.doc .lead { margin-top: 24px; }
.doc h2 { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 0 0 12px; text-wrap: balance; }
.doc section { border-top: 1px solid var(--hairline); padding-top: 28px; margin-top: 40px; }
.doc p, .doc ol { margin: 0 0 1em; color: var(--dim); text-wrap: pretty; }
.doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.35em; }
.doc li::marker { color: var(--ghost); font-variant-numeric: tabular-nums; }
.doc b { color: var(--text); font-weight: 600; }
.email { color: var(--text); font-weight: 600; }
@media (min-width: 860px) { .doc { padding: 96px 0 112px; } .doc p, .doc ol { font-size: 18px; } }

.foot {
  border-top: 1px solid var(--hairline);
  padding: 24px 0 32px;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  color: var(--dim); font-size: 15px;
}
.foot a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) { .foot a:hover { color: var(--text); } }
.foot .copy { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 520px) { .foot .copy { margin-left: 0; width: 100%; } }
