:root {
  color-scheme: light;
  --ink: #292520;
  --muted-ink: #655d54;
  --ivory: #f8f2eb;
  --paper: rgba(255, 252, 248, 0.86);
  --line: rgba(74, 63, 53, 0.16);
  --focus: #785b40;
  --serif: Didot, "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
}

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

html {
  min-width: 320px;
  background: #e9ddcf;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 255, 255, 0.55), transparent 34rem),
    linear-gradient(145deg, #efe5da 0%, #e5d5c5 100%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  opacity: 1;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(248, 242, 235, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header__inner,
.site-footer,
.document-shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a,
.site-footer a,
.text-link {
  text-decoration-color: rgba(41, 37, 32, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

.site-nav a {
  font-size: 0.875rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.36em;
}

.document-shell {
  display: grid;
  grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}

.document-intro {
  position: sticky;
  top: 2rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--muted-ink);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(2.65rem, 6vw, 4.9rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.document-intro > p:last-child {
  margin-bottom: 0;
  color: var(--muted-ink);
  font-size: 0.95rem;
}

.document {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 1.35rem;
  background: var(--paper);
  box-shadow: 0 1.4rem 3rem rgba(73, 53, 35, 0.1);
}

.document section {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

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

h2 {
  margin-bottom: 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
  line-height: 1.4;
}

h3:not(:first-child) {
  margin-top: 1.5rem;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.55rem;
}

.support-callout {
  background: rgba(236, 223, 209, 0.42);
}

.support-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted-ink);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

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

@media (max-width: 46rem) {
  .document-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2.75rem;
  }

  .document-intro {
    position: static;
  }

  .document-intro > p:last-child {
    max-width: 36rem;
  }
}

@media (max-width: 30rem) {
  .site-header__inner {
    min-height: 4rem;
  }

  .wordmark {
    font-size: 1.5rem;
  }

  .site-nav {
    gap: 0.8rem;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
