:root {
  color-scheme: light;
  --cream: #f3e9d7;
  --paper: #fff9ef;
  --parchment: #e9d5b5;
  --vellum: #fbefd9;
  --ink: #1f1a17;
  --muted: #6f655e;
  --moss: #5b6c5d;
  --wine: #8f4a3f;
  --line: #dcc9ae;
  --shadow: rgba(87, 59, 41, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(233, 213, 181, 0.72), transparent 32rem),
    radial-gradient(circle at 90% 2%, rgba(143, 74, 63, 0.12), transparent 26rem),
    var(--cream);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--wine);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid rgba(143, 74, 63, 0.35);
  outline-offset: 3px;
}

.site-shell {
  width: min(100% - 2rem, 820px);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.brand {
  color: var(--ink);
  text-decoration: none;
}

.brand-kicker,
.eyebrow {
  margin: 0;
  color: var(--wine);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.brand-name {
  display: block;
  margin-top: 0.18rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
  padding-top: 0.3rem;
}

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

.hero,
.document,
.link-card {
  border: 1px solid var(--line);
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 16px 44px var(--shadow);
}

.hero {
  padding: clamp(1.5rem, 5vw, 3.25rem);
  border-radius: 1.6rem;
}

.hero h1,
.document h1 {
  margin: 0.35rem 0 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 7vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-copy,
.updated {
  color: var(--muted);
}

.hero-copy {
  max-width: 38rem;
  margin: 0;
  font-size: 1.05rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.link-card {
  display: block;
  padding: 1.35rem;
  border-radius: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.link-card:hover {
  border-color: var(--wine);
  transform: translateY(-1px);
}

.link-card h2 {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.link-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.document {
  padding: clamp(1.35rem, 5vw, 3rem);
  border-radius: 1.4rem;
}

.document h1 {
  font-size: clamp(2rem, 6vw, 3.15rem);
}

.document h2 {
  margin: 2rem 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.25;
}

.document h3 {
  margin: 1.25rem 0 0.3rem;
  font-size: 1rem;
}

.document p,
.document ul,
.document ol {
  margin: 0.55rem 0;
}

.document ul,
.document ol {
  padding-left: 1.35rem;
}

.document li + li {
  margin-top: 0.38rem;
}

.callout {
  margin: 1.35rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--vellum);
}

.callout p {
  margin: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.4rem;
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 620px) {
  .site-header {
    display: grid;
    gap: 0.65rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
}
