:root {
  --bg: #f8f6f2;
  --paper: #ffffff;
  --ink: #1a1814;
  --muted: #6b6358;
  --rule: #e0d8cc;
  --accent: #c75b3a;
  --accent-soft: #f0dcd4;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --max-w: 72rem;
  --max-w-narrow: 48rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --paper: #1c1a16;
    --ink: #e0d8cc;
    --muted: #8a8174;
    --rule: #2e2a24;
    --accent: #e07a5a;
    --accent-soft: #2e1e18;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { opacity: 0.8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
nav .logo {
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
nav .logo span { color: var(--accent); }
nav .nav-links { display: flex; gap: 1.5rem; align-items: center; }
nav .nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav .nav-links a:hover { color: var(--ink); }
nav .nav-links a.active { color: var(--ink); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-cta:hover { opacity: 0.9 !important; }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--paper); }
.section-title {
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: var(--max-w-narrow);
  margin: 0 0 var(--space-lg);
}

/* Hero */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}
.hero h1 {
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto var(--space-md);
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.9; color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule);
}
.btn-outline:hover { border-color: var(--ink); }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.service-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.service-card h3 {
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.process-step {
  counter-increment: step;
  position: relative;
  padding-top: 2.5rem;
}
.process-step::before {
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}
.process-step h3 {
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}
.process-step p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.portfolio-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.portfolio-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.portfolio-item .thumb {
  aspect-ratio: 4 / 3;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
}
.portfolio-item .info { padding: 1.25rem; }
.portfolio-item .info h3 {
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}
.portfolio-item .info p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* About page */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.about-intro .text h2 {
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 1.8rem;
  margin: 0 0 1rem;
}
.about-intro .text p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.about-intro .values {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2rem;
}
.about-intro .values h3 {
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.about-intro .values ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-intro .values li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.about-intro .values li:last-child { border-bottom: none; }
.about-intro .values li strong { color: var(--accent); }

/* Contact form */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.contact-info h3 {
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}
.contact-info p {
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}
.contact-info .detail { margin-bottom: 1rem; }
.contact-info .detail strong { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.15rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { font-size: 0.9rem; font-weight: 500; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .form-status {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.contact-form .form-status.success { color: #2a7a4a; }
.contact-form .form-status.error { color: var(--accent); }

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
footer h4 {
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 1rem;
  margin: 0 0 0.75rem;
}
footer p, footer a {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
  text-decoration: none;
}
footer a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-bottom .attribution { font-size: 0.75rem; opacity: 0.7; }

/* Page header */
.page-header {
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
}
.page-header h1 {
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.page-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  nav { flex-direction: column; gap: 0.75rem; }
  nav .nav-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .about-intro, .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: var(--space-lg) 0; }
  .section { padding: var(--space-lg) 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
