/* The new front page (web/front.html, rendered by core/accounts/server/routes/newfront.js). Plain CSS, no build; the
   tokens are tokens.css's and the shared classes shell.css's. The look (Vincent, 2026-11-11, take A: "not so much luoie
   vutonn vibe but something more aestetich", after Nov 10's "intimidating, like we know what were doing"): John Martin's
   The Plains of Heaven fills the first screen, darkening into the page, with the name set big and plain over its foot;
   then the apps as a numbered catalogue. Nothing moves. Nothing here reads a style attribute; the one font is shell.css's
   self-hosted Cormorant Garamond 600 (--display). */

/* ---- The page ---- */
/* The page's own near-black brown under everything, so a phone pulled past the top or the end never flashes white. */
html { background: #120C08; }
/* shell.css's computer layout keeps room on the left for the shell's rail (body's padding-left); the front page has no
   rail, so none. The accent is the logo's soft gold (Harrox's default colours, Vincent 2026-11-10; body's data-brand
   gives the shell's surfaces their deep browns, tokens.css). */
body.front { padding-left: 0; background: #120C08; color: #EFE3C8; font: 16px/1.55 var(--font);
  --gold: #D2B36C; --accent: #D2B36C; --on-accent: #1A120C; --accent-text: #E6CF96; --accent-glyph: #D2B36C; }
.front :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* The first screen: the painting, the name over its foot. */
.plain { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.fp-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: max(12px, env(safe-area-inset-top)) clamp(20px, 5vw, 64px) 12px; }
.fp-mark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 600 14px/1 var(--display); letter-spacing: .42em; text-transform: uppercase; color: #D2B36C; }
.fp-shield { width: 30px; height: 30px; flex: none; }
.fp-top .in { min-height: 44px; padding: 0; border: 0; background: none; color: #EFE3C8; font: 600 15px var(--font); cursor: pointer; }
.fp-top .in:hover { color: #D2B36C; }

/* The painting (public/wp/front/: John Martin, The Plains of Heaven, 1851-53, public domain; THIRD_PARTY_NOTICES.md),
   laid like a cover and dimmed, a wide crop for computers (143 KB) and a tall one for phones (57 KB). Over it, one veil:
   darker at the top for the name and Sign in, clear across the middle so the plains show, and solid by the words at its
   foot, a fixed height from the foot so the words read on any screen. */
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #120C08; }
.sky::before { content: ""; position: absolute; inset: 0; background: url(/wp/front/plains-of-heaven.jpg) 50% 30% / cover no-repeat; filter: brightness(.72) saturate(.92); }
.sky::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 10, 7, .78) 0, rgba(14, 10, 7, 0) 150px),
    linear-gradient(0deg, #120C08 0, #120C08 28%, rgba(14, 10, 7, .9) 68%, rgba(14, 10, 7, 0) 100%) bottom / 100% 620px no-repeat; }
@media (max-width: 640px) {
  /* Lifted, so the falls and the plains sit in the clear band above the words, not under them. */
  .sky::before { background-image: url(/wp/front/plains-of-heaven-tall.jpg); background-size: auto 150%; background-position: 50% 100%; }
}

/* shell.css's .hero is a card; here it is only the words, at the foot of the first screen, from the left. */
body.front .hero { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; overflow: visible;
  padding: 96px clamp(20px, 5vw, 64px) clamp(28px, 5vh, 56px); border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; }
body.front .hero::after { content: none; }
.words { display: flex; flex-direction: column; align-items: flex-start; width: 100%; max-width: 1100px; }
.slogan { margin: 0 0 10px; font: 600 clamp(13px, 1.5vw, 16px)/1.4 var(--display); letter-spacing: .32em; text-transform: uppercase; color: #D2B36C; }
.name { margin: 0 0 0 -.04em; font: 600 clamp(58px, 11vw, 140px)/.92 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #EFE3C8; }
.what { max-width: 30em; margin: 20px 0 28px; font-size: clamp(16px, 1.5vw, 18px); color: #DCCFB4; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
/* Early access: the gold, square corners, set in capitals. */
.early { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; border: 0; border-radius: 2px; background: var(--gold); color: #1A120C;
  font: 600 14px var(--font); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.early:hover { background: #E0C688; }
.quiet { margin: 0; max-width: 34em; font-size: 13.5px; color: #B8AA8E; }
.quiet a { color: #EFE3C8; font-weight: 600; }
.nocode { margin-top: 12px; }
/* Harrox on the Home Screen, offered in a phone's browser (web/homescreen.js homeStrip; front.js puts it in #homeslot
   under Early access, and under the card while the way in is open): one quiet line, its button and its close, each
   44px to tap. An empty slot takes no room. */
.homeoffer { display: flex; align-items: center; gap: 4px; width: 100%; max-width: 420px; margin-top: 16px; padding: 2px 2px 2px 14px;
  border: 1px solid rgba(210, 179, 108, .28); border-radius: 2px; background: rgba(26, 18, 12, .78); font-size: 13.5px; line-height: 1.35; color: #DCCFB4; }
.homeoffer > span { flex: 1; min-width: 0; padding: 6px 0; }
.homeoffer .show { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--accent-text);
  font: 600 14px var(--font); cursor: pointer; }
.homeoffer .x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: #B8AA8E; cursor: pointer; }
.homeoffer .x svg { width: 16px; height: 16px; }

/* The painting's name, as a museum label: under the words on a phone, at the foot's right on a computer. */
.credit { margin: 28px 0 0; font-size: 12.5px; color: #A89A80; }
.credit cite { font-style: normal; color: #CDBFA3; }
@media (min-width: 900px) {
  .credit { position: absolute; right: clamp(20px, 5vw, 64px); bottom: clamp(28px, 5vh, 56px); margin: 0; }
  .words { padding-right: 300px; }
  /* The words take less height here, so the veil rises less and more of the plains show. */
  .sky::after { background-size: 100% 100%, 100% 500px; background-image: linear-gradient(180deg, rgba(14, 10, 7, .78) 0, rgba(14, 10, 7, 0) 150px),
    linear-gradient(0deg, #120C08 0, #120C08 24%, rgba(14, 10, 7, .9) 78%, rgba(14, 10, 7, 0) 100%); }
}

/* Inside: the apps listed like plates in a catalogue, numbered in Latin, between ruled lines. */
.inside { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px) 40px; }
.inside h2 { margin: 0 0 8px; font: 600 clamp(30px, 4vw, 48px)/1.1 var(--display); color: #EFE3C8; }
.inside .lede { max-width: 36em; margin: 0 0 40px; color: #ADA087; }
.plates { margin: 0; padding: 0; list-style: none; border-top: 1px solid #33261A; }
.plates li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid #33261A; }
.plates .n { font: 600 22px var(--display); color: var(--gold); }
.plates h3 { margin: 0; font: 600 clamp(26px, 3vw, 34px)/1.1 var(--display); color: #EFE3C8; }
.plates p { margin: 0; color: #CFC8BA; }
/* Early access again, once the catalogue has said what Harrox does. */
.again { padding: 56px 20px 64px; text-align: center; }
.again p { margin: 0 0 18px; color: #ADA087; }

/* The footer: the pages in a row, whose it is beside them. No underline anywhere on this page (Payton: no underlines; site
   run 1, 2026-11-24): Sign in, Show me and a link in a line are told by their weight and colour, and each footer page is
   44px each way to tap, however short its name. */
.foot { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 22px; border-top: 1px solid #2A1F15;
  padding: 20px clamp(20px, 5vw, 64px) max(32px, env(safe-area-inset-bottom)); font-size: 14px; color: #ADA087; }
.foot nav { display: flex; flex-wrap: wrap; column-gap: 18px; }
.foot a, .foot summary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: #D4CDBF; }
.foot a:hover, .foot summary:hover { color: #D2B36C; }
.bug summary { list-style: none; cursor: pointer; }
.bug summary::-webkit-details-marker { display: none; }
/* Report a bug, with no email to send it to: where it is inside Harrox, in a small note over the footer. */
.bug p { position: absolute; left: 16px; right: 16px; bottom: calc(100% - 4px); max-width: 360px; margin: 0 auto; padding: 10px 14px;
  border: 1px solid #33261A; border-radius: 2px; background: #1E150D; color: #EFE3C8; }

/* The cookie notice: at the very end of the page, under the footer, never floating over it. */
.cookie { display: flex; align-items: center; gap: 16px; padding: 12px clamp(20px, 5vw, 64px) max(16px, env(safe-area-inset-bottom)); border-top: 1px solid #2A1F15;
  font-size: 13px; color: #CFC8BA; }
.cookie p { flex: 1; min-width: 0; margin: 0; }
.cookie a { color: #EFE3C8; font-weight: 600; }
.cookie .early { min-height: 44px; padding: 0 16px; font-size: 14px; }

/* The way in's popup on a phone: in the part of the screen above the keyboard (front.js sets these from visualViewport,
   as the old door's fitEntry did). */
.front .popup-dim { bottom: auto; top: var(--entry-top, 0px); height: var(--entry-h, 100%); }
.front .popup { max-height: calc(var(--entry-h, 100vh) - 40px); }

/* The preview, for owners and admins (Server › Codes): a note across the top, saying whether it is live yet. */
.prevbar { position: sticky; top: 0; z-index: 6; padding: max(10px, env(safe-area-inset-top)) 12px 10px; border-bottom: 1px solid rgba(210, 179, 108, .4);
  background: rgba(23, 19, 16, .94); color: var(--gold); text-align: center; font-size: 12.5px; line-height: 20px; }
.prevbar a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 -12px 4px; padding: 0 4px; font-weight: 600; white-space: nowrap; }

@media (max-width: 640px) {
  .plates li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .plates p { grid-column: 2; }
}

/* ---- The Night Gate (Vincent's pick C, Nov 4: "the moon should be the logo", "forgot should be under the sign in
   button"): the way in's popup over the page's own night (web/front.js nightGate; the sky above, the same world). While
   it's open the page's words step out of sight (body.gated), so only the sky shows behind it. The name across the top
   and Back (the popup's close button) beside it, the Harrox shield, then one card: the
   step's title, its line, Sign in / Early access, the form. The fonts are the app's (the phone's own, and the
   self-hosted Cormorant for the title and the name). The popup fills the screen above the keyboard (--entry-h), so
   there is no outside to tap: Back and Esc close it. ---- */
.front .popup-dim.nightgate { display: block; padding: 0; overflow: hidden; background: none; }
body.gated > :not(#layer) { visibility: hidden; }
body.gated .sky { position: fixed; visibility: visible; }
/* A page that opens on its popup (data-step: /signin and /join at the app's address, a code's or a password's next step)
   is gated from its first paint, before front.js has loaded: only the sky shows until the popup draws, never a second
   copy of the front page (Vincent, Nov 11: "when u click sign in it still shows the front page ... like a copy of it and
   loading"). front.js takes data-step off when the popup closes. */
body.front:is([data-step="signin"], [data-step="signup"], [data-step="code"], [data-step="twostep"]) > :not(#layer) { visibility: hidden; }
body.front:is([data-step="signin"], [data-step="signup"], [data-step="code"], [data-step="twostep"]) .sky { position: fixed; visibility: visible; }

/* The column: the name and Back, the moon, the card (its title and the step), the small print at the end. */
.front .nightgate .popup { isolation: isolate; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 44px auto auto auto auto 1fr;
  grid-template-areas: "brand back" "moon moon" "title title" "body body" "home home" "fine fine"; align-content: start; gap: 0;
  width: 100%; max-width: none; height: 100%; max-height: none; overflow-y: auto; overflow-x: hidden;
  padding: max(20px, env(safe-area-inset-top)) max(20px, calc((100% - 420px) / 2)) max(28px, env(safe-area-inset-bottom));
  border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nightgate .popup::after { content: ''; grid-row: 3 / 5; grid-column: 1 / -1; z-index: -1; border-radius: 4px;
  background: rgba(26, 18, 12, .94); border: 1px solid rgba(210, 179, 108, .22); }
.nightgate .head { display: contents; }
.ng-brand { grid-area: brand; align-self: center; margin: 0; font: 600 22px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #D2B36C; }
.nightgate .head > .circ { grid-area: back; justify-self: end; align-self: center; display: inline-flex; gap: 6px; width: auto; height: 44px; padding: 0 16px 0 12px;
  border-radius: 3px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: var(--parchment); font-size: 14px; font-weight: 500; }
.nightgate .head > .circ svg { width: 16px; height: 16px; }
.ng-moon { grid-area: moon; justify-self: center; width: 84px; height: 84px; margin: 4vh 0 28px; }
.nightgate .head h2 { grid-area: title; padding: 28px 24px 8px; text-align: center; font: 600 42px/1.05 var(--display); color: var(--parchment); }
.nightgate .wayin-body { grid-area: body; gap: 14px; padding: 0 24px 24px; }
/* The Home Screen offer under the card (front.js placeOffer): after the form, so it pushes nothing of it down. */
.nightgate .homeoffer { grid-area: home; max-width: none; margin-top: 12px; }
.ng-fine { grid-area: fine; align-self: end; margin: 0; padding-top: 28px; text-align: center; font-size: 13px; color: rgba(239, 227, 200, .72); }
.ng-fine span { display: block; }
.ng-fine a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 4px; color: #EFE3C8; font-weight: 600; }

/* The card's parts. */
.nightgate .wayin-body > .lede { text-align: center; color: var(--mist); }
.wayseg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 6px 0 4px; border-radius: 3px; background: rgba(255, 255, 255, .05); }
.wayseg button { min-height: 44px; padding: 0 4px; border: 0; border-radius: 3px; background: none; color: var(--mist); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .2s ease, color .2s ease; }
.wayseg button[aria-current="true"] { background: var(--parchment); color: var(--ink); }
.nightgate .wayin-body form { gap: 14px; }
.nightgate .field > span, .nightgate .field .hint, .nightgate .pwtip { margin-left: 18px; }
.nightgate .field > span { color: var(--mist); }
.nightgate .field:not(.agree) input, .nightgate .field select { min-height: 52px; padding: 0 20px; border-radius: 3px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .12); color: var(--parchment); transition: border-color .15s, background-color .15s; }
.nightgate .field:not(.agree) input:focus, .nightgate .field select:focus { border-color: var(--gold); background-color: rgba(255, 255, 255, .07); }
.nightgate .field.bad input, .nightgate .field.bad select { border-color: var(--bad-glyph); }
.eyebox { position: relative; }
.nightgate .eyebox .field input { padding-right: 76px; }
.eye { position: absolute; right: 4px; bottom: 4px; min-width: 60px; height: 44px; padding: 0 14px; border: 0; border-radius: 3px; background: none;
  color: var(--mist); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.eye:hover { color: var(--parchment); }
.nightgate .wayin .error:not(:empty) { padding: 10px 16px; border: 1px solid rgba(210, 179, 108, .35); border-radius: 16px; background: rgba(210, 179, 108, .1); color: #F4C4A2; font-size: 14px; }
.nightgate .wayin .btn.primary { min-height: 54px; margin-top: 6px; border-radius: 3px; background: var(--gold); color: #1A120C; font-size: 17px; font-weight: 600; box-shadow: none; }
.nightgate .wayin-body > .btn.quiet { align-self: center; color: var(--mist); font-size: 14px; font-weight: 600; }
.nightgate .wayin-body > .btn.quiet:hover { color: var(--parchment); background: none; }
.nightgate .wayin-body > p.small { text-align: center; }
.nightgate .wayin-body p.small > .btn.quiet { vertical-align: baseline; color: var(--parchment); font-weight: 600; }
.nightgate .or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: rgba(173, 160, 135, .6); font-size: 13px; }
.nightgate .or::before, .nightgate .or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .12); }
.nightgate .btn.ghost { min-height: 50px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .18); background: none; box-shadow: none; color: var(--parchment); font-weight: 600; }
.nightgate .btn.ghost:hover { background: rgba(255, 255, 255, .05); }
/* "Sign in with Face ID" and "Forgot your password?" are the popup's longest buttons: at a very large text size their
   words take a second line, so one button doesn't make the whole popup wider than the phone (one line everywhere else). */
.nightgate .btn.ghost, .nightgate .wayin-body > .btn.quiet { white-space: normal; text-align: center; }
.nightgate .btn.ghost { padding: 8px 12px; } /* 12px a side keeps it on one line at 375 and the largest text size (150%) */
.nightgate :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 600px) {
  .ng-moon { width: 64px; height: 64px; margin: 3vh 0 22px; }
  .nightgate .head h2 { padding: 24px 18px 8px; font-size: 38px; }
  .nightgate .wayin-body { padding: 0 18px 20px; }
}
@media (min-width: 900px) {
  .nightgate .head h2 { padding: 34px 32px 8px; font-size: 48px; }
  .nightgate .wayin-body { padding: 0 32px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .wayseg button, .nightgate .field input { transition: none; }
}

/* The front page, barber first (held landingnew; newfront.js BARBER_WORDS; mock barberhome.html phone 1, the design of
   record): one light paper card floating on the painting, its tokens the paper look's own (tokens.css body.front
   .fp-card). The tag, the pitch in the display serif, one line, Ask for a code (the brown primary) and I have a code (a
   quiet one), the small honest line. Solid, never frosted: this page keeps "nothing moves, no frosted glass"
   (front-page.test.js). */
.fp-barber { max-width: 440px; }
/* A computer's width gives .words 300px on its right for the painting's credit (above): the card takes its own width
   instead, or its words would be squeezed to a narrow column. */
@media (min-width: 900px) { .fp-barber { padding-right: 0; } }
.fp-card { display: grid; gap: 12px; width: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--card); box-shadow: var(--paper-shadow); color: var(--text); }
.fp-card :is(h1, p) { margin: 0; }
.fp-tag { justify-self: start; padding: 2px 10px; border-radius: 14px; background: var(--gold-tint); color: var(--gold-text); font: 600 14px var(--font); }
.fp-pitch { font: 600 34px/1.1 var(--display); letter-spacing: -.02em; color: var(--text); }
.fp-line { font-size: 17px; line-height: 1.5; color: var(--text2); }
.fp-card .early { justify-content: center; width: 100%; min-height: 52px; border-radius: 14px; letter-spacing: normal; text-transform: none; font-size: 17px; }
.fp-card .fp-ask { background: var(--brown); color: var(--on-brown); }
.fp-card .fp-ask:hover { background: var(--brown-press); }
.fp-card .fp-have { background: transparent; color: var(--brown); }
.fp-card .fp-have:hover { background: var(--well); }
.fp-card .early:focus-visible { outline: none; box-shadow: var(--paper-focus); }
.fp-fine { font-size: 14px; line-height: 1.5; color: var(--text2); }
.fp-card .homeoffer { margin-top: 0; max-width: none; border-color: var(--line); border-radius: 14px; background: var(--well); color: var(--text); }
