:root {
  --bg: #f4f1ea;
  --paper: #ffffff;
  --ink: #1e1b16;
  --muted: #6b6358;
  --rule: #d9cfbf;
  --accent: #1a4f7a;
  --accent-light: #e8f0f8;
  --accent-dark: #0f3453;
  --warm: #c17f3b;
  --warm-light: #fdf6ee;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --paper: #1e1b16;
    --ink: #e8dfd0;
    --muted: #8a8174;
    --rule: #3a342c;
    --accent: #6ea8d8;
    --accent-light: #1a2a38;
    --accent-dark: #8fc4ee;
    --warm: #d49a5a;
    --warm-light: #2a2218;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.3;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--accent); color: #fff;
  padding: 0.5rem 1rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--accent); }
.site-header nav {
  display: flex;
  gap: 1.5rem;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.site-header nav a:hover {
  color: var(--ink);
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.section-desc {
  max-width: 65ch;
  margin-bottom: 2rem;
}
.alt-bg {
  background: var(--paper);
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.hero-title {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 55ch;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.card h3 { margin-bottom: 0.4em; }
.card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0; }

/* Magazine cards */
.magazine-card .card-img {
  height: 120px;
  border-radius: 4px;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}
.card-img-label {
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warm);
  background: var(--warm-light);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-top: 0.75rem;
}

/* Promo */
.promo {
  text-align: center;
  background: var(--accent-light);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.promo h2 { color: var(--accent); }
.promo p { max-width: 60ch; margin: 0 auto 1.5rem; }

/* Contact */
.contact-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.contact-item {
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

/* Footer */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.footer-brand strong {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 1.1rem;
}
.footer-brand span { font-size: 0.85rem; }
.site-footer nav {
  display: flex;
  gap: 1.5rem;
}
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.site-footer nav a:hover { color: var(--ink); }
.site-footer .attribution {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
  margin: 0;
}

/* Mobile */
@media (max-width: 600px) {
  .hero-title { font-size: 2rem; }
  .hero { padding: 2.5rem 1.5rem 2rem; }
  .section { padding: 2rem 1.5rem; }
  .header-inner { flex-direction: column; gap: 0.5rem; }
  .cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .contact-links { flex-direction: column; gap: 0.75rem; }
}

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