/* Public pages — the landing and the founder's letter.
   gate.css was written for the membership forms: small serif body, sans
   labels, chrome sized for fields. These pages are editorial and need a
   display scale and a reading measure the form styles never had.
   Every colour here is gate.css's own token; nothing is redefined. */

.shell-leaf{max-width:1000px;margin:0 auto;padding:0 28px 64px}

/* A record has edges, not rounded corners. */
.leaf{
  background:var(--paper);
  border:1px solid var(--rule);
  border-top:2px solid var(--purple);
  box-shadow:0 18px 38px -24px rgba(36,31,46,.32);
}

/* One measure for the whole page: the seal rule and the text column share
   the same width, so nothing disagrees about where the margin is. */
.impress,.leaf-body{max-width:860px;margin:0 auto}
.impress{display:flex;align-items:center;gap:28px;padding:44px 30px 34px}
.impress::before,.impress::after{
  content:"";flex:1;border-top:1px solid var(--rule);
}
/* The emblem art carries its own ring. A drawn circle and a second one inside
   it made three, so the seal now stands on its own between the rules. */
.impress-seal{flex:0 0 auto;width:96px;height:96px}
.impress-seal img{width:100%;height:100%;object-fit:contain;display:block}

.leaf-body{padding:0 30px 52px}

.display{
  font-family:var(--serif);font-weight:300;font-size:2.7rem;line-height:1.12;
  letter-spacing:-.02em;margin:0 0 22px;text-wrap:balance;
}
.opening{
  font-family:var(--serif);font-size:1.2rem;line-height:1.58;
  color:var(--ink);margin:0 0 20px;
}
.leaf-body p{margin:0 0 18px;color:var(--ink)}
.leaf-body p.tight{margin-bottom:10px}

.section{margin-top:40px;padding-top:28px;border-top:1px solid var(--rule);clear:both}
.section h2{
  font-family:var(--serif);font-weight:400;font-size:1.35rem;
  letter-spacing:-.01em;margin:0 0 14px;
}

/* A plate is a reproduction of the thing itself, so it gets a page edge
   rather than a rounded card. Inset must sit before the text it wraps. */
.record-plate{margin:28px 0 0}
.record-plate img{display:block;width:100%;height:auto;border:1px solid var(--rule)}
.record-plate figcaption{
  font-family:var(--sans);font-size:.73rem;color:var(--ink-faint);
  margin-top:9px;line-height:1.5;
}
.record-plate.inset{float:right;width:240px;margin:4px 0 20px 32px}

.signoff{font-family:var(--serif);color:var(--ink-soft);margin-top:32px;line-height:1.7}
.signoff em{color:var(--ink)}

.backlink{font-family:var(--sans);font-size:.78rem;margin:0 0 26px}

@media (max-width:620px){
  .shell-leaf{padding:0 14px 40px}
  .impress{padding:26px 20px 20px;gap:14px}
  .impress-seal{width:74px;height:74px}
  .leaf-body{padding:0 20px 32px}
  .display{font-size:1.85rem}
  .record-plate.inset{float:none;width:100%;margin:24px 0 0}
}

/* A failed submission has to be visible from where the eye already is, not
   found by scrolling. Errors state what happened and how to fix it. */
.alert{
  border-left:3px solid #A3282D;background:#FCF4F4;
  padding:16px 20px;margin:0 0 24px;
  font-family:var(--sans);font-size:.85rem;line-height:1.6;color:var(--ink);
}
.alert b{display:block;margin-bottom:6px;font-size:.92rem}
.alert ul{margin:0 0 8px;padding-left:18px}
.alert a{font-size:.8rem}

/* Two sections that answer the same question from opposite sides read better
   beside each other than stacked. Below 760px they stack and the divider
   between them becomes a rule above the second. */
.pair{display:grid;grid-template-columns:1fr 1fr;gap:0 44px;
      margin-top:40px;padding-top:28px;border-top:1px solid var(--rule)}
.pair > div{min-width:0}
.pair h2{font-family:var(--serif);font-weight:400;font-size:1.35rem;
         letter-spacing:-.01em;margin:0 0 12px}
.pair p{margin-bottom:0;font-size:.95rem}
@media (max-width:760px){
  .pair{grid-template-columns:1fr;gap:0}
  .pair > div + div{margin-top:26px;padding-top:22px;border-top:1px solid var(--rule)}
}

/* The CTA and the two links beneath it were sitting on top of one another. */
.foot.center{margin-top:38px}
.assurance{margin-top:26px;line-height:1.9}

/* Mobile: the generous page rhythm turns into a long scroll on a small
   screen. Tighten the vertical spacing without touching the measure. */
@media (max-width:620px){
  .leaf-body p{margin-bottom:14px}
  .section{margin-top:28px;padding-top:20px}
  .opening{font-size:1.08rem;margin-bottom:16px}
  .display{margin-bottom:16px}
  .what li{margin-bottom:7px}
  .record-plate.inset{margin-top:18px}
  .foot.center{margin-top:26px}
  .assurance{margin-top:18px}
}

/* Questions and glossary: editorial pages on the same measure. A question is
   a heading you can scan; its answer sits under it and nowhere else. */
.qa{margin-top:30px;padding-top:22px;border-top:1px solid var(--rule)}
.qa h2{font-family:var(--serif);font-weight:400;font-size:1.28rem;
  letter-spacing:-.01em;margin:0 0 12px;text-wrap:balance}
.qa p:last-child{margin-bottom:0}
.gloss{margin:26px 0 0}
.gloss dt{font-family:var(--sans);font-size:.86rem;font-weight:600;
  color:var(--purple);margin-top:20px}
.gloss dd{margin:4px 0 0;color:var(--ink)}
@media (max-width:620px){
  .qa{margin-top:22px;padding-top:16px}
  .qa h2{font-size:1.12rem}
}

/* Two diagrams: nouns nested, verbs in order. HTML and CSS rather than SVG,
   so they reflow on a phone and the words stay selectable and searchable. */
.shape{margin:20px 0 0}
.tier{border-left:2px solid var(--rule);padding:9px 0 2px 14px}
.tier .tier{margin-top:12px}
.shape > .tier{border-left-color:var(--purple)}
.shape > .tier > .tier{border-left-color:var(--purple-mid)}
.shape > .tier > .tier > .tier{border-left-color:#C7B6E2}
.tier > b{font-family:var(--sans);font-size:.88rem;display:block;color:var(--ink)}
.tier > small{font-family:var(--sans);font-size:.76rem;color:var(--ink-faint);
  display:block;margin-top:2px;line-height:1.5}
@media (max-width:620px){.tier{padding-left:10px}}
.walk{list-style:none;counter-reset:walk;margin:20px 0 0;padding:0}
.walk li{counter-increment:walk;position:relative;margin-left:11px;
  padding:0 0 20px 32px;border-left:1px solid var(--rule)}
.walk li:last-child{border-left-color:transparent;padding-bottom:0}
.walk li::before{content:counter(walk);position:absolute;left:-11px;top:-2px;
  width:22px;height:22px;border-radius:50%;background:var(--purple);color:#fff;
  font-family:var(--sans);font-size:.7rem;font-weight:600;
  display:flex;align-items:center;justify-content:center}
.walk b{font-family:var(--sans);font-size:.88rem;display:block}
.walk small{font-family:var(--sans);font-size:.76rem;color:var(--ink-soft);
  display:block;margin-top:2px;line-height:1.55}
.walk-note{font-family:var(--sans);font-size:.75rem;color:var(--ink-faint);
  border-left:2px solid var(--brass);padding:9px 0 9px 13px;margin:18px 0 0 11px;
  line-height:1.55}

/* Page foot: a small seal at left, links stacked at right. A row of links
   wraps mid-list on a narrow screen; a column never does. */
.leaf-foot{display:flex;align-items:center;justify-content:space-between;
  gap:24px;margin-top:38px;padding-top:20px;border-top:1px solid var(--rule)}
.leaf-foot-seal{width:46px;height:46px;object-fit:contain;flex:0 0 auto;opacity:.9}
.leaf-foot-links{display:flex;flex-direction:column;align-items:flex-end;
  font-family:var(--sans);font-size:.8rem;line-height:1.4}
.leaf-foot-links a{color:var(--purple-mid);text-decoration:none;padding:5px 0}
.leaf-foot-links a:hover{text-decoration:underline;text-underline-offset:3px}
@media (max-width:620px){
  .leaf-foot{gap:16px;margin-top:28px}
  .leaf-foot-seal{width:40px;height:40px}
  .leaf-foot-links a{font-size:.84rem;padding:7px 0}
}

/* The seal was outweighed by four lines of links. Give it presence, and let
   the links sit as a tight block rather than a loose column. */
.leaf-foot-seal{width:74px;height:74px}
.leaf-foot-links{line-height:1.15}
.leaf-foot-links a{padding:3px 0}
@media (max-width:620px){
  .leaf-foot-seal{width:64px;height:64px}
  .leaf-foot-links a{padding:5px 0}
}

/* The gaps, brought in to match the tighter leading. This is most of what
   read as white space, not the line height. */
.leaf-body p{margin-bottom:14px;line-height:1.5}
.opening{line-height:1.48}
.display{line-height:1.08}
.section{margin-top:32px;padding-top:22px}
.qa{margin-top:24px;padding-top:18px}
.qa h2{line-height:1.2}
.gloss dt{margin-top:16px}
.gloss dd{line-height:1.5}
.walk li{padding-bottom:16px}
.walk small,.tier > small{line-height:1.45}
@media (max-width:620px){
  .leaf-body p{margin-bottom:12px}
  .section{margin-top:24px;padding-top:18px}
}

/* Questions collapse so the page is a list to scan rather than a wall to
   read. <details> does this natively: no script, keyboard-operable, and a
   browser that ignores it unfolds every answer instead of hiding them. */
.qa > summary{list-style:none;cursor:pointer;display:flex;
  align-items:flex-start;gap:14px;padding:3px 0}
.qa > summary::-webkit-details-marker{display:none}
.qa > summary h2{margin:0;flex:1;font-size:1.16rem}
.qa > summary::after{content:"+";flex:0 0 auto;font-family:var(--sans);
  font-size:1.2rem;color:var(--purple-mid);line-height:1.25}
.qa[open] > summary::after{content:"\2013"}
.qa[open] > summary{margin-bottom:12px}
.qa > summary:hover h2{color:var(--purple)}
.qa > summary:focus-visible{outline:2px solid var(--purple);outline-offset:3px}

/* Emphasis inside the reading column. Semibold rather than bold, because
   Spectral's 700 reads as alarm at 17px; italic left alone. */
.leaf-body strong{font-weight:600;color:var(--ink)}
.leaf-body em{font-style:italic}

/* A page that ends in an action: the buttons are the page's conclusion, so they
   follow the text with space rather than a rule. The one rule left is the site
   foot's own, separating the page from the frame. Only a .foot directly above
   the site foot is affected, so a form's submit row keeps its rule. */
.leaf .foot:has(+ .leaf-foot){border-top:0;padding-top:0}
.leaf .foot:has(+ .leaf-foot) + .leaf-foot{margin-top:44px}
@media (max-width:600px){
  .leaf .foot:has(+ .leaf-foot) + .leaf-foot{margin-top:32px}
}
/* ── Landing diagrams, v1.9 ─────────────────────────────────────────────
   Nested cards by default; concentric rings once the diagram has 480px. */
.dg{container-type:inline-size;margin-top:18px}
.dg-ring{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;padding:16px 12px 12px;
  border-radius:24px;background:#F8F5FB;border:1px solid #D8CDE6}
.dg-ring .dg-ring{padding:14px 12px;border-radius:20px;background:#EFE7F7;border-color:#CBBADF}
.dg-label{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.dg-label b{font-family:var(--sans);font-weight:600;font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:#4A2372}
.dg-label i{font-size:14px;color:#6E6679}
.dg-core{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:6px;padding:22px 16px;border-radius:16px;background:#4A2372;
  box-shadow:0 8px 22px rgba(74,35,114,.2);color:#FFFFFF;text-align:center}
.dg-core b{font-weight:500;font-size:21px;line-height:1.15}
.dg-core i{font-size:14px;color:#E6DCF1}
.dg-core small{font-family:var(--sans);font-size:12px;color:#E6DCF1}
.dg-core small:first-of-type{margin-top:6px}
.dg-pills{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.dg-pills li{height:32px;padding:0 14px;box-sizing:border-box;border-radius:16px;background:#FFFFFF;
  border:1px solid #CBBADF;display:flex;align-items:center;font-family:var(--sans);font-size:13px;
  color:#2B2536}

@container (min-width:480px){
  .dg-rings > .dg-ring{position:relative;display:block;width:100%;max-width:560px;aspect-ratio:1;
    margin:0 auto;padding:0;border-radius:50%}
  .dg-rings > .dg-ring > .dg-label{position:absolute;left:50%;top:3.2%;width:40%;transform:translateX(-50%)}
  .dg-ring .dg-ring{position:absolute;inset:13.8%;display:block;padding:0;border-radius:50%}
  .dg-ring .dg-ring > .dg-label{position:absolute;left:50%;top:4.8%;width:56%;transform:translateX(-50%)}
  .dg-core{position:absolute;inset:23.8%;padding:5%;gap:4px;border-radius:50%;
    box-shadow:0 10px 28px rgba(74,35,114,.22)}
  .dg-core b{font-size:clamp(17px,3.6cqw,22px)}
  .dg-core i{font-size:13px}
  .dg-core small{font-size:11px}
  .dg-pills{display:block}
  .dg-pills li{position:absolute;width:108px;padding:0;justify-content:center}
  .dg-pills li:nth-child(1){left:11.9%;top:50%;transform:translate(-50%,-50%)}
  .dg-pills li:nth-child(2){right:11.9%;top:50%;transform:translate(50%,-50%)}
  .dg-pills li:nth-child(3){left:50%;bottom:11.9%;transform:translate(-50%,50%)}
}

/* Phases: a rail down the page by default; three stations across at 600px. */
.dg-phases{position:relative;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:24px}
.dg-phases::before{content:"";position:absolute;left:17px;top:20px;bottom:40px;width:2px;background:#D8CDE6}
.dg-phase{position:relative;display:grid;grid-template-columns:36px 1fr;column-gap:14px}
.dg-station{display:contents}
.dg-num{grid-column:1;grid-row:1;width:36px;height:36px;box-sizing:border-box;border-radius:50%;
  background:#FFFFFF;border:2px solid #4A2372;display:flex;align-items:center;justify-content:center;
  font-family:var(--sans);font-weight:600;font-size:14px;color:#4A2372}
.dg-phase:last-child .dg-num{background:#4A2372;color:#FFFFFF}
.dg-name{grid-column:2;grid-row:1;align-self:center;display:flex;align-items:baseline;gap:8px}
.dg-name b{font-weight:400;font-size:20px}
.dg-name small{font-family:var(--sans);font-size:12px;color:#6E6679}
.dg-steps{grid-column:2;list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.dg-steps li{padding:12px;border-radius:10px;background:#F8F5FB;display:flex;flex-direction:column;gap:3px}
.dg-steps li b{font-family:var(--sans);font-weight:600;font-size:14px}
.dg-steps li span{font-size:14px;line-height:1.4;color:#5E566A}
.dg-steps li.key{background:#4A2372;color:#FFFFFF}
.dg-steps li.key span{color:#E6DCF1}
.dg-foot{margin:22px 0 0;padding-top:16px;border-top:1px solid #EFEAF3;font-family:var(--sans);
  font-size:13px;line-height:1.55;color:#6E6679}

@container (min-width:600px){
  .dg-phases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .dg-phases::before{left:16.67%;right:16.67%;top:21px;bottom:auto;width:auto;height:2px}
  .dg-phase{display:flex;flex-direction:column}
  .dg-station{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
  .dg-num{width:44px;height:44px;font-size:16px}
  .dg-name{flex-direction:column;align-items:center;gap:6px}
  .dg-name b{font-size:22px;line-height:1.1}
  .dg-steps{margin-top:22px;gap:14px}
  .dg-steps li{padding:14px}
}

/* The page's own paragraph rule outranks .dg-foot's margin on specificity,
   which left the phases touching the rule below them. */
.dg p.dg-foot{margin:28px 0 0}
