@import url("/fonts.css");
/*
 * The two boards, Desktop 1440 and Mobile 390, as one page.
 * A value the boards disagree on is a custom property below: the mobile value at 480px and down,
 * the desktop value at 1024px and up, and a straight line between the two.
 * The two structural changes (the three problem cards and the email form) switch at 768px.
 */

:root {
  /* The green site: light ink on #12301C (field.js reads --ink, --ground and --muted as hex). */
  --ink: #F4F1E8;
  --ground: #0A0A0A;
  --muted: #A7B8AC;
  --body: #DCE3DD;
  --hairline: rgb(244 241 232 / 0.14);
  --rule: rgb(244 241 232 / 0.24);
  --error: #FF8A7A;
  --serif: "Alliance No.1", ui-sans-serif, system-ui, sans-serif;
  --mono: "Alliance No.1", ui-sans-serif, system-ui, sans-serif;

  --header-h: 64px; /* the home page's bar */
  --gutter: clamp(24px, calc(24px + 0.102941 * (100vw - 480px)), 80px);
  --nav-size: clamp(12px, calc(12px + 0.001838 * (100vw - 480px)), 13px);

  --hero-pt: clamp(24px, calc(24px + 0.029412 * (100vw - 480px)), 40px);
  --hero-gap: clamp(48px, calc(48px + 0.029412 * (100vw - 480px)), 64px);
  --orb-gap: clamp(12px, calc(12px + 0.007353 * (100vw - 480px)), 16px);
  --orb-w: clamp(342px, calc(342px + 0.547794 * (100vw - 480px)), 640px);
  --orb-h: clamp(280px, calc(280px + 0.147059 * (100vw - 480px)), 360px);
  --hero-text-gap: clamp(20px, calc(20px + 0.007353 * (100vw - 480px)), 24px);
  --h1-size: clamp(34px, calc(34px + 0.040441 * (100vw - 480px)), 56px);
  --h1-lh: clamp(37.4px, calc(37.4px + 0.042426 * (100vw - 480px)), 60.48px);
  --lede-size: clamp(13px, calc(13px + 0.001838 * (100vw - 480px)), 14px);

  --x0-out: clamp(-44px, calc(-26px - 0.033088 * (100vw - 480px)), -26px);
  --x0-in: clamp(22px, calc(22px + 0.025735 * (100vw - 480px)), 36px);
  --x1-out: clamp(38px, calc(38px + 0.044118 * (100vw - 480px)), 62px);
  --x1-in: clamp(-54px, calc(-32px - 0.040441 * (100vw - 480px)), -32px);
  --x2-out: clamp(-24px, calc(-14px - 0.018382 * (100vw - 480px)), -14px);
  --x2-in: clamp(14px, calc(14px + 0.014706 * (100vw - 480px)), 22px);

  --problem-h: clamp(720px, calc(1120px - 0.735294 * (100vw - 480px)), 1120px);
  --problem-gap: clamp(48px, calc(48px + 0.029412 * (100vw - 480px)), 64px);
  --card-gap: clamp(12px, calc(12px + 0.007353 * (100vw - 480px)), 16px);
  --card-pt: clamp(24px, calc(24px + 0.007353 * (100vw - 480px)), 28px);
  --card-h2: clamp(28px, calc(28px + 0.011029 * (100vw - 480px)), 34px);
  --card-p: clamp(17px, calc(17px + 0.001838 * (100vw - 480px)), 18px);

  --build-h: clamp(540px, calc(540px + 0.183824 * (100vw - 480px)), 640px);
  --build-gap: clamp(28px, calc(28px + 0.014706 * (100vw - 480px)), 36px);
  --rule-h: clamp(48px, calc(48px + 0.029412 * (100vw - 480px)), 64px);
  --acro-size: clamp(24px, calc(24px + 0.014706 * (100vw - 480px)), 32px);
  --acro-gap: clamp(8px, calc(8px + 0.003676 * (100vw - 480px)), 10px);
  --build-size: clamp(28px, calc(28px + 0.029412 * (100vw - 480px)), 44px);
  --build-lh: clamp(35px, calc(35px + 0.034338 * (100vw - 480px)), 53.68px);
  --build-ls: clamp(-0.66px, calc(-0.28px - 0.000699 * (100vw - 480px)), -0.28px);

  --in-h: clamp(460px, calc(460px + 0.330882 * (100vw - 480px)), 640px);
  --in-gap: clamp(40px, calc(40px + 0.014706 * (100vw - 480px)), 48px);
  --in-head-gap: clamp(12px, calc(12px + 0.007353 * (100vw - 480px)), 16px);
  --in-size: clamp(46px, calc(46px + 0.055147 * (100vw - 480px)), 76px);
  --in-lede: clamp(13px, calc(13px + 0.001838 * (100vw - 480px)), 14px);

  --footer-h: clamp(88px, calc(88px + 0.029412 * (100vw - 480px)), 104px);
}

/* At either board the boards' own ratios, so a line box rounds exactly as the board's does. */
@media (max-width: 480px) {
  :root { --h1-lh: 1.1; --build-lh: 1.25; --build-ls: -0.01em; }
}
@media (min-width: 1024px) {
  :root { --h1-lh: 1.08; --build-lh: 1.22; --build-ls: -0.015em; }
}

/* The boards' helmet. */
body{margin:0;background:var(--ground)}
a{color:var(--ink)}a:hover{color:var(--muted)}
::selection{background:var(--ink);color:var(--ground)}
.b-in:hover{background:#DCE3DD !important}
.b-out:hover{background:rgb(244 241 232 / 0.1) !important}
.b-link:hover{color:var(--muted) !important}
button:focus-visible,a:focus-visible,input:focus-visible{outline:1px solid var(--ink);outline-offset:4px}
input::placeholder{color:var(--muted)}
.an{animation-duration:11s;animation-iteration-count:infinite;animation-fill-mode:both;animation-timing-function:cubic-bezier(.3,.6,.2,1)}
@keyframes xa0{0%{opacity:1;transform:none}36%{opacity:1;transform:none}42%{opacity:0;transform:translateX(var(--x0-out))}95%{opacity:0;transform:translateX(var(--x0-in))}100%{opacity:1;transform:none}}
@keyframes xb0{0%{opacity:0;transform:translateX(var(--x0-in))}40%{opacity:0;transform:translateX(var(--x0-in))}46%{opacity:1;transform:none}91%{opacity:1;transform:none}97%{opacity:0;transform:translateX(var(--x0-out))}100%{opacity:0;transform:translateX(var(--x0-out))}}
@keyframes xa1{0%{opacity:1;transform:none}36%{opacity:1;transform:none}42%{opacity:0;transform:translateX(var(--x1-out))}95%{opacity:0;transform:translateX(var(--x1-in))}100%{opacity:1;transform:none}}
@keyframes xb1{0%{opacity:0;transform:translateX(var(--x1-in))}40%{opacity:0;transform:translateX(var(--x1-in))}46%{opacity:1;transform:none}91%{opacity:1;transform:none}97%{opacity:0;transform:translateX(var(--x1-out))}100%{opacity:0;transform:translateX(var(--x1-out))}}
@keyframes xa2{0%{opacity:1;transform:none}36%{opacity:1;transform:none}42%{opacity:0;transform:translateX(var(--x2-out))}95%{opacity:0;transform:translateX(var(--x2-in))}100%{opacity:1;transform:none}}
@keyframes xb2{0%{opacity:0;transform:translateX(var(--x2-in))}40%{opacity:0;transform:translateX(var(--x2-in))}46%{opacity:1;transform:none}91%{opacity:1;transform:none}97%{opacity:0;transform:translateX(var(--x2-out))}100%{opacity:0;transform:translateX(var(--x2-out))}}
.still .an{animation:none}.still .xa{opacity:0}
@media (prefers-reduced-motion: reduce){.an{animation:none}.xa{opacity:0}}

[hidden] { display: none !important; }

.mono { font-family: var(--mono); }

.page {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
}

/* Header */

.header {
  height: var(--header-h);
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  /* The home page's bar: dark grey, see-through, held at the top. */
  position: sticky; top: 0; z-index: 10;
  background: rgb(10 10 10 / 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(244 241 232 / 0.1);
}
/* The wordmark left (alone on the key page), the last cell right (the landing page wraps its two links in .header-links), and the landing page's "docs" in the middle. */
.header > :last-child:not(:first-child) { grid-column: 3; justify-self: end; }
.header-links { display: flex; align-items: center; gap: 24px; }
.logo {
  display: block;
  width: 36px;
  height: auto;
}
.nav {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--nav-size);
  letter-spacing: 0.04em;
  text-decoration: none;
}
/* The logo link (docs, login, cookies wrap it; the landing page leaves it a plain image): the logo
   image alone is under 40px tall, so the link needs its own tap target, same bar as .nav. */
@media (max-width: 760px) {
  .header > a:first-child { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Hero */

.hero {
  /* Fills the window under the header on first load, its content centred there, so the next section starts below the fold. */
  min-height: calc(100svh - var(--header-h));
  flex-shrink: 0;
  box-sizing: border-box;
  padding: var(--hero-pt) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--hero-gap);
  /* The headline's slices slide sideways past a narrow viewport; they never widen the page. */
  overflow-x: clip;
}
.orb {
  width: 100%;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--orb-gap);
}
.orb-canvas {
  display: block;
  width: min(var(--orb-w), 100cqw);
  /* Under 390px the mobile board's 342 x 280 scales down with the page, keeping its shape. */
  height: min(var(--orb-h), calc(100cqw * 280 / 342));
  /* A short window gives the board what the header, the text and the padding leave (about 460px), down to 200px, so the hero still fits and centres. */
  max-height: max(200px, calc(100svh - 460px));
}
.legend {
  display: flex;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.key { display: flex; align-items: center; gap: 7px; }
.key-human { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.key-agent { width: 7px; height: 7px; box-sizing: border-box; border: 1px solid var(--ink); transform: rotate(45deg); }
.key-conflict { color: var(--ink); }

.hero-text {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hero-text-gap);
  text-align: center;
}
.headline {
  margin: 0;
  max-width: 900px;
  display: grid;
  font-weight: 300;
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.headline > span { grid-area: 1 / 1; align-self: center; }
.s0 { clip-path: inset(0 0 66% 0); }
.s1 { clip-path: inset(33% 0 33% 0); }
.s2 { clip-path: inset(66% 0 0 0); }
.a0 { animation-name: xa0; }
.a1 { animation-name: xa1; }
.a2 { animation-name: xa2; }
.b0 { animation-name: xb0; }
.b1 { animation-name: xb1; }
.b2 { animation-name: xb2; }
.lede {
  margin: 0;
  max-width: 560px;
  font-size: var(--lede-size);
  line-height: 1.7;
  color: var(--muted);
  text-wrap: balance;
}

/* The problem */

.label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.problem {
  min-height: var(--problem-h);
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--problem-gap);
}
.cards {
  display: flex;
  flex-direction: column;
  gap: var(--problem-gap);
}
.card {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  padding-top: var(--card-pt);
  border-top: 1px solid var(--hairline);
}
.card h2 {
  margin: 0;
  font-weight: 300;
  font-size: var(--card-h2);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  font-size: var(--card-p);
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

/* What we're building */

.building {
  min-height: var(--build-h);
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--build-gap);
  text-align: center;
}
.rule { width: 1px; height: var(--rule-h); background: var(--rule); }
.building h2 {
  margin: 0;
  max-width: 1040px;
  font-weight: 300;
  font-size: var(--build-size);
  line-height: var(--build-lh);
  letter-spacing: var(--build-ls);
  text-wrap: balance;
}

/* glad, spelled out: G L A D in ink, the rest of each word unfolding from its letter once in view (main.js). */
.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; }
.acro { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--acro-gap); }
.acro-k { font-size: 13px; letter-spacing: 0.08em; color: var(--ink); }
.acro-p { max-width: 100%; font-weight: 300; font-size: var(--acro-size); line-height: 1.25; letter-spacing: -0.01em; color: var(--muted); text-wrap: balance; }
.acro-w { display: inline-block; white-space: nowrap; }
.acro-p b { font-weight: 400; color: var(--ink); }
/* The tails wipe in over the line's final layout: clipping changes no width, so the line never reflows, wraps or moves a letter. */
.acro-p i { display: inline-block; font-style: normal; clip-path: inset(-.25em -.1em -.25em 0); transition: clip-path 1s cubic-bezier(.3,.6,.2,1), opacity 1s cubic-bezier(.3,.6,.2,1); }
.acro-w:nth-child(2) i { transition-delay: .25s; } .acro-w:nth-child(3) i { transition-delay: .5s; } .acro-w:nth-child(4) i { transition-delay: .75s; }
.folded i { clip-path: inset(-.25em 100% -.25em 0); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .acro-p i { transition: none; } }

/* Contact */

.in {
  min-height: var(--in-h);
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--in-gap);
  text-align: center;
}
.in-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--in-head-gap);
}
.in-head h2 {
  margin: 0;
  font-weight: 300;
  font-size: var(--in-size);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.in-lede {
  margin: 0;
  font-size: var(--in-lede);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.btn {
  width: 120px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.b-in { background: var(--ink); color: var(--ground); }
.b-out { background: transparent; color: var(--ink); }

/* The landing's contact button: the in-button's look on a link. */
.l-contact-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; width: 200px; }

/* The header fits one line at 390: links never wrap, and the gaps tighten on small screens. */
.header .nav { white-space: nowrap; }
@media (max-width: 480px) {
  .header-links { gap: 14px; }
}

/* 360 px: the three items need more than the gutters leave, so the gaps and the type give way,
   with room to spare for a wider fallback monospace than the one the page is drawn in elsewhere. */
@media (max-width: 400px) {
  .header-links { gap: 10px; }
  .header .nav { font-size: 11px; letter-spacing: 0; }
}

/* Shared by the /signup/ and /login/ gates' error line. */
.error {
  margin: 0;
  font-size: 12px;
  color: var(--error);
}

.b-link {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* Footer */

.footer {
  min-height: var(--footer-h);
  flex-shrink: 0;
  box-sizing: border-box;
  margin: 0 var(--gutter);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.footer-links { display: flex; gap: 24px; }

/* The cookie choice: a corner card on the page's own ground, out of the way of the page. */

.consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 10;
  width: 360px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid var(--ink);
  background: var(--ground);
  color: var(--ink);
}
.consent-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--body);
}
.consent-copy a { white-space: nowrap; text-underline-offset: 3px; }
.consent-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.consent-actions .btn { width: auto; height: 40px; font-size: 13px; }
@media (max-width: 620px) {
  .consent { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

/* The Cookie Policy. */

.legal {
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  padding: 48px var(--gutter) 96px;
  align-self: center;
}
.legal h1 {
  margin: 16px 0 48px;
  font-weight: 400;
  font-size: var(--card-h2);
  line-height: 1.1;
}
.legal section { margin-top: 40px; }
.legal h2 { margin: 0 0 12px; font-weight: 400; }
.legal p, .legal li {
  font-size: var(--card-p);
  line-height: 1.6;
  color: var(--body);
}
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li .mono { font-size: 0.85em; color: var(--ink); }
.consent-control {
  padding: 24px;
  border: 1px solid var(--hairline);
}
.consent-control.consent-control { margin-top: 0; }
.consent-status { margin: 0 0 16px; }
.consent-buttons { display: grid; grid-template-columns: 1fr; gap: 12px; }
.consent-buttons .btn { width: auto; padding: 0 20px; }
.consent-buttons .b-link { justify-self: start; padding: 0; }
@media (min-width: 560px) {
  .consent-buttons { grid-template-columns: repeat(2, max-content); }
  .consent-buttons .btn { width: 240px; }
  .consent-buttons .b-link { grid-column: 1 / -1; }
}
.btn:disabled { opacity: 0.35; cursor: default; }
.b-in:disabled:hover { background: var(--ink) !important; }
.b-out:disabled:hover { background: transparent !important; }

/* The desktop board's structure. */
@media (min-width: 768px) {
  .problem { min-height: 720px; }
  .cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* /signup/ and /login/ (ABL-175, ABL-184, ABL-253): the gate (sign up, sign in, the emailed code, the password)
   beside the field, then the key, the ended week or the founders' accounts, on the docs' own look. */
.l-form { display: flex; flex-direction: column; gap: 8px; width: min(400px, 100%); margin: 0 0 16px; }
.l-form .s-label { margin-top: 8px; }
.l-form .s-label:first-child { margin-top: 0; }
.l-form .l-input + .s-label { margin-top: 0; }
.l-row { display: flex; gap: 12px; }
.l-row .l-input { flex: 1; min-width: 0; }
.l-input { width: 100%; height: 48px; box-sizing: border-box; padding: 0 16px; border: 1px solid var(--hairline); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 15px; }
.l-input:hover { border-color: var(--muted); }
/* A field focuses as one ink ring, its own border, never an outline beside it. */
.l-input:focus-visible { outline: none; border-color: var(--ink); }
.l-input[aria-invalid="true"] { border-color: var(--error); }
.l-code { font-size: 22px; letter-spacing: .3em; }
/* Empty, the code field is the other fields' size, so "6-digit code" fits a phone's row whole and sits centred. */
.l-code:placeholder-shown { font-size: 15px; letter-spacing: 0; }
.l-page .demo-btn { border: 0; cursor: pointer; }
.l-form > .demo-btn { margin-top: 16px; align-self: flex-start; }
.l-row .demo-btn { flex-shrink: 0; }
.site .demo-btn:disabled { background: var(--muted); cursor: default; }
.s-article .l-switch { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
.site .l-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site .l-link:hover { color: var(--muted); }
.site .l-link:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.site .l-link:disabled { color: var(--muted); cursor: default; }
.s-article .l-error, .s-article .l-held { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--error); text-align: left; justify-self: start; }
/* An account the sign-up email already holds (ABL-253): the error line, its Log in a link in the same red. */
.site .l-held .l-link { color: inherit; white-space: nowrap; }
.site .l-held .l-link:hover { color: var(--ink); }
/* Forgot password and new to glad, one line apart. */
.s-article .l-switch + .l-switch { margin-top: 12px; }
.l-sent { font-size: 13px; line-height: 1.5; color: var(--muted); }
.l-sent b { font-weight: 500; color: var(--ink); }
.l-page { display: flex; flex-direction: column; min-height: 100vh; box-sizing: border-box; }
.l-main { flex: 1; width: 100%; box-sizing: border-box; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.l-main .l-title { margin-top: 0; }
.l-gate .s-lede { font-size: 21px; line-height: 1.55; }
.s-article.l-gate .l-switch { line-height: normal; }
@media (max-width: 760px) {
  .l-main.l-gate { padding-top: 40px; }
  .l-main.l-gate .s-lede { font-size: 19px; margin-bottom: 32px; }
}

/* The key page: the week line set as the "Signed in as" line right above it, the key and the commands with their own show and copy, then replace. */
.s-article .s-lede:has(+ .l-week) { margin-bottom: 0; }
.s-article .l-week { margin: 0 0 48px; font-weight: 300; text-wrap: pretty; }
.l-term pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.l-term .term-cap { gap: 16px; }
.l-term-actions { display: flex; gap: 14px; margin-left: auto; }
@media (max-width: 760px) {
  .s-article .l-week { margin-bottom: 40px; }
}
.l-replace-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.site .l-logout { font-family: var(--mono); font-size: 13px; }
/* Past a phone, one centred column wide enough that every line and command fits whole at 1440 (ABL-227). */
@media (min-width: 761px) {
  .l-page[data-step="in"] .l-main { max-width: 960px; text-align: center; }
  .l-page[data-step="in"] .l-term { text-align: left; }
  .l-page[data-step="in"] .l-replace-row { justify-content: center; }
  .l-page[data-step="in"] .l-error { text-align: center; }
}

/* ABL-233: replace key's confirm dialog. :not([hidden]) is load-bearing, not decoration - a bare
   .l-dialog { display: grid } would out-rank the UA stylesheet's [hidden] { display: none } at equal
   specificity (author beats user-agent), showing the dialog even while hidden. */
.l-dialog:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgb(0 0 0 / .3);
  backdrop-filter: blur(2px);
}
.l-dialog:focus { outline: none; }
.l-dialog-box {
  width: min(420px, 100%);
  box-sizing: border-box;
  padding: 32px;
  border: 1px solid var(--ink);
  background: var(--ground);
  color: var(--ink);
}
.l-dialog-title { margin: 0 0 12px; font-weight: 400; font-size: 22px; line-height: 1.3; }
.l-dialog-body { margin: 0 0 28px; font-size: 15px; line-height: 1.6; color: var(--body); }
.l-dialog-actions { display: flex; justify-content: flex-end; gap: 16px; }
@media (max-width: 480px) {
  .l-dialog-box { padding: 24px 20px; }
  .l-dialog-title { font-size: 20px; }
}

/* The founders' accounts: a wider column, the filter beside download csv, and a table that scrolls
   sideways on a phone; every row one height, a revoked one too. */
.l-page[data-step="admin"] .l-main { max-width: 1040px; }
.l-admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; }
.l-admin-bar .l-filter { flex: 1; min-width: 220px; width: auto; height: 44px; padding: 0 14px; font-size: 13px; }
.l-accounts { width: 100%; border-collapse: collapse; font-size: 13px; }
.l-accounts th { padding: 8px 16px 8px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.l-accounts td { height: 65px; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--hairline); white-space: nowrap; color: var(--ink); }
.site .l-accounts .b-link { min-height: 0; padding: 0; font-size: 12px; }
.l-dim { color: var(--muted); }
@media (max-width: 760px) {
  .l-accounts { display: block; overflow-x: auto; }
}

/* The gate at 960px and up: the form in the left half, and in the right half the field
   (site/login/field.js), split by a hairline from under the header to the footer's rule. Narrower,
   and on the key, ended and admin pages, the field is not laid out at all. */
.l-field { display: none; --cell-empty: #1E1E1E; --cell-faded: #5A5A57; }
@media (min-width: 960px) {
  .l-main.l-gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: none; padding: 0; }
  .l-gate .l-col { display: flex; align-items: center; justify-content: center; padding: 24px var(--gutter); } /* even above and below, so the form sits at the middle */
  #login .l-gate .l-col-in { padding-top: 0; }
  .l-gate .l-col-in { width: 560px; max-width: 100%; }
  .l-gate .l-form { width: 100%; }
  .l-gate .s-lede { text-wrap: balance; }
  .l-gate .l-field { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 32px var(--gutter) 40px clamp(40px, calc(40px + 0.083333 * (100vw - 960px)), 80px); border-left: 1px solid var(--hairline); }
}
.l-field-in { width: 100%; max-width: 560px; }
.l-field canvas { display: block; width: 100%; }
.l-field-line { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 12px; letter-spacing: .02em; min-height: 1.5em; color: var(--body); }

/* As on the home page: headings and the larger text are Alliance No.2, the rest No.1. */
:is(.l-title, .s-lede, .l-main > section > h1, .legal h1, .legal h2:not(.label), .s-article h1, .s-article h2) { font-family: "Alliance No.2", ui-sans-serif, system-ui, sans-serif; }

/* The current theme on every page outside home, product and blog: dark grey, each page's content in a
   readout panel (thin frame, a small top bar naming it), as on the home page's displays. */
.l-gate .l-col-in, .l-main[data-show] > section, .legal { border: 1px solid rgb(244 241 232 / 0.3); background: #0A0A0A; }
.l-gate .l-col-in, .l-main[data-show] > section { padding: 0 2rem 2rem; }
.legal { margin-block: 48px 96px; padding: 0 2rem 2rem; }
.l-gate .l-col-in::before, .l-main[data-show] > section::before, .legal::before {
  display: block; margin: 0 -2rem 2rem; padding: 0.5rem 1rem; border-bottom: 1px solid rgb(244 241 232 / 0.3);
  font-size: 15px; letter-spacing: 0.04em; color: rgb(244 241 232 / 0.7); content: "glad account"; }
#join .l-col-in::before { content: "team invite"; }
/* Log in and sign up: the box alone, no top bar. */
#login :is(.l-gate .l-col-in, .l-main[data-show] > section)::before { content: none; }
#login :is(.l-gate .l-col-in, .l-main[data-show] > section) { padding-top: 2rem; }
/* Sign up and log in sit on the page itself, with no frame; the submit and "forgot password?" share one row, and the
   way to the other page sits under a hairline. */
#login :is(.l-gate .l-col-in, .l-main[data-show] > section) { border: 0; }
.l-actions { display: flex; align-items: center; gap: 24px; margin-top: 16px; }
.l-actions .demo-btn { margin: 0; }
.l-actions .l-forgot { font-size: 13px; }
.s-article .l-alt { width: 100%; box-sizing: border-box; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgb(244 241 232 / 0.12); }
.s-article .l-alt .l-link { margin-left: 10px; }
.legal::before { content: "abloh"; }
/* Every error shows Misha beside its words. */
.error:not([hidden]) { display: flex; gap: 10px; align-items: flex-start; }
.error::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: -2px; background: url("/misha.svg") center / contain no-repeat; }
/* The 404: Misha in the middle of a readout panel. */
.not-found { text-align: center; }
.not-found::before { content: "404"; text-align: left; }
.not-found-bear { display: block; width: 128px; height: 128px; margin: 1rem auto 0; }
.not-found h1 { margin: 1.5rem 0 1rem; }

/* On a phone: sign up and log in, which have no frame, use the screen's whole width; the framed pages keep a
   tighter frame; and every small text link and the "forgot password?" button get a thumb-sized tap area. */
@media (max-width: 760px) {
  :root { --gutter: 20px; } /* one side gutter on every page on a phone */
  .l-gate .l-col-in, .l-main[data-show] > section { padding: 0 20px 24px; }
  .l-gate .l-col-in::before, .l-main[data-show] > section::before { margin: 0 -20px 24px; }
  #login :is(.l-gate .l-col-in, .l-main[data-show] > section) { padding: 0; }
  .site .l-link, .l-actions .l-forgot { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
  .legal { align-self: stretch; width: auto; margin: 24px 20px 48px; padding: 0 20px 24px; }
  .legal::before { margin: 0 -20px 24px; }
  .header { padding: 0 20px; } /* the logo where the menu bar puts it on every page */
  .l-page .l-input:not(.l-code), .l-page .l-code:placeholder-shown { font-size: 16px; } /* 16px or iOS Safari zooms the page when a field takes focus; a typed code keeps its large digits */
}
/* Below the two halves, the form sits in the middle of the space between the header and the footer; its auto
   margins centre it and give way to plain scrolling when it is taller than that space (or the keyboard is up). */
/* On the narrowest phones a field and its button stack, so the field keeps the width its placeholder needs. */
@media (max-width: 359px) {
  .l-row { flex-direction: column; }
  .l-row .l-input { flex: none; }
}
@media (max-width: 959px) {
  .l-main.l-gate { display: flex; flex-direction: column; padding-block: 24px; }
  .l-gate .l-col { margin-block: auto; }
}
