/* tannerstevens.me — plain CSS, no build step.
   Light/dark follow the OS. Print styles at the bottom produce a clean résumé. */

:root {
  --bg: #fbfaf7;
  --fg: #1f2328;
  --muted: #6b7280;
  --rule: #e3e1da;
  --accent: #245c8a;
  --accent-ink: #1a4566;
  --measure: 46rem;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --fg: #e6e4de;
    --muted: #9aa0a8;
    --rule: #2c3036;
    --accent: #7db3dd;
    --accent-ink: #a6cbe9;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2.5rem) 3rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.muted { color: var(--muted); }
.sep { color: var(--muted); margin: 0 0.3em; }

/* ---- Masthead ---- */

.masthead { margin-bottom: 1.75rem; }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.35rem;
}

.role {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Summary ---- */

.summary p {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 2.25rem;
}

/* ---- Sections ---- */

section { margin-bottom: 2.5rem; }

h2 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

/* ---- Experience ---- */

/* space between consecutive jobs */
.job + .job { margin-top: 2rem; }

.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0;
}

.dates {
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Title stack: a decade of promotion in one glance */
.titles {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0 0 0 0.9rem;
  border-left: 2px solid var(--rule);
  font-size: 0.95rem;
}
.titles li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  padding: 0.18rem 0;
}
.titles .t { font-weight: 600; }
.titles .when {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.titles .where {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.875rem;
}
@media (min-width: 40rem) {
  .titles li { grid-template-columns: max-content minmax(0, 1fr) auto; }
  .titles .t { white-space: nowrap; }
  .titles .where { grid-column: auto; text-align: right; font-size: 0.95rem; }
  .titles .when { order: 3; min-width: 6.5rem; }
}

/* ---- Bullets ---- */

.bullets {
  margin: 0;
  padding-left: 1.2rem;
}
.bullets li {
  margin: 0 0 0.85rem;
  padding-left: 0.25rem;
}
.bullets li::marker { color: var(--accent); }
.bullets strong { font-weight: 600; }

/* ---- Skills ---- */

.skills {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.4rem 1.25rem;
}
.skills > div { display: contents; }
.skills dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding-top: 0.1rem;
}
.skills dd { margin: 0; }
@media (max-width: 30rem) {
  .skills { grid-template-columns: 1fr; gap: 0; }
  .skills dt { margin-top: 0.6rem; }
}

/* ---- Education ---- */

.edu { margin: 0; }

/* ---- Print: Ctrl/Cmd+P gives a clean résumé ---- */

@media print {
  :root {
    --bg: #fff;
    --fg: #000;
    --muted: #444;
    --rule: #bbb;
    --accent: #000;
    --accent-ink: #000;
  }
  @page { margin: 0.5in; }
  body { font-size: 9.6pt; line-height: 1.28; }
  .page { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
  .contact li:has(a[href$=".pdf"]) { display: none; }
  h1 { font-size: 22pt; }
  .summary p { font-size: 11pt; margin-bottom: 0.8rem; }
  section { margin-bottom: 0.8rem; }
  .job + .job { margin-top: 1rem; }
  h2 { margin-bottom: 0.5rem; break-after: avoid; }
  .job-head, .titles { break-inside: avoid; }
  .titles { margin-bottom: 0.6rem; }
  .bullets li { margin-bottom: 0.22rem; break-inside: avoid; }
  .skills { gap: 0.15rem 1rem; }
}
