/* ============================================================
   EVENT HOME PAGE — dd- (event) styles
   Background image: img/hyroxbg.png
   ============================================================ */

/* ---- Design tokens ---- */
:root {
    --dd-black:      #0A0A0A;
    --dd-ink:        #111111;
    --dd-panel:      #161616;
    --dd-line:       #262626;
    --dd-white:      #F5F5F5;
    --dd-muted:      #9A9A9A;
    --dd-accent:     #FF3B00;   /* race-orange CTA, unrelated to finish-line */
    --dd-accent-hi:  #FF5A26;
    --dd-shell:      1200px;
    --dd-font-head:  'Bebas Neue', 'Oswald', sans-serif;
    --dd-font-body:  'Oswald', system-ui, sans-serif;

    /* ---- Finish-line palette — recolored to the PFT logo ---- */
    /* HYROX PFT logo: yellow block, black text. Accent is that yellow. */
    --fl-accent:      #E5FF00;   /* logo yellow — accents, medals, active state */
    --fl-accent-hi:   #F2FF5A;   /* hover / brighter variant */
    --fl-accent-dim:  #B8CC00;   /* muted variant for labels */
    --fl-on-accent:   #0A0A0A;   /* text sitting ON the yellow block */

    /* Field — near-black, matching the logo block's frame. */
    --fl-ink:         #06070A;
    --fl-surface:     #0E1016;
    --fl-panel-bg:    rgba(14, 16, 22, .72);   /* translucent — bg shows through */

    /* Hairlines — soft neutral, tuned to the yellow accent. */
    --fl-hairline:    rgba(229, 255, 0, .14);
    --fl-hairline-2:  rgba(255, 255, 255, .07);
    --fl-hairline-3:  rgba(255, 255, 255, .04);

    /* Text */
    --fl-text-hi:     #FFFFFF;
    --fl-text:        #D4D8DE;
    --fl-text-dim:    #8A93A0;
    --fl-text-mute:   #5A6270;

    /* Semantic */
    --fl-success:     #7DFFA0;
    --fl-danger:      #FF7A7A;
    --fl-warn:        #FFC34D;

    --fl-mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, monospace;
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.dd-page {
    margin: 0;
    min-height: 100vh;
    font-family: var(--dd-font-body);
    color: var(--dd-white);
    background-color: var(--dd-black);
    line-height: 1.5;

    background-image:
        linear-gradient(rgba(10,10,10,.72), rgba(10,10,10,.88)),
        url('/img/hyroxbg.png');
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---- Layout shell ---- */
.dd-shell {
    width: 100%;
    max-width: var(--dd-shell);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ============================================================
   HERO
   ============================================================ */
.dd-hero {
    position: relative;
    min-height: clamp(420px, 72vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(3rem, 8vw, 6rem) 0;

    background:
        radial-gradient(ellipse at 50% 40%,
            rgba(0,0,0,.15) 0%,
            rgba(0,0,0,.55) 70%,
            rgba(0,0,0,.85) 100%);
}

.dd-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.dd-headline {
    font-family: var(--dd-font-head);
    font-weight: 400;
    font-size: clamp(2.75rem, 9vw, 6.5rem);
    line-height: 0.92;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin: 0 0 .5em;
    text-shadow: 0 4px 24px rgba(0,0,0,.6);
}

.dd-hero p {
    margin: .25em 0;
    color: var(--dd-muted);
    font-size: clamp(.95rem, 2vw, 1.15rem);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.dd-countdown {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(.35rem, 1.5vw, .9rem);
    margin: 1.75rem auto;
    padding: 0;
}

.dd-count-unit {
    flex: 0 1 auto;
    min-width: clamp(58px, 12vw, 110px);
    padding: clamp(.5rem, 1.5vw, .9rem) clamp(.4rem, 1.2vw, .8rem);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--dd-line);
    border-radius: 8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.dd-count-num {
    font-family: var(--dd-font-head);
    font-weight: 400;
    font-size: clamp(1.9rem, 6vw, 3.5rem);
    line-height: 1;
    letter-spacing: .02em;
    color: var(--dd-white);
    font-variant-numeric: tabular-nums;
}

.dd-count-lbl {
    margin-top: .4em;
    font-size: clamp(.6rem, 1.4vw, .75rem);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dd-muted);
}

.dd-count-sep {
    align-self: center;
    font-family: var(--dd-font-head);
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    color: var(--dd-muted);
    opacity: .6;
    padding-bottom: .6em;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.dd-section {
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    position: relative;
}

.dd-section + .dd-section { border-top: 1px solid var(--dd-line); }

.dd-section h2 {
    font-family: var(--dd-font-head);
    font-weight: 400;
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin: 0 0 .6em;
}

.dd-section p {
    max-width: 65ch;
    color: #d6d6d6;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
}

/* ============================================================
   CTA
   ============================================================ */
.dd-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2.75rem;
    font-family: var(--dd-font-head);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--dd-accent);
    border: 2px solid var(--dd-accent);
    border-radius: 4px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .12s ease;
    box-shadow: 0 10px 30px rgba(255,59,0,.25);
}

.dd-cta:hover,
.dd-cta:focus-visible {
    background: var(--dd-accent-hi);
    border-color: var(--dd-accent-hi);
    transform: translateY(-1px);
    outline: none;
}

.dd-cta:active { transform: translateY(0); }

/* ============================================================
   FOOTER
   ============================================================ */
.dd-footer {
    padding: 3rem 0 2.5rem;
    border-top: 1px solid var(--dd-line);
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-align: center;
}

.dd-footer p { margin: .25em 0; }

.dd-footer-brand {
    font-family: var(--dd-font-head);
    font-size: 1.35rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dd-white);
}

.dd-footer-venue {
    color: var(--dd-muted);
    font-size: .9rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dd-footer-legal {
    margin-top: 1rem;
    color: #6a6a6a;
    font-size: .78rem;
    letter-spacing: .04em;
}

/* ============================================================
   RESULTS PHASE -- the finish-line styles (.dd-fl-*) moved to assets/css/event_site.css on 2026-10-15 so the Deadly Dozen shares them.
   What stays here is this event's PALETTE: the --fl-* tokens in :root above. event_site.css loads BEFORE this file, so they override its defaults.
   ============================================================ */

/* ============================================================
   ACCESSIBILITY / MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .dd-cta { transition: none; }
}

@supports not (background-attachment: fixed) {
    body.dd-page { background-attachment: scroll, scroll; }
}
