:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --ink: #18231d;
  --muted: #5b655f;
  --line: #c9cec8;
  --accent: #b4492f;
  --content: 78rem;
  --side: clamp(1.25rem, 4vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.hero,
.section {
  width: min(100%, calc(var(--content) + (2 * var(--side))));
  margin-inline: auto;
  padding-inline: var(--side);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.wordmark span:first-child {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
}

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

nav a,
.site-footer a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.hero {
  min-height: min(47rem, calc(100svh - 6.5rem));
  padding-block: clamp(5rem, 12vw, 10rem) clamp(3rem, 7vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 14ch;
  margin-bottom: 0;
  font-size: clamp(3.1rem, 8.2vw, 7.6rem);
  line-height: 0.96;
}

.hero-footer {
  display: grid;
  grid-template-columns: minmax(0, 29rem) auto;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.hero-footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.text-link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover {
  text-decoration: underline;
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
  display: grid;
  grid-template-columns: minmax(3rem, 1fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.section-number,
.principle-number {
  color: var(--muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.section h2 {
  max-width: 13ch;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 1;
}

.large-copy {
  max-width: 40ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.45;
}

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.principles li {
  padding-block: 2rem;
  display: grid;
  grid-template-columns: minmax(3rem, 1fr) 4fr;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.principles h3 {
  margin-bottom: 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 400;
}

.principles p {
  max-width: 35rem;
  margin-bottom: 0;
  color: var(--muted);
}

.contact .section-content > p:not(.eyebrow) {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.email-link {
  display: inline-block;
  max-width: 100%;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 3.2vw, 2.7rem);
  overflow-wrap: anywhere;
  text-decoration-color: var(--accent);
}

.site-footer {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
}

@media (max-width: 42rem) {
  .site-header {
    min-height: 5.5rem;
  }

  .wordmark span:last-child {
    max-width: 8rem;
    line-height: 1.2;
  }

  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 5.5rem);
    gap: 4rem;
  }

  .hero-footer,
  .section,
  .principles li {
    grid-template-columns: 1fr;
  }

  .section {
    gap: 1rem;
  }

  .section-number {
    margin-bottom: 1rem;
  }

  .principles li {
    gap: 0.65rem;
  }

  .site-footer {
    padding-block: 2rem;
    align-items: flex-start;
    flex-direction: column;
  }
}

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