:root {
  color-scheme: light;
  --paper: #faf9f5;
  --ink: #16283b;
  --muted: #465566;
  --accent: #145b53;
  --accent-hover: #10463f;
  --line: #d9dfda;
  --tint: #eaf1ed;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-space: clamp(2.65rem, 6vw, 5rem);
  --width: 74rem;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}

.frame {
  width: min(var(--width), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.site-header,
.site-footer {
  border-block-end: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.wordmark {
  font: 700 1.65rem/1 var(--serif);
  letter-spacing: -.045em;
}

nav {
  display: flex;
  gap: clamp(1rem, 4vw, 2.5rem);
  font-size: .9rem;
  font-weight: 600;
}

a {
  color: var(--accent);
  text-underline-offset: .24em;
}

nav a {
  color: var(--ink);
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

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

.hero {
  padding-block: clamp(4rem, 9.5vw, 8rem);
  border-block-end: 1px solid var(--line);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.04em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 7vw, 6.75rem);
  line-height: .99;
}

.hero p {
  max-width: 36rem;
  margin-block: 1.55rem 1.8rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.focus {
  padding-block: var(--section-space);
}

.areas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.areas li {
  padding-block-start: 1rem;
  border-block-start: 2px solid var(--accent);
}

.areas h3 {
  margin-block-end: .35rem;
  font-size: 1.075rem;
  line-height: 1.35;
}

.areas p {
  max-width: 34ch;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-block-end: var(--section-space);
  padding: clamp(1.35rem, 4vw, 3rem);
  background: var(--tint);
}

.contact h2 {
  max-width: 20ch;
}

.contact a {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.site-footer {
  padding-block: 1.15rem;
  border-block: 1px solid var(--line) 0;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
}

section[id] {
  scroll-margin-block-start: 1rem;
}

@media (max-width: 42rem) {
  .areas {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 24rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
    padding-block: .8rem;
  }
}
