/* Stylesheet for cv.lyndsysimon.com — single page, print-friendly. */

:root {
  --fg: #1a1a1a;
  --bg: #ffffff;
  --muted: #5c5c5c;
  --rule: #d8d8d8;
  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8e6e3;
    --bg: #141414;
    --muted: #9b9b9b;
    --rule: #303030;
  }
}

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

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

body {
  margin: 0 auto;
  padding: 3.5rem 1.5rem 6rem;
  max-width: var(--measure);
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; font-weight: 600; }

h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

/* Contact line sits immediately below the name. */
h1 + p {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

h2 {
  margin: 2.75rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h3 {
  margin: 1.9rem 0 0.15rem;
  font-size: 1.05rem;
}

/* Date / location line directly beneath a role heading. */
h3 + p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

p { margin: 0.6rem 0; }

ul {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
}

li { margin: 0.35rem 0; }

li::marker { color: var(--muted); }

strong { font-weight: 600; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 2px;
}

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

@media (max-width: 40rem) {
  body { padding: 2.25rem 1.15rem 3.5rem; font-size: 15px; }
  h1 { font-size: 1.65rem; }
  h2 { margin-top: 2.25rem; }
}

/* Print: what a PDF export should look like. */
@media print {
  :root {
    --fg: #000;
    --bg: #fff;
    --muted: #333;
    --rule: #999;
  }

  body {
    max-width: none;
    padding: 0;
    font-size: 10.5pt;
    line-height: 1.4;
  }

  h1 + p { margin-bottom: 1.2rem; }
  h2 { margin-top: 1.4rem; padding-top: 0.6rem; }
  h3 { break-after: avoid; page-break-after: avoid; }
  h3 + p { break-after: avoid; page-break-after: avoid; }
  li, p { break-inside: avoid; }
  a { text-decoration: none; }
  ul { padding-left: 1rem; }

  @page { margin: 1.5cm 1.7cm; }
}