/* jpalmer.xyz landing page. Tokens match docs/DESIGN-SYSTEM.md (2026-11-07). Light only, no scripts. */

@font-face {
  font-family: Geist;
  src: url("./fonts/geist-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("./fonts/space-grotesk-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #fdfdfc;
  --ink: #282828;
  --muted: #676767;
  --accent: #214585;
  --accent-line: rgb(33 69 133 / 0.3);
  --selection: #dce8ff;
}

* { box-sizing: border-box; }

html {
  background: var(--background);
  color: var(--ink);
  font: 400 17px / 1.6 Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--selection); }

main,
footer {
  width: 100%;
  max-width: 648px; /* 600px column + 24px gutters */
  margin-inline: auto;
  padding-inline: 24px;
}

main {
  flex: 1;
  padding-top: clamp(64px, 18vh, 160px);
  padding-bottom: 56px;
}

h1 {
  margin: 0 0 12px;
  font: 700 36px / 1.15 "Space Grotesk", Geist, system-ui, sans-serif;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.lede {
  margin: 0;
  text-wrap: pretty;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

a {
  display: inline-block;
  padding-block: 4px; /* taller tap target without moving the text */
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.15s ease;
}

a:hover { text-decoration-color: currentColor; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}
