/* What the home page and the résumé share: the ground, the type's
   defaults, the page's width, and the small things both draw — a section
   label, an arrow, the link past the nav. All colour, type and spacing
   values come from tokens.css. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* A link to a place in the page glides there — unless the visitor has
   asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-16);        /* phone body; 18 from 900 up */
  line-height: var(--lh-body);
  font-weight: 400;
  font-synthesis: none;           /* only the shipped weights — no fake bolding */
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The page: 1440 at most, the gutter in from each side (72 at that width). */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  /* … and clear of a phone's own edges, when it is held sideways */
  padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
}

/* A section label: 14 / 20 Medium, +5 %, capitals, rust. The words are
   written in sentence case and set in capitals here, so a screen reader
   reads words; a platform name inside keeps its own capitals (dom.js). */
.label {
  margin: 0;
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
}
.as-is { text-transform: none; }

/* The arrow that follows a link out or onward: Inter's own glyph. It never
   wraps away from the word before it. */
.arrow { display: inline-block; white-space: nowrap; }

/* Past the nav, for the keyboard: out of sight until it has the focus. */
.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 2;
  padding: var(--space-8) var(--space-16);
  background: var(--text);
  color: var(--canvas);
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: var(--lh-meta);
}
.skip:focus { top: var(--space-8); }

@media (min-width: 900px) {
  body { font-size: var(--fs-18); }
}
