:root {
  --bg: #fafaf9;
  --text: #1e293b;
  --muted: #475569;
  --accent: #0f766e;
  --rule: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --accent: #5eead4;
    --rule: #334155;
  }
}

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

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

body {
  margin: 0;
  border-top: 4px solid var(--accent);
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main,
footer {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Centre the record between the top of the page and the footer. */
main {
  margin-block: auto;
  padding-top: clamp(3rem, 10vh, 6rem);
  padding-bottom: 3rem;
}

.masthead {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.mark {
  flex: none;
}

.mark-line {
  stroke: var(--text);
}

.mark-core {
  fill: var(--accent);
  stroke: var(--accent);
}

.nowrap {
  white-space: nowrap;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

p {
  margin: 0;
}

.lede {
  text-wrap: pretty;
  font-size: 1.125rem;
  color: var(--muted);
}

.record {
  margin: 0;
}

.record > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

dd {
  margin: 0;
}

address {
  font-style: normal;
}

.record-note {
  padding-top: 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

footer {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 480px) {
  .masthead {
    flex-direction: column;
    gap: 1rem;
  }

  .mark {
    margin-top: 0;
  }

  .record > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
