:root {
  color-scheme: light;
  --background: #f7f6f2;
  --text: #181716;
  --muted: #66615a;
  --line: #d8d2c7;
  --accent: #245b4f;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 72px 0 48px;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.24em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

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

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

.site-header {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1 {
  max-width: 10ch;
  margin-block-end: 24px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(4rem, 12vw, 8.25rem);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: break-word;
}

.intro {
  max-width: 580px;
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) 1fr;
  gap: 32px;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin-block-end: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  text-transform: uppercase;
}

.content p {
  margin-block-end: 1.1em;
  overflow-wrap: break-word;
}

.content p:last-child {
  margin-block-end: 0;
}

.links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.work-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-list li {
  border-top: 1px solid var(--line);
}

.work-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.work-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 0;
  text-decoration: none;
}

.work-list strong {
  font-weight: 500;
}

.work-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.answers article + article {
  margin-top: 30px;
}

.answers h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.answers p {
  margin-bottom: 0;
}

footer {
  padding-top: 30px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  main {
    width: min(calc(100% - 32px), var(--max-width));
    padding: 44px 0 36px;
  }

  .site-header {
    min-height: 60vh;
  }

  h1 {
    max-width: 7ch;
    font-size: clamp(3.4rem, 16vw, 4.8rem);
  }

  .section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 42px 0;
  }

  .links {
    grid-column: 1;
  }
}
