:root {
  color-scheme: light;
  --background: #fbfaf7;
  --text: #1d1b18;
  --muted: #6d6961;
  --rule: #e3ded5;
  --accent: #8b3f24;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  font-size: 18.5px;
  letter-spacing: 0.018em;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

.page {
  width: min(660px, calc(100% - 40px));
  margin: 0 auto;
  padding: 13vh 0 16vh;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 450;
  letter-spacing: 0.006em;
  line-height: 1.08;
}

h2 {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

p {
  max-width: 670px;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.section {
  padding-top: 1.4rem;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
}

.work-list {
  display: grid;
  gap: 0.28rem;
  padding: 0;
  margin: 0;
  font-size: 0.98rem;
  list-style: none;
}

@media (max-width: 540px) {
  body {
    font-size: 17px;
  }

  .page {
    width: min(100% - 28px, 660px);
    padding-top: 8vh;
  }
}
