:root {
  --maroon: #6E1F2A;
  --maroon-deep: #501620;
  --ink: #241716;
  --parchment: #F5EEE1;
  --parchment-warm: #EFE4D2;
  --taupe: #C9B8A0;
  --brass: #9C7A45;
  --white: #FFFDF9;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 500;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

.field-code {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
}

/* ---------- frame + registration marks ---------- */

.frame {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1px;
}

.reg-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--taupe);
  z-index: 5;
  pointer-events: none;
}
.reg-mark--tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.reg-mark--tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.reg-mark--bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.reg-mark--br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

@media (max-width: 700px) {
  .reg-mark { display: none; }
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem) 1.2rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--maroon);
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
  flex: 1;
  justify-content: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.site-nav a:hover { border-color: var(--maroon); }

@media (max-width: 760px) {
  .site-nav { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--maroon);
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--maroon);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }

.btn--small { padding: 0.6rem 1.2rem; font-size: 0.85rem; white-space: nowrap; }

.btn--ghost {
  background: transparent;
  color: var(--maroon);
  border: 1px solid var(--taupe);
}
.btn--ghost:hover { background: var(--parchment-warm); border-color: var(--maroon); color: var(--maroon-deep); }

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 4rem;
}

.hero__copy em { font-style: italic; color: var(--maroon); }

.hero__lede { margin-top: 1.2rem; font-size: 1.08rem; color: #4a3a37; }

.hero__figure { display: flex; justify-content: center; }
.fig-drawing { width: 100%; max-width: 420px; height: auto; }
.fig-label { font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; fill: var(--taupe); }
.fig-callout { font-family: var(--sans); font-size: 12px; fill: var(--brass); font-weight: 600; }
.fig-callout-label { font-family: var(--sans); font-size: 10px; fill: #8a7a6f; }
.fig-caption { font-family: var(--serif); font-style: italic; font-size: 13px; fill: #8a7a6f; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero__figure { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- status ---------- */

.status {
  background: var(--maroon);
  color: var(--parchment);
  padding: 3.5rem clamp(1.5rem, 5vw, 4rem);
}
.status .field-code { color: #E7C9A8; }
.status h2 { color: var(--white); }
.status p { color: #EFDCCE; max-width: 68ch; }
.status__inner { max-width: 760px; }

/* ---------- generic section spacing ---------- */

section:not(.hero):not(.status) {
  padding: 4.5rem clamp(1.5rem, 5vw, 4rem);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-lede { color: #6b5c53; margin-top: -0.3em; margin-bottom: 2em; }

/* ---------- services ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--taupe);
  border: 1px solid var(--taupe);
}

.service {
  background: var(--white);
  padding: 2rem;
}

@media (max-width: 700px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ---------- process ---------- */

.process__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.process__list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  align-items: start;
  border-top: 1px solid var(--taupe);
  padding-top: 2rem;
}
.process__list li:first-child { border-top: none; padding-top: 0; }

.process__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--maroon);
}

/* ---------- about ---------- */

.about__grid p { max-width: 66ch; }

/* ---------- faq ---------- */

.faq__list { display: flex; flex-direction: column; gap: 0; max-width: 68ch; }

details {
  border-top: 1px solid var(--taupe);
  padding: 1.2rem 0;
}
details:last-child { border-bottom: 1px solid var(--taupe); }

summary {
  font-family: var(--serif);
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.6rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--maroon);
  font-family: var(--sans);
}
details[open] summary::after { content: "\2212"; }

details p { margin-top: 0.8rem; color: #4a3a37; }

/* ---------- contact ---------- */

.contact { background: var(--parchment-warm); }
.contact__inner { max-width: 900px; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--taupe);
  border: 1px solid var(--taupe);
  margin-top: 1.5rem;
}

.contact__card {
  background: var(--white);
  padding: 1.8rem;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
}
.contact__card:hover { background: var(--parchment); }
.contact__card h3 { color: var(--maroon); }
.contact__card p { margin: 0; font-size: 0.92rem; color: #6b5c53; word-break: break-word; }

@media (max-width: 700px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--taupe);
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 2.5rem;
  font-size: 0.85rem;
  color: #7a6b60;
}
.site-footer p { max-width: none; }

/* ---------- motion & accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 2px;
}
