/* The page is laid out like one of the app's drawing sheets: a framed sheet, a title block down the
   right that stays in view (it holds the waitlist), graphite ink, one brass accent. */

:root {
  --paper: #f6f6f2;
  --plaster: #ecece9;
  --ink: #1c2024;
  --ink-2: #474e54;
  --ink-3: #6b7279;
  --line: #c9cbc4;
  --line-soft: #deded8;
  --brass: #a27b45;
  --brass-ink: #7d5c2f;
  --blue: #1d3347;
  --blue-ink: #a9c3da;
  --display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: clamp(20px, 3.4vw, 52px);
  --tb: 340px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font: 400 17px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---- the sheet ---- */

.sheet {
  max-width: 1500px;
  width: calc(100% - 2 * clamp(8px, 1.6vw, 24px));
  margin: clamp(8px, 1.6vw, 24px) auto;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--tb);
  grid-template-areas: 'top tb' 'hero tb' 'rest tb' 'foot tb';
  grid-template-rows: auto auto 1fr auto;
}
.top { grid-area: top; }
.hero { grid-area: hero; }
.titleblock { grid-area: tb; }
.rest { grid-area: rest; }
.foot { grid-area: foot; }

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gut);
  border-bottom: 1px solid var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem/1 var(--display); font-variation-settings: 'wdth' 88; letter-spacing: -0.01em; }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; }
.top nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: center;
  padding: clamp(32px, 5vw, 72px) var(--gut);
  border-bottom: 1px solid var(--ink);
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-variation-settings: 'wdth' 80;
  text-wrap: balance;
}
.lede { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.45; color: var(--ink-2); max-width: 30em; margin: 1.3em 0 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 1.8em 0 0; }
.button, .join button {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font: 600 1rem/1 var(--ui);
  padding: 0.95em 1.4em;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.button:hover, .join button:hover { background: var(--brass-ink); }
.textlink { font-weight: 600; text-decoration-color: var(--brass); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.platforms { margin: 1.6em 0 0; font-size: 0.95rem; color: var(--ink-3); max-width: 32em; }

.hero-figure { margin: 0; background: var(--plaster); border: 1px solid var(--line); }
.building { display: block; width: 100%; height: auto; background: var(--plaster); }
.hero-figure figcaption, .band-fig figcaption { padding: 10px 14px 12px; font-size: 0.85rem; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--paper); }

/* the level marks draw in once, on load */
@media (prefers-reduced-motion: no-preference) {
  .levels .chain { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.2s 0.35s cubic-bezier(0.3, 0.6, 0.2, 1) forwards; }
  .levels .roof { opacity: 0; animation: show 0.5s 1.5s forwards; }
  .levels .marks path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 0.6s 0.9s ease-out forwards; }
  .levels .labels { opacity: 0; animation: show 0.6s 1.3s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

/* ---- the title block: the waitlist ---- */

.titleblock {
  position: sticky;
  top: 0;
  align-self: start;
  border-left: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  min-height: min(100vh, 760px);
}
.tb-name { padding: 20px 22px 18px; border-bottom: 1px solid var(--ink); }
.tb-label { display: block; font-size: 0.78rem; color: var(--ink-3); margin-bottom: 4px; }
.tb-name strong { font: 700 1.6rem/1.05 var(--display); font-variation-settings: 'wdth' 85; letter-spacing: -0.015em; }
.tb-join { padding: 22px 22px 24px; border-bottom: 1px solid var(--ink); flex: 1; }
.tb-join h2 { font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.01em; font-variation-settings: 'wdth' 88; }
.tb-join p { margin: 0.6em 0 1.1em; font-size: 0.95rem; color: var(--ink-2); }
.join { display: grid; gap: 8px; }
.join label { font-size: 0.85rem; font-weight: 600; }
.join input {
  font: 400 1rem/1.2 var(--ui);
  padding: 12px 12px;
  border: 1px solid var(--ink-3);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.join input:focus-visible { outline-offset: 1px; }
.join button { width: 100%; text-align: center; margin-top: 4px; }
.join .join-note { margin: 4px 0 0; font-size: 0.85rem; color: var(--ink-3); min-height: 2.6em; }
.join .join-note.warn { color: #8c3b2f; }
.tb-cta { display: block; text-align: center; }
.tb-join .join-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--ink-3); }
.tb-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.tb-grid > div { padding: 10px 22px 12px; border-bottom: 1px solid var(--ink); }
.tb-grid > div:nth-child(odd) { border-right: 1px solid var(--ink); }
.tb-grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
.tb-grid dt { font-size: 0.74rem; color: var(--ink-3); }
.tb-grid dd { margin: 2px 0 0; font-weight: 600; font-size: 0.93rem; }

/* ---- sections ---- */

.rest { min-width: 0; }
.block { padding: clamp(40px, 5.5vw, 84px) var(--gut); border-bottom: 1px solid var(--ink); }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.9rem); line-height: 1.02; letter-spacing: -0.022em; font-variation-settings: 'wdth' 84; text-wrap: balance; max-width: 18em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 0.3em; letter-spacing: -0.005em; font-variation-settings: 'wdth' 92; }
.block p { max-width: 36em; }

.sheets {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  margin-top: clamp(24px, 3vw, 40px);
  align-items: start;
}
.sh { margin: 0; }
.sh img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); background: #fff; }
.sh figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--ink-2); display: flex; gap: 12px; align-items: baseline; }
.sh figcaption span { font-weight: 700; font-size: 0.8rem; border: 1px solid var(--ink); padding: 1px 7px; color: var(--ink); white-space: nowrap; }
.sh-plans { grid-column: 1 / 9; }
.sheets-text { grid-column: 9 / 13; }
.sheets-text p:first-child { margin-top: 0; }
.sheets-text p { font-size: 0.97rem; color: var(--ink-2); }
.sh-elev { grid-column: 1 / 7; }
.sh-struct { grid-column: 7 / 13; }
.aside-note { margin: 28px 0 0; font-size: 0.9rem; color: var(--ink-3); }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); margin-top: 22px; }
.cols p { margin: 0 0 1.1em; max-width: 30em; }
.cols p strong { font-family: var(--display); font-variation-settings: 'wdth' 90; font-weight: 700; }

.band { background: var(--blue); color: #eef2f5; border-bottom: 1px solid var(--ink); }
.band-in {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(40px, 5.5vw, 84px) var(--gut);
  align-items: center;
}
.band h2 { color: #fff; }
.band p { max-width: 34em; color: #d3dee8; }
.band blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brass); font: 500 1.18rem/1.4 var(--display); font-variation-settings: 'wdth' 92; color: #fff; max-width: 28em; }
.band .codes { font-size: 0.93rem; color: var(--blue-ink); }
.band-fig { margin: 0; background: var(--plaster); }
.band-fig img { display: block; width: 100%; height: auto; }
.band-fig figcaption { color: var(--ink-3); }

.limits { list-style: none; margin: 26px 0 0; padding: 0; max-width: 46em; border-top: 1px solid var(--line); }
.limits li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.limits strong { font-family: var(--display); font-variation-settings: 'wdth' 90; }

.faq { margin-top: 22px; max-width: 46em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 36px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.4rem/1 var(--ui); color: var(--brass-ink); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); max-width: 38em; }

.foot { padding: 26px var(--gut) 30px; font-size: 0.88rem; color: var(--ink-3); display: grid; gap: 10px; }
.foot p { margin: 0; max-width: 46em; }
.foot p:last-child { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: var(--ink-2); }

/* ---- smaller screens: the title block moves under the hero ---- */

@media (max-width: 1100px) {
  .sheet { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'top' 'hero' 'tb' 'rest' 'foot'; grid-template-rows: auto; }
  .titleblock { position: static; border-left: 0; border-bottom: 1px solid var(--ink); min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .tb-name { grid-column: 1; border-bottom: 0; border-right: 1px solid var(--ink); }
  .tb-join { grid-column: 2; grid-row: 1 / 3; border-bottom: 0; }
  .tb-grid { grid-column: 1; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .band-in { grid-template-columns: minmax(0, 1fr); }
  .sh-plans, .sheets-text, .sh-elev, .sh-struct { grid-column: 1 / -1; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .titleblock { display: block; }
  .tb-name, .tb-grid { border-right: 0; }
  .tb-name { border-bottom: 1px solid var(--ink); }
  .tb-join { border-bottom: 1px solid var(--ink); }
  .top nav { display: none; }
}

/* ---- legal pages and 404 ---- */

.doc { max-width: 46rem; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gut) 72px; }
.doc h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 0.4em; }
.doc h2 { font-size: 1.5rem; margin: 2em 0 0.4em; max-width: none; letter-spacing: -0.01em; }
.doc p, .doc li { max-width: 42em; }
.doc .draft { background: #f6ecd9; border-left: 3px solid var(--brass); padding: 12px 16px; font-size: 0.93rem; }
.doc .back { display: inline-block; margin-bottom: 28px; font-size: 0.93rem; }
.doc-wrap { max-width: 1100px; margin: clamp(8px, 1.6vw, 24px) auto; background: var(--paper); border: 1.5px solid var(--ink); }

/* ---- the sign-up page, laid out like a Google Form: a header card, one card per question ---- */
.gform-page { background: var(--plaster); }
.gform-wrap { max-width: 44rem; margin: 0 auto; padding: clamp(20px, 4vw, 48px) var(--gut) 72px; }
.gform-wrap .back { display: inline-block; margin-bottom: 18px; font-size: 0.93rem; }
.gform { display: grid; gap: 14px; }
.gform[hidden], .gdone[hidden] { display: none; }
.gcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px 26px 26px; margin: 0; min-width: 0; }
.gcard-head { border-top: 10px solid var(--brass); padding-top: 22px; }
.gcard-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.08; letter-spacing: -0.02em; font-variation-settings: 'wdth' 90; }
.gcard-head p { margin: 0.7em 0 0; color: var(--ink-2); }
.gcard-head .greq-note { padding-top: 14px; margin-top: 16px; border-top: 1px solid var(--line-soft); font-size: 0.9rem; color: #a33a2c; }
fieldset.gcard > legend.gq { float: left; width: 100%; }
fieldset.gcard > legend.gq + * { clear: both; }
.gq { display: block; padding: 0; font-weight: 600; font-size: 1.05rem; margin-bottom: 18px; }
.greq { color: #a33a2c; }
.gopt { font-weight: 400; color: var(--ink-3); }
.gline { width: min(100%, 26rem); font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0 7px; }
.gline:focus { outline: none; border-bottom: 2px solid var(--brass); padding-bottom: 6px; }
.gline::placeholder { color: var(--ink-3); }
.ghelp { margin: 10px 0 0; font-size: 0.88rem; color: var(--ink-3); }
.gchoices { display: grid; gap: 4px; }
.gchoice { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 1rem; font-weight: 400; cursor: pointer; }
.gchoice input[type="radio"] { width: 20px; height: 20px; margin: 0; accent-color: var(--brass-ink); flex: none; }
.gchoice-other .gline { width: auto; flex: 1; min-width: 0; }
.gactions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.gactions button[type="submit"] { font: inherit; font-weight: 600; font-size: 1rem; color: #fff; background: var(--ink); border: 0; border-radius: 6px; padding: 12px 28px; min-height: 44px; cursor: pointer; }
.gactions button[type="submit"]:hover { background: var(--brass-ink); }
.gclear { font: inherit; font-size: 0.95rem; color: var(--brass-ink); background: none; border: 0; padding: 10px 4px; min-height: 44px; cursor: pointer; }
.gclear:hover { text-decoration: underline; }
.gform .join-note { margin: 0; min-height: 0; font-size: 0.93rem; }
.gform .join-note.warn { color: #8c3b2f; }
.gtrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gdone h1 { margin-bottom: 0.2em; }
.gsmall { margin: 0; font-size: 0.85rem; color: var(--ink-3); }
@media (max-width: 520px) { .gcard { padding: 20px 18px 22px; } }
