:root {
  --bg: #fbf9f4;
  --fg: #1a1a1a;
  --muted: #555;
  --rule: #d8d4c8;
  --accent: #8a2b2b;
  --link: #5a1a1a;
  --max: 780px;
  --serif: "Iowan Old Style", "Charter", "Georgia", "Cambria", serif;
  --sans: "Inter", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  line-height: 1.55;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.subtitle {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 2.75rem 0 0.75rem;
  letter-spacing: -0.005em;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--fg);
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent);
}

figure {
  margin: 2rem 0;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
}

figcaption {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.45;
}

details {
  border-top: 1px solid var(--rule);
  padding: 0.9rem 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--rule);
}

details:target {
  background: rgba(138, 43, 43, 0.04);
  scroll-margin-top: 1rem;
}

body.faq-page .wrap {
  counter-reset: faq;
}

body.faq-page .wrap > details > summary > .service-name {
  counter-increment: faq;
}

body.faq-page .wrap > details > summary > .service-name::before {
  content: "FAQ " counter(faq) ". ";
  color: var(--muted);
  font-weight: 500;
  margin-right: 0.15em;
}

summary {
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-family: var(--sans);
  color: var(--muted);
  font-weight: 400;
  transition: transform 0.15s;
}

details[open] summary::after {
  content: "−";
}

.service-name {
  flex: 1;
}

.service-panel {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  white-space: nowrap;
}

details > div {
  padding-top: 0.8rem;
}

.cells {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}

.cells dt {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.cells dd {
  margin: 0;
}

.cells dd b {
  font-weight: 600;
}

.notes {
  font-size: 0.92rem;
  color: var(--fg);
}

.notes p {
  margin: 0 0 0.5rem;
}

.notes p:last-child {
  margin-bottom: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

form.contact {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0 0;
  font-family: var(--sans);
}

form.contact label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

form.contact input[type="text"],
form.contact input[type="email"],
form.contact textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.55rem 0.7rem;
  transition: border-color 0.15s;
}

form.contact input:focus,
form.contact textarea:focus {
  outline: none;
  border-color: var(--accent);
}

form.contact textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.5;
}

form.contact button {
  justify-self: start;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--bg);
  background: var(--fg);
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: background 0.15s;
}

form.contact button:hover {
  background: var(--accent);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

footer {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

footer a {
  color: var(--muted);
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .wrap { padding: 2rem 1rem 4rem; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.15rem; }
  summary { flex-direction: column; gap: 0.15rem; }
  summary::after { position: absolute; right: 0; }
  details { position: relative; }
  .cells { grid-template-columns: 1fr; gap: 0.1rem; }
  .cells dt { margin-top: 0.4rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1815;
    --fg: #e8e4d8;
    --muted: #a8a29a;
    --rule: #3a3530;
    --link: #e8a08a;
    --accent: #f0b8a0;
  }
}
