:root {
  --bg: #faf6f0;
  --bg-card: #ffffff;
  --ink: #2c241c;
  --ink-soft: #5a4e42;
  --accent: #9a4d2e;
  --accent-hover: #7d3e24;
  --border: #e4d8c8;
  --footer-bg: #f0e8dc;
  --focus: #9a4d2e;
  --max: 42rem;
  --wide: 52rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.125rem; /* 18px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

@media (min-width: 640px) {
  body { font-size: 1.25rem; /* 20px */ }
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--bg-card);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border: 2px solid var(--accent);
}

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.brand {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--accent); }
.brand span { color: var(--accent); font-weight: 700; }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
}
nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}
nav a:hover, nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
main.wide { max-width: var(--wide); }

h1, h2, h3 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
}
h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 1rem;
}
h2 {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  margin: 2rem 0 0.75rem;
}
h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
li { margin-bottom: 0.45rem; }

.lede {
  font-size: 1.2em;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0;
}
.card h2 { margin-top: 0; }

.cta {
  display: inline-block;
  margin: 0.5rem 0.75rem 0.5rem 0;
  padding: 0.7rem 1.25rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
}
.cta:hover { background: var(--accent-hover); color: #fff !important; }
.cta-secondary {
  background: transparent;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
}
.cta-secondary:hover {
  background: #f5ebe3;
  color: var(--accent-hover) !important;
}

.meta {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
}
.footer-inner nav ul {
  margin-bottom: 1rem;
}
.footer-inner p { margin: 0.35rem 0; }

.two-col {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.preview-banner {
  background: #f5ebe3;
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  color: var(--ink);
}
