@font-face {
    font-family: "Anonymous Pro";
    src: url("/fonts/AnonymousPro-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Anonymous Pro";
    src: url("/fonts/AnonymousPro-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #05080e;
    --surface: #0a101c;
    --text: #cbd8eb;
    --muted: #8e9fb9;
    --blue: #53bdff;
    --purple: #a290ff;
    --line: #253148;
    --gutter: clamp(1.25rem, 5.5vw, 7rem);
    font: 17px/1.65 "Anonymous Pro", monospace;
    font-synthesis: none;
    background: var(--bg);
    color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
a { color: inherit; text-underline-offset: .25em; }
button, input, select { font: inherit; }
input, textarea { -webkit-user-select: text; user-select: text; }
button, .button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .5; }
input, select { min-width: 0; border: 1px solid #344561; border-radius: 0; background: var(--surface); padding: .8rem 1rem; color: var(--text); }
input::placeholder { color: #7486a2; }
input[type="checkbox"] { accent-color: var(--blue); width: 1.1rem; height: 1.1rem; flex: 0 0 auto; margin-top: .3rem; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
::selection { background: #343b76; color: #e0e6ff; }
.skip { position: absolute; left: 1rem; top: 1rem; padding: .6rem 1rem; transform: translateY(-200%); background: var(--surface); z-index: 5; }
.skip:focus { transform: none; }
.header { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.8rem var(--gutter); border-bottom: 1px solid #1c273a; }
.wordmark { font-size: .95rem; font-weight: 700; letter-spacing: .13em; text-decoration: none; }
.wordmark span { margin-left: .6rem; color: var(--blue); font-weight: 400; }
nav { display: flex; gap: 2rem; font-size: .85rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--blue); }
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: min(850px, calc(100svh - 5.5rem)); padding: 5rem var(--gutter) 1.2rem; overflow: hidden; }
.field { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--bg); }
canvas { display: block; width: 100%; height: 100%; }
.hero-copy { max-width: 51rem; }
.eyebrow { color: var(--blue); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.4rem; }
h1 { font-size: clamp(2.6rem, 5.8vw, 5.8rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.04; }
.lead { max-width: 36rem; margin-top: 2rem; font-size: 1.08rem; }
.hero-detail { max-width: 35rem; color: var(--muted); margin-top: 1rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6rem; margin-top: 2rem; }
.button { display: inline-block; border: 1px solid #377ca7; border-radius: 0; padding: .8rem 1.15rem; background: #0c2335; color: #a1d9ff; text-decoration: none; }
.button:hover { background: #13334a; }
.text-link, .text-button { color: var(--text); font-size: .95rem; }
.text-button { border: 0; padding: .4rem 0; background: transparent; text-decoration: underline; text-underline-offset: .25em; }
.text-link:hover, .text-button:hover { color: var(--blue); }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .7rem; letter-spacing: .04em; margin-top: auto; padding-top: 4rem; }
.hero-foot button { border: 0; background: none; color: var(--muted); padding: .5rem; font-size: inherit; }
.section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4rem; padding: 5rem var(--gutter); border-top: 1px solid var(--line); }
.section-heading { max-width: 26rem; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 400; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; }
.section-body { max-width: 43rem; }
.section-body > p, .prose p { color: var(--muted); }
.prose p + p { margin-top: 1.3rem; }
.aside { margin-top: 1.5rem; color: var(--muted); font-size: .85rem; }
.search-form, .register-form { margin-top: 1.8rem; }
label:not(.consent) { display: block; font-size: .85rem; margin-bottom: .55rem; }
.input-action { display: flex; gap: .6rem; }
.input-action input { flex: 1; text-transform: uppercase; }
.small { font-size: .8rem; margin-top: 1.3rem; color: var(--muted); }
.status { min-height: 1.6em; margin-top: 1rem; color: var(--blue) !important; }
.status:empty { display: none; }
.status[data-error="true"] { color: #dbabed !important; }
.record { margin-top: 1.5rem; padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); }
.record h3 { color: var(--blue); font-size: 1.4rem; }
dl { display: grid; grid-template-columns: minmax(6rem, 1fr) minmax(0, 2fr); gap: .65rem 1rem; margin: 1.5rem 0; font-size: .85rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.register-form select { width: 100%; }
.consent { display: flex; gap: .8rem; align-items: flex-start; margin: 1.5rem 0; font-size: .9rem; }
.signin { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.3rem; font-size: .9rem; }
.signin p { color: var(--muted); }
.devices-heading { margin-top: 2rem; }
.devices { list-style: none; padding: 0; margin: 1rem 0; }
.devices li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.devices .text-button { font-size: .8rem; }
footer { border-top: 1px solid var(--line); padding: 2rem var(--gutter); color: var(--muted); font-size: .8rem; }
footer p:first-child { color: var(--text); }
footer p + p { margin-top: .3rem; }

@media (max-width: 850px) {
    .header { align-items: flex-start; flex-direction: column; gap: .8rem; }
    nav { gap: 1.3rem; flex-wrap: wrap; }
    .hero { min-height: 760px; padding-top: 4rem; }
    .section { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
    .section-heading { max-width: none; }
    .section-heading br { display: none; }
    .hero-foot { flex-wrap: wrap; }
}

@media (max-width: 430px) {
    .input-action { flex-direction: column; }
    .hero { min-height: auto; }
    .hero-foot { padding-top: 3rem; }
    dl { grid-template-columns: 1fr; gap: .3rem; }
    dd + dt { margin-top: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

@media (forced-colors: active) {
    .field { display: none; }
    .button { border-color: ButtonText; }
}
