:root {
    color-scheme: dark;
    --ink: #11100f;
    --paper: #f1eee5;
    --muted: #aaa69c;
    --panel: #1b1a18;
    --line: #393631;
    --accent: #ffaa29;
    --accent-hot: #ffc15c;
    --focus: #ffaa29;
    --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 170, 41, .09), transparent 24rem),
        repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0, rgba(255,255,255,.012) 1px, transparent 1px, transparent 4px),
        var(--ink);
    color: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent-hot); }

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

.skip-link {
    position: fixed;
    z-index: 100;
    top: 1rem;
    left: 1rem;
    padding: .7rem 1rem;
    background: var(--paper);
    color: var(--ink);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer {
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto;
}

.site-header {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.brand img {
    display: block;
    width: clamp(150px, 18vw, 210px);
    height: auto;
}

.context,
.eyebrow {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.context { color: var(--muted); }
.eyebrow { margin: 0 0 1.1rem; color: var(--accent); }
.eyebrow span { color: var(--paper); margin-right: .7rem; }

.landing {
    width: min(calc(100% - 48px), var(--max));
    margin: 0 auto;
}

.hero {
    min-height: calc(100vh - 88px);
    min-height: calc(100svh - 88px);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .75fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: center;
    padding: clamp(3rem, 7vh, 6.5rem) 0;
}

.hero-copy { position: relative; }
.hero-copy::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 9px;
    left: -10px;
    bottom: -36px;
    background: var(--accent);
    transform: rotate(-3deg);
}

h1,
h2 {
    margin: 0;
    font-weight: 950;
    line-height: .86;
    letter-spacing: -.075em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 8ch;
    font-size: clamp(4.2rem, 10.2vw, 9.4rem);
}
.hero h1 em {
    position: relative;
    color: var(--ink);
    font-style: normal;
    display: inline-block;
    padding: .04em .1em .1em .04em;
    background: var(--accent);
    transform: rotate(-1.2deg);
    box-shadow: .05em .05em 0 var(--paper);
}

.intro {
    max-width: 650px;
    margin: clamp(2.3rem, 5vw, 4rem) 0 1.9rem;
    color: #d2cec5;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--paper);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.facts li::before { content: "×"; color: var(--accent); margin-right: .45rem; }

.form-wrap {
    position: relative;
    padding-top: 23px;
    filter: drop-shadow(22px 24px 0 rgba(0,0,0,.24));
}

.tape {
    position: absolute;
    z-index: 2;
    top: 5px;
    left: -18px;
    right: -13px;
    overflow: hidden;
    padding: 7px 10px 6px;
    background: var(--accent);
    color: var(--ink);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-align: center;
    white-space: nowrap;
    transform: rotate(-1.6deg);
}

.signup-form,
.status-card {
    position: relative;
    border: 1px solid #44403a;
    background:
        linear-gradient(145deg, rgba(255,255,255,.025), transparent 42%),
        var(--panel);
}

.signup-form { padding: clamp(1.5rem, 4vw, 2.65rem); }
.form-heading { padding: .5rem 0 1.8rem; }
.form-heading .eyebrow { margin-bottom: .65rem; }
.form-heading h2 { font-size: clamp(2.15rem, 4.5vw, 3.7rem); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label {
    display: block;
    margin-bottom: .4rem;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    min-height: 50px;
    padding: .75rem .85rem;
    border: 1px solid #555049;
    border-radius: 0;
    background: #12110f;
    color: var(--paper);
    font: inherit;
}
input:hover { border-color: #817a70; }
input:focus { border-color: var(--accent); outline: 2px solid transparent; box-shadow: 0 0 0 3px rgba(255,170,41,.18); }
input[aria-invalid="true"] { border-color: var(--accent); }

.field-error {
    display: block;
    min-height: 1.1em;
    margin-top: .3rem;
    color: #ffc56f;
    font-size: .74rem;
}

.form-error {
    margin: 0 0 1rem;
    padding: .7rem .8rem;
    border-left: 4px solid var(--accent);
    background: rgba(255,170,41,.1);
    color: #ffe2b5;
    font-size: .85rem;
}

.consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: .15rem .7rem;
    margin: .2rem 0 1.2rem;
    color: #c2beb5;
    font-size: .76rem;
    line-height: 1.45;
}
.consent input {
    width: 20px;
    height: 20px;
    margin: .1rem 0 0;
    accent-color: var(--accent);
}
.consent .field-error { grid-column: 2; }

.submit-button {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.1rem;
    border: 2px solid var(--accent);
    border-radius: 0;
    background: var(--accent);
    color: var(--ink);
    font: 900 .85rem/1 Arial, Helvetica, sans-serif;
    letter-spacing: .08em;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.submit-button:hover { background: transparent; color: var(--paper); transform: translateY(-2px); }
.submit-button:active { transform: translateY(0); }

.privacy-note {
    margin: 1rem 0 0;
    color: #8d8981;
    font-size: .72rem;
    text-align: center;
}

.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.site-footer {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid var(--line);
    color: #8f8b83;
    font-size: .73rem;
}
.site-footer nav { display: flex; gap: 1.2rem; }

.status-shell,
.legal-shell {
    width: min(calc(100% - 48px), var(--max));
    min-height: calc(100vh - 178px);
    min-height: calc(100svh - 178px);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 7rem) 0;
}

.status-shell { display: grid; place-items: center; }
.status-card { width: min(100%, 760px); padding: clamp(2rem, 7vw, 5rem); }
.status-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 38%;
    height: 7px;
    background: var(--accent);
}
.status-card--muted::before { background: #79736b; }
.status-card h1 { max-width: 10ch; font-size: clamp(3.2rem, 8vw, 6.6rem); }
.status-copy { max-width: 600px; margin: 2rem 0; color: #c9c5bc; font-size: 1.05rem; }
.text-link { display: inline-block; margin-top: 1rem; color: var(--paper); font-weight: 800; }
.status-card strong { color: var(--paper); }

.legal { max-width: 800px; }
.legal > h1 { margin-bottom: clamp(3rem, 8vw, 6rem); font-size: clamp(4rem, 11vw, 8rem); }
.legal section { padding: 2rem 0; border-top: 1px solid var(--line); }
.legal h2 { margin-bottom: 1rem; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1; letter-spacing: -.035em; }
.legal p { color: #c5c1b8; }
.legal-todo {
    margin: 1.5rem 0 2.5rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid var(--accent);
    background: rgba(255,170,41,.08);
}
.legal-todo strong { color: var(--accent-hot); }
.legal-todo p { margin-bottom: 0; }

.admin-shell .status-card { max-width: 620px; }
.admin-form { margin-top: 2rem; }
.admin-actions { display: grid; gap: 1.2rem; }
.admin-actions form { text-align: center; }
.text-button { border: 0; background: transparent; color: var(--paper); text-decoration: underline; cursor: pointer; }

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; min-height: auto; gap: 4.5rem; }
    .hero-copy::after { display: none; }
    .form-wrap { width: min(100%, 600px); margin-inline: auto; }
}

@media (max-width: 560px) {
    .site-header,
    .site-footer,
    .landing,
    .status-shell,
    .legal-shell { width: min(calc(100% - 28px), var(--max)); }
    .site-header { min-height: 70px; gap: .75rem; }
    .brand img { width: 135px; }
    .context { max-width: 10rem; font-size: .6rem; letter-spacing: .1em; text-align: right; }
    .hero { padding: 2.6rem 0 4rem; gap: 3.4rem; }
    .hero h1 { font-size: clamp(3.7rem, 20vw, 5.7rem); }
    .intro { margin-top: 2.6rem; }
    .facts { display: grid; gap: .5rem; }
    .field-grid { grid-template-columns: 1fr; gap: 0; }
    .signup-form { padding: 1.5rem 1.1rem; }
    .site-footer { padding: 1.4rem 0; flex-direction: column; align-items: flex-start; gap: .5rem; }
    .site-footer p { margin: 0; }
    .status-shell,
    .legal-shell { min-height: calc(100svh - 150px); padding: 3rem 0; }
    .status-card { padding: 2.2rem 1.35rem; }
    .status-card h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
