/*
 * Authorized Loitering: the Bureau's public pages
 *
 * Styles for the welcome, log in and register pages. The look is a
 * government form: faded green ground, paper panels, ink outlines, one
 * stamp red and one ticket yellow. Written phone-first; sections grow
 * into columns on wider screens.
 *
 * Served as a plain file (no build step) so a push deploys it.
 *
 * @package   public.css
 * @copyright 2026 One Man's Junk Games
 */

:root {
    --ground: #DDE5DA;
    --paper: #F4F6EF;
    --ink: #17231F;
    --stamp: #A3231B;
    --ticket: #EFCB52;
    --wall: #C8D5C5;
    --floor: #A9BBA8;
    --muted: #3F4F48;
    --rule: #9FB19E;
    --night: #22332D;
    --night-rule: #4A5E55;
    --night-text: #E9EFE4;
    --night-muted: #D3DDD0;
    --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --body: 'IBM Plex Sans', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.45;
}

h1, h2, h3, p { margin: 0; }

a { color: var(--ink); }
a:hover { color: var(--stamp); }

:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.wrap--narrow { max-width: 460px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 700; line-height: 0.98; text-transform: uppercase; letter-spacing: 0.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.4; }

/* ---- Top bar ---- */

.bar { background: var(--ink); color: var(--paper); }
.bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.bar__brand { display: flex; flex-direction: column; gap: 2px; color: var(--paper); text-decoration: none; }
.bar__brand:hover { color: var(--ticket); }
.bar__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #C9D6C8; }
.bar__title { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.bar__links { display: flex; align-items: center; gap: 8px; }
.bar__link { min-height: 44px; padding: 0 10px; display: flex; align-items: center; color: var(--paper); font-size: 14px; font-weight: 600; }
.bar__link:hover { color: var(--ticket); }

.sign { border: 2px solid var(--ticket); border-radius: 4px; padding: 4px 10px; text-align: right; color: var(--ticket); font-family: var(--mono); }
.sign--solid { border: 0; background: var(--ink); }
.sign__label { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.sign__number { display: block; font-size: 22px; font-weight: 600; line-height: 1.1; }
.form-no { border: 2px solid var(--ticket); border-radius: 4px; padding: 6px 10px; color: var(--ticket); font-family: var(--mono); font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ---- Buttons ---- */

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: #FFFFFF; color: var(--ink); }
.btn--ticket { background: var(--ticket); border-color: var(--ticket); }
.btn--ticket:hover { background: #F5D975; }
.btn--stamp { width: 100%; min-height: 54px; border-width: 2.5px; background: var(--stamp); color: #FFFFFF; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; }
.btn--stamp:hover { background: #8C1D16; color: #FFFFFF; }
.btn[disabled], .btn--stamp[disabled] { background: var(--rule); color: var(--ink); cursor: not-allowed; }

/* ---- The room strip ---- */

.room { position: relative; background: var(--wall); border-bottom: 2.5px solid var(--ink); overflow: hidden; }
.room::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: var(--floor); border-top: 2.5px solid var(--ink); }
.room--window { height: 152px; }
.room--dispenser { height: 136px; }
.room--dispenser::after { display: none; }
.room > svg { position: absolute; left: 50%; z-index: 1; display: block; }
.room--window > svg { top: 20px; margin-left: -86px; }
.room--dispenser > svg { top: 8px; margin-left: -60px; }

/* ---- Panels, notices, tickets ---- */

.panel { background: var(--paper); border: 2px solid var(--ink); }
.panel--form { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.notice { background: var(--paper); border: 2.5px solid var(--ink); padding: 8px 12px; text-align: center; }
.notice__head { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.1em; color: var(--stamp); text-transform: uppercase; }
.notice--reject { border-color: var(--stamp); text-align: left; }

.strip { background: var(--ticket); border: 2px solid var(--ink); padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.strip__head { font-size: 15px; font-weight: 600; line-height: 1.2; }

.stamp { flex-shrink: 0; transform: rotate(-8deg); border: 2.5px solid var(--stamp); color: var(--stamp); padding: 2px 8px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; }

/* ---- Forms ---- */

.field { display: flex; flex-direction: column; gap: 5px; }
.field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.input { width: 100%; min-width: 0; height: 48px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 0; background: #FFFFFF; color: var(--ink); font-family: var(--body); font-size: 16px; }
.input[aria-invalid="true"] { border-color: var(--stamp); }
.input-row { display: flex; }
.input-row .input { border-right: 0; }
.input-row .btn { height: 48px; background: var(--ground); }
.error { font-size: 13px; font-weight: 500; color: var(--stamp); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; line-height: 1.3; cursor: pointer; }
.check input { flex-shrink: 0; width: 22px; height: 22px; margin: 0; accent-color: var(--stamp); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* ---- Log in and register pages ---- */

.door { flex: 1; padding-top: 14px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.door__signoff { margin-top: auto; padding-top: 16px; text-align: center; color: var(--muted); font-size: 11px; }

/* ---- Welcome: hero ---- */

.band { border-bottom: 2.5px solid var(--ink); }
.band__inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.band--paper { background: var(--paper); }
.band--wall { background: var(--wall); }
.band--ticket { background: var(--ticket); }
.band--night { background: var(--ink); color: var(--night-text); }
.band h2 { font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 0.98; text-transform: uppercase; }
.heading { display: flex; flex-direction: column; gap: 6px; }

.hero__inner { padding-top: 24px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; }
.hero__pitch { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hero__pitch h1 { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 16vw, 92px); line-height: 0.9; text-transform: uppercase; letter-spacing: 0.01em; }
.hero__pitch p { font-size: 17px; max-width: 460px; }
.eyebrow { color: var(--stamp); font-weight: 600; }
.hero__demo { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero__demo > * { width: 358px; max-width: 100%; }
.demo__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }

.scene { position: relative; height: 204px; background: var(--wall); border: 2.5px solid var(--ink); overflow: hidden; }
.scene::before { content: ""; position: absolute; left: 0; right: 0; top: 168px; bottom: 0; background: var(--floor); border-top: 2.5px solid var(--ink); }
.scene button { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; }
.scene button svg { display: block; }
.scene button:active { transform: translateY(1px); }
.scene__clock { left: 34px; top: 12px; }
.scene__window { left: 168px; top: 10px; }
.scene__fish { left: 12px; top: 82px; }
.scene__chairs { left: 180px; top: 124px; }

.slip { padding: 10px 12px; background: var(--paper); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.slip__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.slip__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.slip__title { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.05; min-height: 22px; }
.slip__line { font-size: 13px; line-height: 1.35; color: var(--muted); min-height: 36px; }

/* ---- Welcome: sections ---- */

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }

.step { border: 2px solid var(--ink); background: var(--ground); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.step__no { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--stamp); }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; text-transform: uppercase; }
.step p { font-size: 15px; }
.lead { margin-top: 2px; border: 2px dashed var(--ink); background: var(--paper); padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lead b { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1; }

.split { flex-direction: row; flex-wrap: wrap; gap: 20px 48px; align-items: flex-start; }
.split__text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.split__text p { color: var(--night-muted); }
.band--night .mono { color: var(--ticket); }

.floors { flex: 1 1 320px; min-width: 0; margin: 0; padding: 0; list-style: none; border: 2px solid var(--night-text); background: var(--night); }
.floors li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1.5px solid var(--night-rule); }
.floors li:last-child { border-bottom: 0; }
.floors__no { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--night-text); background: var(--ticket); color: var(--ink); font-family: var(--mono); font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.floors__no--here { background: var(--stamp); color: #FFFFFF; }
.floors__no--unlisted { border-style: dashed; border-color: #B5C4B8; background: transparent; color: #B5C4B8; }
.floors b { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1; text-transform: uppercase; }
.floors span { display: block; margin-top: 2px; font-size: 13px; color: var(--night-muted); }
.floors .is-unlisted b, .floors .is-unlisted span { color: #B5C4B8; }

.specimen { background: var(--paper); border: 2px solid var(--ink); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.specimen__top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.specimen b { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.02; }
.specimen p { font-size: 14px; line-height: 1.4; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.redact { display: inline-block; height: 14px; background: var(--ink); }

.boards { margin: 0; padding: 0; list-style: none; border: 2px solid var(--ink); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.boards li { padding: 12px 14px; box-shadow: 0 1.5px 0 var(--rule), 1.5px 0 0 var(--rule); }
.boards b { display: block; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1; text-transform: uppercase; }
.boards span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; }

.cta { align-items: center; text-align: center; gap: 12px; padding-top: 36px; padding-bottom: 36px; }
.cta h2 { font-size: 44px; line-height: 0.95; }
.cta p { font-size: 15px; max-width: 420px; }
.cta .btn--stamp { max-width: 358px; }
.cta__login { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 600; }

.foot { margin-top: auto; background: var(--ink); color: #C9D6C8; text-align: center; }
.foot__inner { padding-top: 20px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 6px; }
.foot small { font-size: 12.5px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
