/* ============================================================
   Design tokens — house frontend style (OKLCH, 4px grid)
   Every color in the site flows through these variables.
   ============================================================ */
:root {
  --bg: oklch(0.98 0.005 250);
  --surface: oklch(0.95 0.008 250);
  --text: oklch(0.25 0.01 250);
  --muted: oklch(0.55 0.01 250);
  --border: oklch(0.88 0.008 250);
  --accent: oklch(0.62 0.17 255);
  --accent-fg: oklch(0.98 0.005 250);
  /* derived tones, still single-hue */
  --accent-deep: oklch(0.5 0.17 255);
  --accent-soft: oklch(0.94 0.03 255);
  --ink-strong: oklch(0.18 0.01 250);
}

html {
  scroll-padding-top: 96px;
}

body {
  background-color: var(--bg);
  color: var(--text);
}

/* Graph-paper ambient — the data-grid ground behind the hero */
.grid-paper {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.6), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.6), transparent 85%);
}

/* Record card — key:value rows, the site's signature component */
.record-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.record-row:last-child {
  border-bottom: none;
}

/* Accent underline used to mark key words in display headings */
.mark-accent {
  box-shadow: inset 0 -0.16em 0 0 var(--accent-soft);
}

/* Focus visibility — keyboard users always see where they are */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Form fields */
.field {
  width: 100%;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
.field::placeholder {
  color: var(--muted);
}
.field:hover {
  border-color: var(--muted);
}
.field:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent);
  color: var(--accent-fg);
  border-radius: 4px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 150ms ease;
}
.btn-primary:hover {
  background-color: var(--accent-deep);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 16px;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.btn-secondary:hover {
  border-color: var(--muted);
  background-color: var(--surface);
}

/* Resume timeline */
.timeline {
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  outline: 4px solid var(--accent-soft);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
