/* ==========================================================================
   ulgama.com · the public website (D-075), after the handoff's
   "Ulgama - Website.dc.html". Light only, on tokens.css 2.0 (the layout pins
   data-theme="light"). No inline styles anywhere: the CSP forbids them.
   Sizes in rem against a 16px root, so they follow the reader's setting.
   ========================================================================== */

:root {
  --frame: #C9C1AF;        /* screenshot frames */
  --shell-field: #4A463E;  /* the email field's edge on the ink band */
  --quiet-line: #B9B1A1;   /* the margin index's idle line */
  --wrap: 1180px;
  --gutter: 24px;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

html { font-size: 100%; scroll-padding-top: 40px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.site {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.5;
}
.site h1, .site h2, .site h3, .site p, .site ul, .site ol { margin: 0; }
.site button, .site input { font: inherit; }
.site input::placeholder { color: var(--on-shell-2); opacity: 1; }
.site a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.site a:hover { color: var(--brand-pressed); text-decoration-thickness: 2px; }
.site :focus-visible { outline: var(--focus-width) solid var(--brand); outline-offset: var(--focus-gap); }
.site [hidden] { display: none !important; }

.wrap { box-sizing: border-box; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.main { flex: 1; position: relative; }
.quiet { color: var(--ink-2); }
.measure { max-width: 70ch; }
.rule { height: 3px; box-sizing: border-box; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.visually-hidden, .trap {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 20; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--card); }
.skip:focus { top: 8px; }

/* --- Buttons and links --------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; box-sizing: border-box;
  border: 0; border-radius: var(--radius-sm);
  background: var(--brand); color: var(--on-brand);
  font-weight: 600; cursor: pointer;
}
.site a.button { color: var(--on-brand); text-decoration: none; }
.site .button:hover { background: var(--brand-pressed); color: var(--on-brand); }
.link {
  display: inline-flex; align-items: center; align-self: flex-start;
  min-height: 44px; padding: 0; border: 0; background: transparent;
  color: var(--brand); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.2em;
}

/* --- Header -------------------------------------------------------------- */
.head { background: var(--shell); color: var(--on-shell); }
.head__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; min-height: 72px; }
.site .brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--on-shell); text-decoration: none; }
.site .brand:hover { color: var(--on-shell); }
.brand__word { font-family: var(--font-serif); font-weight: 600; font-size: 1.625rem; line-height: 1; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.site .nav__item {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-sm); color: var(--on-shell-2); text-decoration: none;
}
.site .nav__item:hover { background: var(--shell-2); color: var(--on-shell); }
.site .nav__item[aria-current="page"] { background: var(--shell-2); color: var(--on-shell); font-weight: 600; }
.site .nav__join {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin-left: 8px;
  border-radius: var(--radius-sm); background: var(--on-shell); color: var(--shell);
  font-weight: 600; text-decoration: none;
}
.site .nav__join:hover { background: var(--paper); color: var(--shell); }

/* --- Footer -------------------------------------------------------------- */
.foot { border-top: 1px solid var(--hairline); background: var(--paper); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 28px; padding-bottom: 36px; font-size: 1rem; color: var(--ink-2); }
.foot__row a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__credit strong { color: var(--ink); font-weight: 600; }
.foot__status { margin-left: auto; }
.foot__note { flex-basis: 100%; font-size: 0.875rem; color: var(--control-border); }

/* --- Shared section furniture ------------------------------------------- */
.band { padding-top: 80px; display: flex; flex-direction: column; gap: 24px; }
.band--last { padding-bottom: 88px; }
.sec-head { display: flex; flex-direction: column; gap: 10px; }
.sec-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head--baseline { align-items: baseline; }
.sec-n { font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink-2); }
.sec-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.125rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -0.015em; }
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.tag--late { background: var(--brick-tint); color: var(--brick); }
.tag--act { background: var(--brand); color: var(--on-brand); }
.tag--soon { background: var(--paper-2); color: var(--ink-2); }

/* --- The margin index (01–05), wide screens only ------------------------- */
.rail { display: none; }
@media (min-width: 1100px) {
  .rail { position: fixed; left: 20px; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; gap: 14px; }
}
.site .rail__item { display: flex; align-items: center; gap: 8px; min-height: 24px; color: var(--control-border); text-decoration: none; }
.rail__n { font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1; }
.rail__line { display: block; height: 1px; width: 12px; background: var(--quiet-line); transition: width 0.2s var(--ease-out); }
.site .rail__item.is-active { color: var(--ink); }
.rail__item.is-active .rail__line { width: 28px; background: var(--ink); }

/* --- Home: the hero and the register card -------------------------------- */
.hero { background: var(--shell) repeating-linear-gradient(to bottom, transparent 0 43px, var(--shell-2) 43px 44px); color: var(--on-shell); }
.hero__grid { padding-top: 80px; padding-bottom: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 56px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero__date { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--on-shell-2); }
.hero__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.75rem, 6vw, 5rem); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; }
.hero__title em { font-style: italic; font-weight: 400; color: var(--on-shell-2); }
.hero__lede { font-size: 1.375rem; line-height: 1.45; color: var(--on-shell-2); max-width: 36ch; }
.hero__note { font-size: 0.9375rem; color: var(--on-shell-2); }

.join { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; max-width: 520px; }
.join__email {
  flex: 1 1 220px; min-height: 48px; padding: 8px 14px; box-sizing: border-box;
  border: 1px solid var(--control-border); border-radius: var(--radius-sm);
  background: var(--on-brand); color: var(--ink);
}
.join--dark .join__email { flex-basis: 240px; border-color: var(--shell-field); background: var(--card); }

.register { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: var(--radius-sm); box-shadow: 0 30px 60px rgb(0 0 0 / 0.35); }
.register > .rule { margin: 0 24px; }
.register__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 24px 12px; }
.register__title { font-family: var(--font-serif); font-size: 1.875rem; line-height: 1; }
.register__date { font-family: var(--font-serif); font-style: italic; font-size: 1.1875rem; color: var(--ink-2); white-space: nowrap; }
.register__rows { padding: 8px 0 4px; list-style: none; display: flex; flex-direction: column; }
.register__row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 24px; border-bottom: 1px solid var(--hairline);
  animation: site-rise 0.5s var(--ease-out) both;
}
.register__row:nth-child(1) { animation-delay: 0.15s; }
.register__row:nth-child(2) { animation-delay: 0.27s; }
.register__row:nth-child(3) { animation-delay: 0.39s; }
.register__row:nth-child(4) { animation-delay: 0.51s; }
.register__stamp { display: flex; flex-direction: column; align-items: center; line-height: 1; border-right: 1px solid var(--hairline); padding-right: 12px; }
.register__dow { font-size: 0.8125rem; color: var(--ink-2); }
.register__day { font-family: var(--font-serif); font-size: 1.625rem; }
.register__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.register__task { font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.register__meta { font-size: 0.9375rem; color: var(--ink-2); }
.register__note { padding: 12px 24px 18px; font-size: 0.9375rem; color: var(--ink-2); }
@media (max-width: 480px) {
  .register__row { grid-template-columns: 52px minmax(0, 1fr); padding: 12px 16px; }
  .register__row .tag { grid-column: 2; justify-self: start; }
  .register__head, .register__note { padding-left: 16px; padding-right: 16px; }
  .register > .rule { margin: 0 16px; }
}

/* --- Home 01: what the law already asks ---------------------------------- */
.law { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: start; }
.law__ask { display: flex; flex-direction: column; gap: 18px; }
.ticks { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.tick {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 16px; box-sizing: border-box;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm); cursor: pointer;
}
.tick__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick__box {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none; box-sizing: border-box;
  border: 2px solid var(--control-border); border-radius: var(--radius-sm); background: var(--on-brand); color: transparent;
}
.tick__label { flex: 1; }
.tick__plus { font-family: var(--font-serif); font-size: 1.375rem; color: var(--ink-2); }
.tick.is-on { border-color: var(--ink); background: var(--card); }
.tick__input:checked + .tick__box { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.tick__input:focus-visible + .tick__box { outline: var(--focus-width) solid var(--brand); outline-offset: var(--focus-gap); }

.sum {
  display: flex; flex-direction: column; gap: 16px; padding: 32px;
  border: 1.5px solid var(--ink); border-radius: var(--radius-sm); background: var(--card);
  position: sticky; top: 24px;
}
.sum__label { font-size: 0.9375rem; color: var(--ink-2); }
.sum__count { display: flex; align-items: baseline; gap: 12px; }
.sum__number { font-family: var(--font-serif); font-size: clamp(4.5rem, 10vw, 7.5rem); line-height: 0.85; letter-spacing: -0.03em; }
.sum__unit { font-size: 1.25rem; color: var(--ink-2); }
.sum__line { font-family: var(--font-serif); font-style: italic; font-size: 1.375rem; line-height: 1.25; }
.sum__note { font-size: 0.9375rem; color: var(--ink-2); }
.sum__go { align-self: flex-start; }
@media (max-width: 480px) { .sum { padding: 24px 20px; position: static; } }

.ruler { display: flex; flex-direction: column; gap: 4px; }
.ruler__bar { display: block; width: 100%; height: 12px; border-bottom: 1px solid var(--ink); }
.ruler__bar--small { height: 8px; }
.ruler__fill { fill: var(--ink); transition: width 0.6s var(--ease-out); }
.ruler__scale { display: flex; justify-content: space-between; font-size: 0.9375rem; color: var(--ink-2); }

/* --- Home 02: three shelves --------------------------------------------- */
.shelves { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.shelf { display: flex; flex-direction: column; gap: 12px; }
.shelf__board { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding: 0 10px; border-bottom: 6px solid var(--ink); }
.spine {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: min(14%, 34px); flex: 1 1 0; height: 84px; padding: 8px 0;
  background: var(--ink); color: var(--paper); border-radius: 2px 2px 0 0;
}
.spine:nth-child(6n + 2) { background: var(--ink-2); }
.spine:nth-child(6n + 3) { background: var(--brand); }
.spine:nth-child(6n + 4) { background: var(--control-border); }
.spine:nth-child(6n + 6) { background: var(--ink-2); }
/* Heights 84 + (i × 37 mod 50) px, as the design draws them. */
.spine:nth-child(2) { height: 121px; }
.spine:nth-child(3) { height: 108px; }
.spine:nth-child(4) { height: 95px; }
.spine:nth-child(5) { height: 132px; }
.spine:nth-child(6) { height: 119px; }
.spine:nth-child(7) { height: 106px; }
.spine:nth-child(8) { height: 93px; }
.spine__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 100%; }
.shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shelf__name { font-family: var(--font-serif); font-weight: 500; font-size: 1.75rem; line-height: 1.1; }
.shelf__count { font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink-2); }
.shelf__desc { font-size: 1.0625rem; color: var(--ink-2); }

/* --- Home 03: look inside ------------------------------------------------ */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.site .tab {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; box-sizing: border-box;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  color: var(--brand); font-weight: 600; text-decoration: none;
}
.site .tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.shot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; align-items: start; }
.shot__frame { border: 1px solid var(--frame); overflow: hidden; }
.shot__image { display: block; width: 100%; aspect-ratio: 1280 / 760; object-fit: cover; object-position: top; background: var(--paper); }
.shot__frame--phone { display: flex; justify-content: center; padding: 24px; border: 0; border-radius: var(--radius-sm); background: var(--paper-2); }
.shot__frame--phone .shot__image { width: 280px; max-width: 100%; aspect-ratio: 375 / 812; border: 1px solid var(--frame); box-sizing: border-box; }
.shot__text { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.shot__title { font-family: var(--font-serif); font-weight: 500; font-size: 2rem; line-height: 1.1; }

/* --- Home 04: a decision -------------------------------------------------- */
.dark { background: var(--shell); color: var(--on-shell); }
.story-band { margin-top: 80px; }
.story { padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 56px; align-items: center; }
.story__text { display: flex; flex-direction: column; gap: 18px; }
.dark .sec-n, .story__lede { color: var(--on-shell-2); }
.story__soon { display: inline-flex; align-self: flex-start; padding: 2px 10px; border-radius: var(--radius-sm); background: var(--shell-2); color: var(--on-shell-2); font-size: 0.9375rem; font-weight: 600; }
.timeline { padding: 0; list-style: none; display: flex; flex-direction: column; border-left: 2px solid var(--on-shell); }
.timeline__entry { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0 16px 24px; position: relative; }
.timeline__entry::before { content: ""; position: absolute; left: -7px; top: 24px; width: 12px; height: 12px; border-radius: 999px; background: var(--on-shell); }
.timeline__when { font-family: var(--font-serif); font-size: 1.25rem; color: var(--on-shell-2); line-height: 1.3; }
.timeline__what { display: flex; flex-direction: column; gap: 4px; }
.timeline__how { font-size: 0.9375rem; color: var(--on-shell-2); }
@media (max-width: 480px) { .timeline__entry { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* --- Home 05: four places ------------------------------------------------ */
.places { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.place { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; }
.place__mark { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.place__lock { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--ink); color: var(--paper); flex: none; }
.place__n { font-family: var(--font-serif); font-size: 2.5rem; line-height: 1; color: var(--ink-2); }
.place__text { font-size: 1rem; color: var(--ink-2); }

/* --- Home: closing -------------------------------------------------------- */
.closing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; align-items: center;
  padding: 40px; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); background: var(--card);
}
.closing__text { display: flex; flex-direction: column; gap: 12px; }
.closing__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.05; letter-spacing: -0.015em; }
@media (max-width: 480px) { .closing { padding: 24px 20px; } }

/* --- Inner pages ----------------------------------------------------------- */
.page { padding-top: 72px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.page--steps { gap: 64px; }
.page--prose { max-width: 800px; gap: 28px; }
.page--waitlist { padding-bottom: 88px; }
.page__head { display: flex; flex-direction: column; gap: 16px; }
.page__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1; letter-spacing: -0.015em; }
.page__lede { font-size: 1.25rem; color: var(--ink-2); max-width: 60ch; }
.page__date { font-family: var(--font-serif); font-style: italic; font-size: 1.375rem; color: var(--ink-2); }
.page__meta { font-size: 1rem; color: var(--ink-2); }

.step { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; align-items: center; }
.step__image { display: block; width: 100%; aspect-ratio: 1280 / 720; object-fit: cover; object-position: top; border: 1px solid var(--frame); background: var(--paper-2); box-sizing: border-box; }
.step__text { display: flex; flex-direction: column; gap: 14px; }
.step__n { font-family: var(--font-serif); font-size: 1.625rem; color: var(--ink-2); }
.step__title { font-family: var(--font-serif); font-weight: 500; font-size: 2.375rem; line-height: 1.05; letter-spacing: -0.01em; }

/* Trust */
.picture { padding: 0; list-style: none; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); background: var(--card); }
.picture__place { display: flex; flex-direction: column; }
.picture__lock { display: flex; align-items: center; gap: 8px; padding: 6px 20px; background: var(--paper-2); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 1rem; font-weight: 600; }
.picture__lock .lock { width: 16px; height: 16px; flex: none; }
.picture__body { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); gap: 8px 24px; padding: 18px 20px; }
.picture__name { display: flex; flex-direction: column; gap: 2px; }
.picture__title { font-family: var(--font-serif); font-size: 1.625rem; line-height: 1.1; }
.picture__who { font-size: 1rem; color: var(--ink-2); }
.facts { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.facts li { display: flex; gap: 10px; }
.facts li::before { content: ""; width: 6px; height: 6px; background: var(--ink); flex: none; margin-top: 10px; }
@media (max-width: 640px) { .picture__body { grid-template-columns: minmax(0, 1fr); } }

.honest { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 24px; border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--paper-2); align-items: start; }
.honest__side { display: flex; flex-direction: column; gap: 8px; }
.honest__title { font-family: var(--font-serif); font-size: 1.625rem; line-height: 1.1; }
.honest__hint { font-size: 0.9375rem; color: var(--ink-2); }
.honest__main { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 640px) { .honest { grid-template-columns: minmax(0, 1fr); } }
.door { padding: 0; border: 0; background: transparent; cursor: pointer; align-self: flex-start; }
.door svg { display: block; }
.door__wall { fill: var(--ink); }
.door__gap { fill: var(--paper); }
.door__leaf { transform-origin: 42px 31px; transition: transform 0.3s var(--ease-out); }
.door[aria-expanded="true"] .door__leaf { transform: scaleX(0.15); }
.guards { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; animation: site-rise 0.3s var(--ease-out) both; }
.guard { display: flex; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); background: var(--card); font-size: 1rem; }
.guard__lock { flex: none; margin-top: 3px; }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.pair--ruled { padding-top: 24px; border-top: 1px solid var(--ink); }
.panel { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--card); }
.panel--strong { border: 1.5px solid var(--ink); }
.panel__head { display: flex; align-items: center; gap: 8px; }
.panel__title { font-size: 1.25rem; font-weight: 600; }
.panel__list { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 1.0625rem; }
.panel__note { font-size: 1rem; color: var(--ink-2); }

/* Privacy: the published page's own markup */
.prose { display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.75rem; line-height: 1.15; margin-top: 18px; }
.prose ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }

/* --- Waitlist -------------------------------------------------------------- */
.wl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: start; }
.wl__form { display: flex; flex-direction: column; gap: 16px; }
.notice { padding: 12px 16px; border: 1.5px solid var(--brick); border-radius: var(--radius-sm); background: var(--brick-tint); color: var(--ink); }
.ledger { display: flex; flex-direction: column; margin: 0; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); background: var(--card); }
.ledger__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--hairline); min-width: 0; }
.ledger__row--top { align-items: start; }
fieldset.ledger__row > legend { float: left; padding: 8px 0 0; }
.ledger__label { font-family: var(--font-serif); font-size: 1.25rem; color: var(--ink-2); }
.ledger__input {
  min-height: 44px; padding: 6px 0; box-sizing: border-box; width: 100%;
  border: 0; border-bottom: 1px solid var(--control-border); border-radius: 0;
  background: transparent; color: var(--ink); font-size: 1.25rem; outline: none;
}
.ledger__input:focus-visible { border-bottom: 2px solid var(--brand); }
.ledger__input[aria-invalid="true"] { border-bottom: 2px solid var(--brick); }
.ledger__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px; }
.ledger__note { font-size: 0.9375rem; color: var(--ink-2); }
@media (max-width: 520px) {
  .ledger__row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; }
  fieldset.ledger__row > legend { float: none; padding: 0 0 6px; }
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--small { gap: 6px; }
.chip { position: relative; display: inline-flex; }
.chip__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip__face {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid var(--control-border); border-radius: var(--radius-sm);
  background: var(--card); color: var(--brand); font-weight: 600; cursor: pointer;
}
.chips--small .chip__face { min-height: 40px; padding: 0 12px; border-color: var(--hairline); background: transparent; font-size: 0.9375rem; }
.chip__input:checked + .chip__face { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip__input:focus-visible + .chip__face { outline: var(--focus-width) solid var(--brand); outline-offset: var(--focus-gap); }

.entered { display: flex; flex-direction: column; gap: 18px; padding: 32px; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); background: var(--card); }
.entered__mark { display: flex; align-items: center; gap: 10px; color: var(--moss); font-weight: 600; }
.entered__title { font-family: var(--font-serif); font-weight: 500; font-size: 2.5rem; line-height: 1.05; }
.entered strong { color: var(--ink); }
.entered__next { padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 1rem; color: var(--ink-2); }

.preview { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--frame); border-radius: var(--radius-sm); box-shadow: 0 24px 48px rgb(27 26 23 / 0.14); }
.preview__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--shell); color: var(--on-shell); border-radius: 3px 3px 0 0; }
.preview__initials { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--on-shell); color: var(--shell); font-size: 0.8125rem; font-weight: 600; flex: none; }
.preview__org { font-weight: 600; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 16px; }
.preview__body .register__head { padding: 0; }
.preview__line { font-size: 0.9375rem; color: var(--ink-2); }
.preview__shelf { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--card); }
.preview__shelf-head { display: flex; align-items: baseline; justify-content: space-between; }
.preview__count { font-family: var(--font-serif); font-size: 1.75rem; line-height: 1; }
.preview__note { font-size: 0.9375rem; color: var(--ink-2); }
.preview__rows { padding: 0; list-style: none; display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--card); }
.preview__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--hairline); font-size: 0.9375rem; }
.preview__row.is-first { border-top: 0; }
.preview__row .quiet { white-space: nowrap; }
.preview__foot { font-size: 0.875rem; color: var(--ink-2); }
.stamp {
  position: absolute; right: 18px; top: 64px; padding: 6px 14px;
  border: 3px solid var(--brick); border-radius: var(--radius-sm); background: rgb(243 238 226 / 0.85);
  color: var(--brick); font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: 0.06em;
  transform: rotate(-6deg); animation: site-stamp 0.5s var(--ease-out) 0.1s both;
}

@keyframes site-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes site-stamp {
  0% { opacity: 0; transform: scale(1.08) rotate(-6deg); }
  60% { opacity: 1; transform: scale(0.98) rotate(-6deg); }
  100% { transform: scale(1) rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
}
@media (max-width: 640px) {
  .head__bar { padding-top: 8px; padding-bottom: 8px; }
  .site .nav__join { margin-left: 0; }
  .foot__status { margin-left: 0; }
  .hero__grid { padding-top: 48px; padding-bottom: 48px; gap: 40px; }
  .band { padding-top: 56px; }
  .page { padding-top: 48px; }
}

/* --- The Trust letter: three letter pages (the handoff's "Trust diagram") -------------------
   On screen, three sheets on the paper; printed, three US Letter pages and nothing else. */
.letter-intro { padding-top: 56px; display: flex; flex-direction: column; gap: 14px; }
.sheets { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 32px var(--gutter) 88px; }
.sheet {
  box-sizing: border-box; width: 8.5in; max-width: 100%; min-height: 11in;
  display: flex; flex-direction: column; gap: 7pt; padding: 0.5in 0.55in 0.4in;
  background: var(--paper); color: var(--ink); font-size: 12pt; line-height: 1.3;
  border: 1px solid var(--frame); box-shadow: 0 18px 40px rgb(27 26 23 / 0.12);
}
.sheet__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16pt; }
.sheet__titles { flex: 1 0 auto; display: flex; flex-direction: column; gap: 3pt; }
.sheet__brand { display: flex; align-items: center; gap: 8pt; }
.sheet__word { font-family: var(--font-serif); font-weight: 600; font-size: 19pt; line-height: 1; letter-spacing: -0.01em; }
.sheet__title { font-family: var(--font-serif); font-weight: 500; font-size: 22pt; line-height: 1.05; letter-spacing: -0.01em; }
.sheet__aside { flex: 0 1 2.3in; text-align: right; color: var(--ink-2); }
.sheet__foot { margin-top: auto; display: flex; justify-content: space-between; gap: 12pt; color: var(--ink-2); }
.sheet__foot strong { color: var(--ink); }
.sheet .picture__lock { padding: 3pt 10pt; font-size: 12pt; }
.sheet .picture__body { grid-template-columns: 1.25in minmax(0, 1fr); gap: 0 10pt; padding: 6pt 10pt; }
.sheet .picture__title { font-size: 14pt; }
.sheet .picture__who { font-size: 12pt; }
.sheet .facts { gap: 2pt; }
.sheet .facts li::before { width: 5pt; height: 5pt; margin-top: 5pt; }
.honest--letter { display: flex; flex-direction: column; gap: 5pt; padding: 8pt 10pt; }
.honest__head { display: flex; align-items: center; gap: 10pt; flex-wrap: wrap; }
.honest--letter .honest__title { font-size: 14pt; }
.sheet .panel { gap: 5pt; padding: 7pt 10pt; }
.sheet .panel__title { font-size: 12pt; line-height: 1.2; }
.sheet .panel__list { font-size: 12pt; line-height: 1.25; }
.panel__list--two { display: grid; grid-template-columns: 1fr 1fr; gap: 8pt 16pt; }
.crossing { padding: 0; list-style: none; display: flex; flex-direction: column; border: 1px solid var(--control-border); border-radius: var(--radius-sm); background: var(--card); }
.crossing li { display: grid; grid-template-columns: 1.5in minmax(0, 1fr); gap: 10pt; padding: 4pt 10pt; border-top: 1px solid var(--hairline); }
.crossing li:first-child { border-top: 0; }
.pair--closed { padding: 7pt 0; gap: 12pt; border-bottom: 1px solid var(--ink); }
.keys { padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6pt 16pt; line-height: 1.2; }
.keys li { display: grid; grid-template-columns: 26pt minmax(0, 1fr); gap: 6pt; align-items: center; }
.key__line { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.key__fill { fill: var(--ink); }
.who { width: 100%; border-collapse: collapse; table-layout: fixed; border: 1.5pt solid var(--ink); background: var(--card); }
.who th, .who td { padding: 7pt; text-align: left; vertical-align: top; border-top: 1px solid var(--hairline); overflow-wrap: anywhere; hyphens: auto; }
.who td, .who thead th + th { border-left: 1px solid var(--hairline); }
.who thead th { border-top: 0; border-bottom: 1.5pt solid var(--ink); font-weight: 600; }
.who thead th:first-child { width: 26%; }
.who tbody th { font-weight: 400; }
.who__cell { display: flex; gap: 5pt; align-items: baseline; }
.who__cell svg { flex: none; position: relative; top: 1pt; }
.who__no { color: var(--ink-2); }
@media (max-width: 700px) {
  .sheet { min-height: 0; padding: 20px 16px; font-size: 1rem; }
  .sheet__head { flex-direction: column; align-items: flex-start; }
  .sheet__aside { text-align: left; max-width: none; }
  .sheet .picture__body, .crossing li, .panel__list--two, .keys, .pair--closed { grid-template-columns: minmax(0, 1fr); }
  .who { font-size: 0.875rem; }
  .who th, .who td { padding: 5px; }
}

@page { size: letter; margin: 0; }
@media print {
  .site { background: #fff; }
  .site .head, .site .foot, .site .rail, .letter-intro, .skip { display: none !important; }
  .sheets { display: block; padding: 0; }
  .sheet { width: 8.5in; height: 11in; min-height: 0; border: 0; box-shadow: none; break-after: page; overflow: hidden; }
  .sheet:last-child { break-after: auto; }
  .site * { animation: none !important; transition: none !important; }
}
