:root {
  color-scheme: light;
  --paper: #f5f0e7;
  --paper-deep: #ebe2d3;
  --surface: #fffaf2;
  --ink: #272621;
  --muted: #625e56;
  --accent: #77462f;
  --accent-soft: #d8b596;
  --line: #cfc4b4;
  --focus: #075f54;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 0.1rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
}

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

.shell {
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 231, 0.96);
}

.site-header::after {
  position: absolute;
  right: 7vw;
  bottom: -1px;
  width: min(24vw, 18rem);
  height: 1px;
  content: '';
  background: var(--accent);
  opacity: 0.55;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-inner {
  min-height: 5.25rem;
}

.wordmark,
.footer-brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.primary-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
}

.primary-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.primary-nav a[aria-current='page'],
.footer-nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.32em;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(47rem, calc(100vh - 5.25rem));
  align-items: center;
  padding-block: clamp(5.5rem, 12vw, 10rem);
}

.hero::before {
  position: absolute;
  top: 9%;
  right: 1%;
  width: clamp(8rem, 24vw, 20rem);
  aspect-ratio: 1;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  content: '';
  opacity: 0.35;
}

.hero::after {
  position: absolute;
  right: 12%;
  bottom: 14%;
  width: clamp(3.5rem, 9vw, 7rem);
  aspect-ratio: 1;
  border-radius: 50%;
  content: '';
  background: var(--accent-soft);
  opacity: 0.22;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 58rem;
}

h1,
h2 {
  margin-block: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  line-height: 1.08;
}

.lead {
  max-width: 42rem;
  margin: clamp(2.4rem, 5vw, 4rem) 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.55;
}

.chapters {
  border-top: 1px solid var(--line);
}

.chapter {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.chapter + .chapter {
  border-top: 1px solid var(--line);
}

.chapter-wash {
  background: var(--surface);
}

.chapter-accent {
  background: var(--paper-deep);
}

.prose {
  max-width: 43rem;
}

.prose p {
  margin-block: 0 1.35rem;
}

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

.prose a {
  overflow-wrap: anywhere;
}

.coming-soon .prose {
  padding-left: clamp(1.25rem, 4vw, 3rem);
  border-left: 3px solid var(--accent-soft);
}

.identity-line {
  margin-top: 2.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-main {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.legal-copy {
  margin-inline: auto;
}

.legal-copy h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 6vw, 5.25rem);
}

.legal-copy h2 {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.updated {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.not-found-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.not-found-main {
  display: grid;
  flex: 1;
  align-items: center;
  padding-block: clamp(5rem, 12vw, 10rem);
}

.not-found-copy {
  max-width: 48rem;
}

.not-found-copy h1 {
  max-width: 14ch;
  margin-bottom: 2.5rem;
  font-size: clamp(3rem, 7vw, 6rem);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.footer-inner {
  min-height: 8rem;
  padding-block: 1.5rem;
}

@media (max-width: 44rem) {
  .shell {
    width: min(100% - 2rem, 76rem);
  }

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .header-inner {
    min-height: auto;
    padding-block: 1.25rem;
  }

  .primary-nav,
  .footer-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .hero {
    min-height: auto;
    padding-block: 5rem 6rem;
  }

  .hero::before {
    top: 8%;
    right: 0;
  }

  .hero::after {
    right: 7%;
    bottom: 9%;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .lead {
    margin-top: 2.25rem;
  }

  .chapter {
    padding-block: 4.5rem;
  }

  .legal-main {
    padding-block: 4.5rem 6rem;
  }

  .footer-inner {
    min-height: auto;
    padding-block: 2.5rem;
  }
}

@media (max-width: 22rem) {
  body {
    font-size: 1rem;
  }

  .shell {
    width: min(100% - 1.5rem, 76rem);
  }

  .primary-nav a,
  .footer-nav a {
    font-size: 0.8125rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  .coming-soon .prose {
    padding-left: 1rem;
  }
}

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