@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --paper: #f4efe5;
  --paper-deep: #ebe4d6;
  --card: #f9f6ef;
  --ink: #1f1b16;
  --ink-soft: #5b5146;
  --brass: #7d5d29;
  --brass-bright: #a47c3b;
  --rule: rgba(31, 27, 22, 0.14);
  --grid: rgba(60, 74, 92, 0.055);
  --line: rgba(31, 27, 22, 0.78);
  --dim: rgba(125, 93, 41, 0.9);
  --sweep: rgba(255, 238, 205, 0.7);
  --focus: #7d5d29;
  --error: #9b2c1f;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
  --gutter: clamp(1rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1916;
    --paper-deep: #221f1b;
    --card: #24211c;
    --ink: #efe8dc;
    --ink-soft: #b7ac9c;
    --brass: #cfaa6b;
    --brass-bright: #e0bf85;
    --rule: rgba(239, 232, 220, 0.14);
    --grid: rgba(239, 232, 220, 0.035);
    --line: rgba(239, 232, 220, 0.8);
    --dim: rgba(207, 170, 107, 0.85);
    --sweep: rgba(255, 214, 150, 0.16);
    --focus: #e0bf85;
    --error: #f0a494;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 120% 70% at 50% 0%, transparent 40%, var(--paper) 100%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 0.2em; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--paper); text-decoration: none;
}
.skip:focus { top: 1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Masthead */
.masthead { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 0; }
.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  letter-spacing: 0.02em;
  line-height: 1;
}
.byline {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Hero */
main { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.hero { text-align: center; padding-top: clamp(2.5rem, 7vw, 5.5rem); }
h1 {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 1.4rem + 6vw, 6.75rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
}
h1 em { display: block; font-style: italic; color: var(--brass); }
.subline {
  margin: clamp(1rem, 2.4vw, 1.6rem) 0 0;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* The drawing sheet */
.sheet {
  position: relative;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
  max-width: 60rem;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  isolation: isolate;
}
.sheet::after {
  content: "";
  position: absolute; inset: -10% -40%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, var(--sweep) 50%, transparent 62%);
  mix-blend-mode: soft-light;
  transform: translateX(-70%);
  opacity: 0;
  animation: sweep 16s var(--ease) 2.6s infinite;
}
.elevation { display: block; width: 100%; height: auto; overflow: visible; }
.elevation .ln {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.7s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.elevation .s1 { --d: 0.25s; }
.elevation .s2 { --d: 0.6s; }
.elevation .s3 { --d: 1s; }
.elevation .s4 { --d: 1.35s; }
.elevation .s5 { --d: 1.7s; }
.elevation .s6 { --d: 2s; }
.elevation .heavy { stroke-width: 2; }
.elevation .roof { stroke-width: 1.5; }
.elevation .fine { stroke-width: 0.8; opacity: 0.8; }
.elevation .dim { stroke: var(--dim); stroke-width: 0.8; }
.elevation .labels {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  fill: var(--dim);
  opacity: 0;
  animation: fade 1.2s var(--ease) 2.5s forwards;
}
.elevation .labels .title { fill: var(--ink-soft); letter-spacing: 0.24em; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes sweep {
  0% { transform: translateX(-70%); opacity: 0; }
  4% { opacity: 1; }
  26% { opacity: 1; }
  30% { transform: translateX(70%); opacity: 0; }
  100% { transform: translateX(70%); opacity: 0; }
}

.lede {
  margin: clamp(2rem, 5vw, 3.25rem) auto 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}

/* Features */
.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 60rem;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: 0;
}
.features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.98rem;
  line-height: 1.45;
}
.features svg {
  width: 2rem; height: 2rem;
  fill: none; stroke: var(--brass); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Waitlist */
.waitlist { max-width: 44rem; margin: clamp(3.5rem, 8vw, 6rem) auto 0; }
form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--rule), 0 24px 60px -36px rgba(31, 27, 22, 0.35);
  position: relative;
}
form::before {
  content: "";
  position: absolute; left: clamp(1.25rem, 4vw, 2.5rem); right: clamp(1.25rem, 4vw, 2.5rem); top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-bright), transparent);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field:first-child { grid-column: 1 / -1; }
label { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.optional { text-transform: none; letter-spacing: 0; }
input, select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-bottom-color: color-mix(in srgb, var(--ink) 45%, transparent);
  border-radius: 0;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
input:hover, select:hover { border-bottom-color: var(--brass); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
input[aria-invalid="true"] { border-bottom-color: var(--error); }
.select { position: relative; }
.select select { appearance: none; padding-right: 2.25rem; }
.select::after {
  content: "";
  position: absolute; right: 0.95rem; top: 50%;
  width: 0.45rem; height: 0.45rem;
  border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

button {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.4rem;
  font: inherit;
  font-weight: 550;
  letter-spacing: 0.03em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
button:hover { background: var(--brass); border-color: var(--brass); }
button:active { transform: translateY(1px); }
button[disabled] { opacity: 0.6; cursor: progress; }

.status { grid-column: 1 / -1; margin: 0; font-size: 0.95rem; }
.status:empty { display: none; }
.status.error { color: var(--error); }
.success {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  line-height: 1.3;
  background: var(--card);
  border: 1px solid var(--rule);
}
.success:focus { outline: none; }

/* Footer */
.colophon {
  max-width: 72rem;
  margin: clamp(4rem, 9vw, 7rem) auto 0;
  padding: 1.75rem var(--gutter) 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
}
.colophon p { margin: 0.2rem 0; }
.privacy { font-size: 0.8rem; }

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; gap: 0; }
  .features li { flex-direction: row; text-align: left; padding: 1rem 0; }
  .features svg { flex: none; width: 1.75rem; height: 1.75rem; }
  form { grid-template-columns: 1fr; }
  .subline { letter-spacing: 0.05em; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .elevation .ln { animation: none; stroke-dashoffset: 0; }
  .elevation .labels { animation: none; opacity: 1; }
  .sheet::after { animation: none; display: none; }
  * { transition: none !important; }
}
