/* Resume: same hand as the site. Satoshi, navy ink, one mint dot.
   Screen shows a sheet; print gives one US Letter page. */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: oklch(0.972 0.005 268);
  --sheet: oklch(1 0 0);
  --ink: oklch(0.235 0.042 268);
  --ink-2: oklch(0.4 0.03 268);
  --line: oklch(0.89 0.012 268);
  --mint: oklch(0.905 0.115 160);
  --mint-ink: oklch(0.41 0.1 160);
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.14 0.026 268);
  --sheet: oklch(0.185 0.03 268);
  --ink: oklch(0.955 0.008 268);
  --ink-2: oklch(0.8 0.02 268);
  --line: oklch(0.32 0.03 268);
  --mint-ink: oklch(0.905 0.115 160);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 450;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--mint-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--mint-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.bar {
  max-width: 8.5in;
  margin: 0 auto;
  padding: 1.25rem clamp(1.25rem, 5vw, 0.75in) 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.bar a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.bar a:hover {
  text-decoration: underline;
  text-decoration-color: var(--mint-ink);
}

.bar .pdf {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

.sheet {
  max-width: 8.5in;
  margin: 0 auto clamp(1.5rem, 6vw, 4rem);
  padding: clamp(1.5rem, 6vw, 0.7in) clamp(1.25rem, 5vw, 0.75in);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 1rem 2.5rem;
  align-items: start;
  padding-bottom: 1.4rem;
}

h1 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.028em;
}

.dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 1.5px var(--ink);
  flex: none;
}

.sum {
  margin-top: 0.8rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  max-width: 50ch;
  text-wrap: pretty;
}

.reach {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  text-align: right;
  color: var(--ink-2);
}

section {
  border-top: 1px solid var(--line);
  padding-block: 1.05rem;
}

h2 {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 0.65rem;
}

.row {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 1rem;
}

.row + .row {
  margin-top: 0.85rem;
}

.when {
  padding-top: 0.12rem;
  font-size: 0.875rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h3 span {
  margin-left: 0.4rem;
  font-weight: 450;
  font-size: 0.9375rem;
  letter-spacing: 0;
  color: var(--ink-2);
}

.row p {
  margin-top: 0.2rem;
  color: var(--ink-2);
}

.row ul {
  margin-top: 0.3rem;
  display: grid;
  gap: 0.15rem;
}

.row li {
  position: relative;
  padding-left: 1rem;
}

.row li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--mint-ink);
}

.pairs {
  display: grid;
  gap: 0.35rem;
}

.pairs div {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 1rem;
}

.pairs dt {
  font-weight: 700;
}

.pairs dd {
  color: var(--ink-2);
}

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 2.5rem;
  padding-bottom: 0;
}

.two p {
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .head {
    grid-template-columns: minmax(0, 1fr);
  }

  .reach {
    text-align: left;
    padding-top: 0;
    gap: 0;
  }

  .reach a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  h1 {
    font-size: 2.1rem;
  }

  .row,
  .pairs div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }

  .two {
    grid-template-columns: minmax(0, 1fr);
  }

  h3 span {
    display: block;
    margin-left: 0;
  }
}

@page {
  size: letter;
  margin: 0;
}

@media print {
  :root,
  :root[data-theme="dark"],
  :root:not([data-theme="light"]) {
    color-scheme: light;
    --bg: #fff;
    --sheet: #fff;
    --ink: #131b2e;
    --ink-2: #414860;
    --line: #dcdfe7;
    --mint: #a0f4c5;
    --mint-ink: #1c7a53;
  }

  html {
    font-size: 10.25pt;
  }

  body {
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .bar {
    display: none;
  }

  .sheet {
    max-width: none;
    width: 8.5in;
    margin: 0;
    padding: 0.65in 0.8in 0;
    border: 0;
    border-radius: 0;
  }

  a {
    text-decoration: none;
  }

  .reach a,
  .pairs a {
    text-decoration: underline;
    text-decoration-color: var(--mint-ink);
  }

  .row,
  .pairs div {
    break-inside: avoid;
  }
}
