:root {
  --bg: #f5f0e6;
  --paper: #ffffff;
  --ink: #1a1814;
  --muted: #6b6358;
  --rule: #d9cfbf;
  --accent: #1a4f7a;
  --accent-light: #e8f0f8;
  --radius: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1814;
    --paper: #221f1a;
    --ink: #e8dfd0;
    --muted: #8a8174;
    --rule: #3a342c;
    --accent: #6ea8d8;
    --accent-light: #1e2a33;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  padding: 0;
}
h1, h2, h3 {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  letter-spacing: -0.01em;
  margin-top: 0;
  line-height: 1.3;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.3em; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; color: var(--accent); }
.muted { color: var(--muted); }
a { color: var(--accent); text-underline-offset: 0.15em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.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; }

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80ch;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.logo {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  max-width: 80ch;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
.hero h1 {
  font-size: 2.5rem;
  max-width: 18ch;
  margin-bottom: 0.75rem;
}
.subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 55ch;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Button */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sections */
main {
  max-width: 80ch;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section {
  margin-bottom: 3rem;
  scroll-margin-top: 2rem;
}

/* Service grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.card h3 {
  margin-bottom: 0.5rem;
}

/* About */
#about p {
  max-width: 65ch;
  margin-bottom: 0.75rem;
}

/* Contact form */
#contact p {
  margin-bottom: 0.5rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--ink);
}
.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 40ch;
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* Footer */
footer {
  max-width: 80ch;
  margin: 3rem auto 0;
  padding: 1.5rem;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
footer .attribution { font-size: 0.75rem; opacity: 0.7; }
footer p { margin: 0; }

/* Mobile */
@media (max-width: 600px) {
  .site-nav {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
  }
  .hero h1 { font-size: 1.8rem; }
  .grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

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