:root {
  color-scheme: light;
  --bg: #f4efe6;
  --surface: rgba(255, 250, 242, 0.86);
  --surface-strong: #fffaf2;
  --border: #d5cab8;
  --text: #1f1a14;
  --muted: #6a5d4e;
  --accent: #8a5a2b;
  --max-width: 72rem;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(138, 90, 43, 0.08), transparent 34%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 3rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-title:hover,
.site-title:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
}

.landing {
  padding: clamp(2rem, 5vw, 4.5rem) 0 1rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 400;
  line-height: 1.06;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.lead,
.section-card p,
.section-card li,
.site-footer {
  color: var(--muted);
}

.lead {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  font-size: 1.12rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--surface-strong);
  text-decoration: none;
}

.button.secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

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

.section-card {
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.section-card p {
  max-width: 42rem;
  margin: 0.85rem 0 0;
}

.section-card .lead {
  max-width: 40rem;
  margin-top: 1.25rem;
}

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

.content-page {
  display: grid;
  gap: 1.25rem;
  padding-top: 2.5rem;
}

.content-page h1 {
  max-width: 16ch;
}

.prose {
  display: grid;
  gap: 1rem;
}

.prose p {
  margin: 0;
  font-size: 1.04rem;
}

.prose-image {
  display: block;
  max-width: min(100%, 16rem);
  height: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-strong);
}

.prose h2,
.prose h3 {
  margin: 1.75rem 0 0;
  font-weight: 400;
  line-height: 1.15;
}

.prose h2 {
  font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.prose h3 {
  font-size: 1.3rem;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.prose li + li {
  margin-top: 0.6rem;
}

.prose code,
.prose pre {
  font-family: ui-monospace, "SFMono-Regular", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.prose code {
  font-size: 0.95em;
}

.prose pre {
  margin: 1rem 0 0;
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong);
}

.prose pre code {
  font-size: 0.92rem;
}

.note-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.note-list li + li {
  margin-top: 0.6rem;
}

.empty-state {
  border-style: dashed;
  background: rgba(255, 250, 242, 0.7);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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