:root {
  --paper: #f3eee4;
  --paper-2: #e6dfd0;
  --card: #faf7f2;
  --ink: #1c1915;
  --ink-soft: #3f3a33;
  --muted: #6e675e;
  --gold: #8f6b2e;
  --gold-2: #c6a35a;
  --line: #d9d0c0;
  --dark: #16130f;
  --on-dark: #f6f1e7;
  --on-dark-muted: #c9bfb0;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --card-radius: 1.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 500; margin: 0; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.muted { color: var(--muted); }
.soft { color: var(--ink-soft); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.5rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand strong { display: block; font-family: var(--display); font-size: 1.125rem; font-weight: 500; }
.brand span { display: block; font-size: 0.75rem; color: var(--muted); }
.mark { width: 3rem; height: 2rem; color: var(--gold); }
.desk-nav { display: none; align-items: center; gap: 1.75rem; }
.desk-nav a:not(.btn) { font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.btn,
.btn:link,
.btn:visited,
.btn:hover,
.btn:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background-color: #1c1915;
  color: #f6f1e7;
  -webkit-text-fill-color: #f6f1e7;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn.ghost,
.btn.ghost:link,
.btn.ghost:visited,
.btn.ghost:hover,
.btn.ghost:active {
  background-color: #faf7f2;
  color: #1c1915;
  -webkit-text-fill-color: #1c1915;
  border-color: var(--line);
}
.menu-check { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 0.75rem 0 0.5rem; }
.mobile-nav a { display: flex; min-height: 3rem; align-items: center; font-weight: 500; text-decoration: none; }
.menu-check:checked ~ .mobile-nav { display: block; }
.menu-check:focus-visible ~ .bar .menu-btn { outline: 2px solid var(--gold); outline-offset: 3px; }

.contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 0.15rem 1.25rem;
  font-size: 0.875rem;
}
.contacts a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  text-decoration: none;
}
.contacts svg { width: 1rem; height: 1rem; color: var(--gold); }
.contacts.dark {
  border-top: 0;
  background: transparent;
  color: var(--on-dark);
}

.hero { padding: 3rem 0 1rem; }
.hero h1 { margin-top: 1rem; font-size: clamp(2.7rem, 7vw, 4.5rem); line-height: 0.95; }
.hero .lead { max-width: 38rem; margin-top: 1.5rem; font-size: 1.2rem; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-grid, .split, .about-grid { display: grid; gap: 2.5rem; }
.facts { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--line); }
.facts div { background: var(--card); padding: 1rem 1.25rem; }
.facts dd { margin: 0.25rem 0 0; font-family: var(--display); font-size: 1.5rem; }
.facts p { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--muted); }

.section { padding: 4rem 0; }
.section h2 { margin-top: 0.75rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.cards { display: grid; gap: 1rem; margin-top: 2.5rem; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--card);
  padding: 1.5rem;
}
.icon {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--gold);
}
.card h3 { margin-top: 1.25rem; font-size: 1.5rem; }
.card p, .steps p, .note { color: var(--ink-soft); }
.paper { background: var(--paper-2); }

.steps { display: grid; gap: 1rem; margin-top: 2rem; padding: 0; list-style: none; font-size: 0.875rem; color: var(--ink-soft); }
.brief-grid { display: grid; gap: 2.5rem; }
.form {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--card);
  padding: 1.25rem;
}
fieldset { margin: 0; padding: 0; border: 0; }
legend, .label { display: block; font-size: 0.875rem; font-weight: 600; }
.choices, .fields, .checks { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  padding: 0.7rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.8rem;
}
input[type="text"], input[type="email"], input[type="tel"], select { height: 3rem; }
textarea { min-height: 7rem; resize: vertical; }
.check {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
}
.check input { width: 1rem; height: 1rem; accent-color: var(--gold); }
.stack { margin-top: 1.25rem; }
.rule { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.alert { margin: 0.75rem 0 0; color: var(--gold); font-size: 0.875rem; font-weight: 600; }
.ok, .fallback {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  padding: 1rem;
}
pre { white-space: pre-wrap; font-family: var(--sans); font-size: 0.875rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }

.about-year { margin: 0; font-family: var(--display); font-size: clamp(4.5rem, 12vw, 6rem); line-height: 0.9; color: var(--gold); }
.about-kicker { margin: 0.75rem 0 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 2.5rem 0 1.5rem; }
.foot { display: flex; flex-direction: column; gap: 1.5rem; }
.foot-brand { display: flex; align-items: center; gap: 0.5rem; color: var(--on-dark); }
.foot-brand .mark { color: var(--gold-2); width: 2.5rem; height: 1.75rem; }
.foot-brand strong { font-family: var(--display); font-weight: 500; }
.foot-brand span, .site-footer p { margin: 0; }
.copy { margin-top: 1rem; text-align: center; font-size: 0.875rem; }

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .choices.three, .fields.two, .checks { grid-template-columns: repeat(2, 1fr); }
  .choices.three { grid-template-columns: repeat(3, 1fr); }
  .fields.three { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .desk-nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav, .menu-check:checked ~ .mobile-nav { display: none; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: 5rem; }
  .form { padding: 1.75rem; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; align-items: end; }
  .facts { grid-template-columns: 1fr; }
  .brief-grid { grid-template-columns: 4fr 8fr; gap: 3rem; }
  .about-grid { grid-template-columns: 5fr 7fr; align-items: center; }
  .foot { flex-direction: row; align-items: end; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
