:root {
  --ink: #16231d;
  --muted: #5e6861;
  --paper: #f4f1e9;
  --line: #c8c8bc;
  --accent: #8f472f;
  --dark: #17251f;
  --light: #f6f3eb;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

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

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  background: var(--dark);
  color: var(--light);
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
main > section,
footer {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

nav a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
.text-link:hover,
footer a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr;
  min-height: min(760px, calc(100vh - 88px));
  padding-block: clamp(4rem, 10vw, 8rem);
}

.eyebrow,
.section-number {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  grid-column: 1 / -1;
  align-self: start;
  margin: 0;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

h1 {
  align-self: end;
  font-size: clamp(5rem, 14vw, 11rem);
}

.hero-summary {
  align-self: end;
  max-width: 31rem;
  padding-bottom: 0.75rem;
}

.hero-summary p,
.lead {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.45;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  display: grid;
  grid-template-columns: 0.75fr 1.5fr;
  gap: clamp(2rem, 8vw, 8rem);
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}

.section-number {
  margin: 0 0 1.2rem;
}

.section h2 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.section-copy {
  max-width: 44rem;
}

.section-copy p:first-child {
  margin-top: 0;
}

.section-copy p:last-child {
  color: var(--muted);
}

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

.interest-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.interest-list li:first-child {
  padding-top: 0;
}

.interest-list span {
  padding-top: 0.45rem;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

code {
  padding: 0.1em 0.3em;
  background: #e6e2d7;
  font-size: 0.9em;
}

.contact {
  width: 100%;
  max-width: none;
  padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100vw - var(--max-width)) / 2));
  background: var(--dark);
  color: var(--light);
  scroll-margin-top: 1.5rem;
}

.contact .section-number {
  color: #d88668;
}

.contact h2 {
  max-width: 950px;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
}

.contact > p:last-child {
  margin: 3rem 0 0;
  color: #bdc4bf;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header,
  main > section,
  footer {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .site-header {
    align-items: flex-start;
    padding-block: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 16rem;
    gap: 0.5rem 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 680px;
    padding-block: 3rem 4.5rem;
  }

  .eyebrow {
    max-width: 18rem;
  }

  h1 {
    align-self: center;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: 5rem;
  }

  .contact {
    width: 100%;
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
