/* crusader.network — the umbrella brand's front door.
 *
 * Palette and type are lifted deliberately from crusader.ro's design system so
 * the hub reads as the same family as the platforms it points at: near-black
 * ground, heraldic gold and red, Playfair for display, Inter for text, JetBrains
 * Mono for anything that behaves like a label or an identifier.
 *
 * The fonts are self-hosted, matching that site. No CDN, no external request —
 * which is also what lets the Caddyfile keep a tight connect-src on the CSP. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('/assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --ground: #050505;
    --ground-alt: #0a0908;
    --surface: rgba(255, 255, 255, 0.03);
    --line: rgba(255, 255, 255, 0.09);
    --line-soft: rgba(255, 255, 255, 0.05);
    --gold: #d4af37;
    --red: #a62527;
    --text: #e5e5e5;
    --text-dim: rgba(255, 255, 255, 0.6);
    --text-faint: rgba(255, 255, 255, 0.42);

    --shell: 1140px;
    --header-h: 72px;

    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    --serif: 'Playfair Display', Georgia, serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

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

body {
    margin: 0;
    background: var(--ground);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.015em;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

/* The shell measures the text; section backgrounds stay full-bleed, so nothing
   here creates the boxed, letterboxed look of a fixed-width page. */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: 24px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--gold);
    color: #000;
    padding: 10px 18px;
    font-size: 14px;
    z-index: 10;
}
.skip:focus {
    left: 0;
}

/* Every interactive element shares one visible focus treatment. Gold on
   near-black clears WCAG's 3:1 for non-text contrast comfortably. */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------------------------------------------------------------- masthead */

.masthead {
    position: sticky;
    top: 0;
    z-index: 5;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(5, 5, 5, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.mark {
    width: 30px;
    height: 30px;
    flex: none;
    display: block;
}

.wordmark {
    font-family: var(--serif);
    font-size: 21px;
    letter-spacing: 0.06em;
}

/* The gold full stop is part of the wordmark as it is set on crusader.finance,
   not decoration — keep it if the wordmark is ever restyled. */
.wordmark-dot {
    color: var(--gold);
}

.masthead-nav {
    display: flex;
    gap: 26px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.masthead-nav a {
    color: var(--text-faint);
    text-decoration: none;
    transition: color 0.2s ease;
}
.masthead-nav a:hover {
    color: var(--gold);
}

/* -------------------------------------------------------------------- hero */

.hero {
    padding-block: clamp(72px, 14vw, 152px) clamp(56px, 10vw, 104px);
    /* A single warm pool of light behind the headline, rather than a gradient
       wash over the whole page — it keeps the ground genuinely black at the
       edges, which is what makes the gold read as metal. */
    background:
        radial-gradient(120% 70% at 50% -10%, rgba(212, 175, 55, 0.09), transparent 62%),
        var(--ground);
}

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 26px;
}

.hero h1 {
    font-size: clamp(34px, 6.4vw, 62px);
    line-height: 1.12;
    /* Wide enough that the explicit <br> tags decide where the lines break; a
       tighter measure re-wraps the third line and the shape falls apart. Below
       the mobile breakpoint the <br> tags are ignored (see below) and the text
       wraps naturally instead. */
    max-width: 24ch;
}

@media (max-width: 560px) {
    /* The desktop line breaks are wrong at phone widths — "and the tools traders"
       alone overflows the measure. Neutralising the <br> lets the headline wrap
       to fit. */
    .hero h1 br {
        display: none;
    }
}

.lede {
    margin-top: 26px;
    max-width: 56ch;
    font-size: clamp(16px, 1.7vw, 19px);
    color: var(--text-dim);
}

/* ---------------------------------------------------------------- register */

.register {
    padding-block: clamp(48px, 8vw, 88px);
    border-top: 1px solid var(--line-soft);
    background: var(--ground-alt);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding-bottom: 22px;
}

.section-head h2 {
    font-size: clamp(22px, 3vw, 28px);
}

.section-note {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.entries {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.entry {
    border-bottom: 1px solid var(--line);
}

/* One grid shared by the linked rows and the inert one, so CrusaderFX lines up
   with the rest even though it is a <div> rather than an <a>. */
.entry-link {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 4px 20px;
    padding: 26px 16px 26px 4px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: background-color 0.22s ease, padding-left 0.22s ease;
}

/* The gold rule that wipes in on hover. Kept as a pseudo-element so it costs no
   layout and cannot shift the text next to it. */
.entry-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.24s ease;
}

a.entry-link:hover {
    background: var(--surface);
    padding-left: 14px;
}
a.entry-link:hover::before {
    transform: scaleY(1);
}

.entry-index {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    padding-top: 6px;
}

a.entry-link:hover .entry-index {
    color: var(--gold);
}

.entry-body {
    display: block;
    min-width: 0;
}

.entry-title {
    display: block;
    font-family: var(--serif);
    font-size: clamp(21px, 2.8vw, 27px);
    line-height: 1.25;
    transition: color 0.2s ease;
}

a.entry-link:hover .entry-title {
    color: var(--gold);
}

.entry-desc {
    display: block;
    margin-top: 7px;
    max-width: 54ch;
    font-size: 15.5px;
    color: var(--text-dim);
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
    font-family: var(--mono);
    font-size: 12px;
    white-space: nowrap;
}

.entry-domain {
    color: var(--text-faint);
    letter-spacing: 0.02em;
}

a.entry-link:hover .entry-domain {
    color: var(--text-dim);
}

.chip {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 10.5px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    line-height: 1.5;
}

.chip-live {
    color: var(--gold);
}

.chip-building {
    color: var(--text-faint);
}

/* CrusaderFX does not resolve yet, so its row must not imply it is clickable —
   no pointer cursor, no hover response. */
.entry-inert .entry-link {
    cursor: default;
}

.entry-inert .entry-title,
.entry-inert .entry-domain {
    color: var(--text-dim);
}

/* -------------------------------------------------------------- briefing */

.briefing {
    padding-block: clamp(52px, 9vw, 96px);
    border-top: 1px solid var(--line-soft);
    background: var(--ground);
}

.briefing-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.briefing-copy h2 {
    font-size: clamp(22px, 3vw, 30px);
}

.briefing-copy p {
    margin-top: 14px;
    max-width: 42ch;
    color: var(--text-dim);
    font-size: 15.5px;
}

.signup-label {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.signup-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.signup input {
    flex: 1 1 220px;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 13px 15px;
    color: var(--text);
    font-family: var(--sans);
    font-size: 15.5px;
    transition: border-color 0.2s ease;
}

.signup input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.signup input:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.signup button {
    flex: 0 0 auto;
    background: var(--gold);
    color: #100d04;
    border: 1px solid var(--gold);
    border-radius: 3px;
    padding: 13px 26px;
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.signup button:hover:not(:disabled) {
    background: #e2c25a;
}

.signup button:disabled {
    opacity: 0.55;
    cursor: default;
}

.signup-status {
    margin-top: 12px;
    min-height: 20px;
    font-size: 14px;
    color: var(--text-dim);
}

.signup-status.is-error {
    color: #e08a8b;
}

.signup-status.is-ok {
    color: var(--gold);
}

/* ------------------------------------------------------------------- foot */

.foot {
    border-top: 1px solid var(--line-soft);
    padding-block: 34px 42px;
    background: var(--ground-alt);
}

.foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 32px;
}

.foot-left {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.foot-brand {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-faint);
}

.foot-made {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: var(--text-faint);
}

.foot-version {
    color: var(--text-dim);
}

.foot-heart {
    width: 11px;
    height: 11px;
    flex: none;
    fill: var(--red);
    /* Nudged up so the heart sits on the text's optical centre rather than its
       baseline — at this size a baseline-aligned glyph reads as dropped. */
    transform: translateY(-0.5px);
}

/* Available to assistive tech, absent from the visual design. */
.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;
}

.foot-risk {
    font-size: 13px;
    color: var(--text-faint);
    max-width: 52ch;
}

/* ---------------------------------------------------------------- narrow */

@media (max-width: 720px) {
    .masthead-nav {
        gap: 18px;
    }

    /* The index numeral and the domain/status column both stop earning their
       horizontal space here, so the row folds to a single column and the meta
       drops under the description. */
    .entry-link {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 22px 4px;
    }

    .entry-index {
        display: block;
        padding-top: 0;
        margin-bottom: 8px;
    }

    .entry-meta {
        justify-content: flex-start;
        margin-top: 14px;
    }

    a.entry-link:hover {
        padding-left: 4px;
    }

    .briefing-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .signup button {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
