:root {
  --paper: #f4f0e8;
  --ink: #1c1917;
  --muted: #5e584e;
  --line: rgba(28, 25, 23, 0.12);
  --card: #fffcf8;
  --sage: #d7e3dc;
  --sand: #e7d7c3;
  --clay: #c46a45;
  --shadow: 0 24px 60px rgba(28, 25, 23, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 68rem;
  --space: clamp(4.5rem, 8vw, 7.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 5;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: 1.5rem 0 var(--space);
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }
h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.15rem);
  line-height: 0.92;
}
.deck {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.button, .text-link {
  font: inherit;
  text-decoration: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.text-link { text-underline-offset: 0.28em; }

.stage { margin: 0; }
.composition {
  display: grid;
  grid-template-columns: minmax(13.5rem, 16.5rem) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}
.sheet, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}
.sheet, .panel { padding: 0.85rem; }
.sheet-photo { border-radius: 0.85rem; overflow: hidden; }
.sheet-caption { padding: 0.9rem 0.35rem 0.35rem; }
.sheet-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet-title {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.panel-kicker {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.panel-note, .fine {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.photo {
  position: relative;
  margin-top: 0.85rem;
  border-radius: 0.8rem;
  overflow: hidden;
}
.house { width: 100%; height: auto; }
.pill {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.94);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  margin-top: 0.85rem;
  border-radius: 0.7rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 560;
}
.stage figcaption {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section { padding: 0 0 var(--space); }
.section h2 {
  margin: 0 0 2rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.02;
  max-width: 14ch;
}
.steps, .outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li, .outcomes li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.num {
  display: block;
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--muted);
}
.steps h3, .outcomes h3 {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
  line-height: 1.15;
}
.steps p, .outcomes p { margin: 0; color: var(--muted); }

.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.contact h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.98;
}
.contact p { margin: 0 0 1.25rem; color: var(--muted); max-width: 28rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer nav { display: flex; gap: 1rem; }
.site-footer a { color: inherit; }

.legal { padding-bottom: var(--space); }
.legal h1 {
  margin: 1rem 0 0.5rem;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 0.95;
}
.legal .updated { color: var(--muted); margin-top: 0; }
.legal-body { max-width: 40rem; }
.legal-body h2 {
  margin: 2.2rem 0 0.4rem;
  font-size: 1.7rem;
}
.legal-body p, .legal-body li { color: var(--ink); }
.legal-body ul { padding-left: 1.1rem; }
.legal-body a { color: inherit; }

@media (max-width: 860px) {
  .hero, .steps, .outcomes, .contact { grid-template-columns: 1fr; }
  .composition { grid-template-columns: 1fr; }
  .sheet, .panel { grid-column: auto; grid-row: auto; width: 100%; margin: 0; }
  .sheet { order: 2; }
  .panel { order: 1; }
  .nav a:not(.button) { display: none; }
  h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .composition { animation: rise 700ms ease both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
