:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #4a5568;
  --line: #e2e8f0;
  --accent: #4a5568;
  --accent-soft: #f4f6f9;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0 auto;
  max-width: 40rem;
  padding: 3.5rem 1.35rem 4.5rem;
  color: var(--ink);
  background: var(--paper);
  border-top: 4px solid var(--accent);
  font-family: "Public Sans", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 420;
  line-height: 1.55;
}

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

h1 {
  font-family: Newsreader, "Iowan Old Style", Georgia, serif;
  font-size: clamp(3rem, 8vw, 4.4rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

h2 {
  margin-bottom: 0.85rem;
  padding-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h3 {
  font-size: 1.2rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
}

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

.role,
.location {
  color: var(--muted);
}

.location {
  margin-top: 0.2rem;
}

.role {
  margin-top: 0.7rem;
  font-size: 1.2rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
  margin-top: 1.15rem;
}

.links a,
.copy {
  font-size: 0.95rem;
}

.copy {
  margin: 0;
  padding: 0.35rem 0.55rem;
  color: var(--ink);
  background: var(--accent-soft);
  border: 0;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.copy[data-state="copied"] {
  background: var(--ink);
  color: var(--paper);
}

.copy-status {
  min-height: 1.2em;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.summary {
  margin-top: 1.7rem;
}

.block {
  margin-top: 2.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.position {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-top: 1.1rem;
}

.title + .position {
  margin-top: 0.5rem;
}

.position + ul {
  margin-top: 0.4rem;
}

h4 {
  margin: 0;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 560;
}

.job + .job {
  margin-top: 1.6rem;
}

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

.when,
.title {
  color: var(--muted);
}

.when {
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  white-space: nowrap;
}

.title {
  margin: 0.15rem 0 0.55rem;
  font-style: italic;
}

ul {
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.4rem;
}

.facts dl {
  display: grid;
  gap: 0.95rem;
}

.facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  body {
    padding-top: 2.2rem;
  }

  .job-head,
  .position,
  .facts div {
    display: block;
  }

  .when {
    margin-top: 0.15rem;
  }

  .facts dt {
    margin-bottom: 0.15rem;
  }
}

@media print {
  .copy,
  .copy-status {
    display: none;
  }
}
