:root {
  --paper: #f8f7f4;
  --ink: #1e1e1e;
  --crimson: #a51c30;
  --muted: #5e5b55;
  --rule: #dcd8cf;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main,
footer {
  inline-size: min(100% - 2 * clamp(1.25rem, 5vw, 4rem), 68rem);
  margin-inline: auto;
}

main {
  display: grid;
  align-content: center;
  padding-block: clamp(4rem, 12vh, 9rem) 4rem;
}

.mark {
  inline-size: 2.25rem;
  block-size: 2.25rem;
  margin-block-end: 2rem;
}

h1 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 .accent {
  color: var(--crimson);
}

.rule {
  inline-size: 4.5rem;
  block-size: 3px;
  margin-block: 0 1.75rem;
  background: var(--crimson);
}

.lede {
  margin: 0;
  max-inline-size: 34ch;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  text-wrap: pretty;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.625rem 0.75rem;
  margin: 2.75rem 0 0;
  color: var(--muted);
}

.contact a {
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

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

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

a:focus-visible,
a[data-staged] {
  outline: 2px solid var(--crimson);
  outline-offset: 4px;
  border-radius: 2px;
}

.contact-status {
  margin: 0.75rem 0 0;
  max-inline-size: 50ch;
  font-size: 0.875rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-block-start: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}

footer span {
  font-variant-numeric: tabular-nums;
}
