/* The app's one ground and three fonts, from /tokens.css (written by design/tokens/build.py; change tokens.json, not it): New York for the person's words and the title, SF for the rest. */

:root {
  color-scheme: dark;
  --ground: var(--color-ground);
  --ink: var(--color-ink);
  --ink-soft: var(--color-ink-soft);
  --muted: var(--color-muted);
  --hairline: var(--color-glass-border);
  --ui: var(--font-ui);
  --words: var(--font-words);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink-soft);
  font: 400 17px/1.55 var(--ui); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(120% 60% at 0% 0%, rgba(120,72,52,0.16), transparent 60%);
  background-repeat: no-repeat; min-height: 100vh;
}
main { max-width: 640px; margin: 0 auto; padding: 56px 16px 40px; }
/* the title's face, style and weight come from the tokens; the size is the site's own */
h1 { font: var(--type-title-hero); font-size: 40px; color: var(--ink); margin: 0 0 16px; letter-spacing: var(--tracking-title-hero); }
h2 { font: 600 19px/1.3 var(--ui); color: var(--ink); margin: 40px 0 8px; }
h3 { font: 600 17px/1.3 var(--ui); color: var(--ink); margin: 24px 0 6px; }
p, li { margin: 0 0 12px; }
ul { padding-left: 20px; margin: 0 0 12px; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(242,237,228,0.35); }
a:hover { text-decoration-color: var(--ink); }
.meta { color: var(--muted); font-size: 15px; }
.words { font: 400 22px/1.4 var(--words); color: var(--ink); margin: 0 0 20px; }
.icon { width: 64px; height: 64px; border-radius: 15px; display: block; margin-bottom: 32px; }
footer { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); margin-right: 20px; }
@media (min-width: 700px) { main { padding-top: 96px; } h1 { font-size: 48px; } }

/* ------------------------------------------------------- guides: reading pages that answer a search */
.home { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 48px; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.home img { border-radius: 7px; }
.guide h2 { margin-top: 48px; }
/* the lines people bring are a person's words: New York, each on its own thread */
.lines { list-style: none; padding: 0; margin: 0 0 12px; }
.lines li { font: 400 19px/1.4 var(--words); color: var(--ink); padding-left: 16px; border-left: 2px solid rgba(242,237,228,0.16); margin-bottom: 14px; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 14px; }
.steps strong { color: var(--ink); }
.sheet { margin: 32px 0 16px; padding: 24px 24px 12px; border-radius: 20px; background: var(--color-glass); border: 1px solid var(--hairline); }
.sheet__title { font: var(--type-title-x-l); font-size: 28px; line-height: 1.2; letter-spacing: var(--tracking-title-x-l); color: var(--ink); margin-bottom: 20px; }
.sheet ol { padding-left: 22px; margin: 0; }
.sheet__line { min-height: 44px; border-bottom: 1px solid rgba(242,237,228,0.16); margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.print { display: inline-flex; align-items: center; height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--color-glass); color: var(--ink); font: 600 17px/1 var(--ui); cursor: pointer; transition: opacity 0.2s; }
.print:active { opacity: 0.6; }
@media (hover: hover) and (pointer: fine) { .print:hover { border-color: rgba(255,255,255,0.2); } }
.app { display: grid; gap: 24px; align-items: center; }
.app__screen { width: 200px; height: auto; border-radius: 26px; border: 1px solid var(--hairline); }
@media (min-width: 600px) { .app { grid-template-columns: 200px 1fr; gap: 32px; } }
/* Apple's badge exactly as Apple draws it, 48 px tall, with at least a quarter of its height clear around it */
.store { display: inline-block; line-height: 0; margin-top: 12px; }
.store img { height: 48px; width: auto; }
.about { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 15px; }
.about a { color: var(--muted); }
footer .legal { margin: 16px 0 0; font-size: 13px; line-height: 1.45; opacity: 0.75; }

/* printing a guide prints only its page to fill in */
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; }
  main > :not(.sheet), footer { display: none !important; }
  main { padding: 0; }
  .sheet { margin: 0; border: 1px solid #000; background: none; }
  .sheet__title { color: #000; }
  .sheet__line { color: #000; border-bottom-color: #000; min-height: 72px; }
}
