/* =========================================================
   LA MESS 2026 — camisas.cool × Polyhoney
   Photocopied alleycat race-manifest aesthetic.
   ========================================================= */

:root {
    --red:   #C1272D;   /* sampled from the mockup — the ground */
    --red-dk:#9E1E23;
    --ink:   #0D0D0D;
    --paper: #FAF7F2;
    --stamp: #F2E7D8;

    --mono: "Courier Prime", "Courier New", monospace;
    --grot: "Archivo", "Arial Narrow", sans-serif;

    --edge: 3px;        /* chunky flyer border */
    --maxw: 1180px;
}

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

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

body {
    margin: 0;
    background: var(--red);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    /* photocopy toner grain over the red ground */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; }

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

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

/* ---------- shared type ---------- */
.section-title {
    font-family: var(--grot);
    font-weight: 900;
    font-size: clamp(2.6rem, 9vw, 5.5rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0;
    color: var(--ink);
}
.section-title--paper { color: var(--paper); }

.section-kicker {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin: 0.75rem 0 0;
    opacity: 0.7;
}

.star { color: currentColor; padding: 0 0.5em; font-style: normal; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
    position: sticky; top: 0; z-index: 60;
    background: var(--red);
    border-bottom: var(--edge) solid var(--ink);
}
.nav__inner {
    max-width: var(--maxw); margin: 0 auto;
    padding: 0.55rem clamp(1rem, 4vw, 2.5rem);
    display: flex; align-items: center; justify-content: space-between;
}
.nav__wordmark {
    height: 30px; width: auto;
    /* wordmark is black; keep it black-on-red */
}
.nav__logo { display: flex; line-height: 0; }
.nav__right { display: flex; align-items: center; gap: 1rem; }
.nav__meta {
    font-size: 0.68rem; letter-spacing: 0.22em; color: var(--ink);
    font-weight: 700; border: 2px solid var(--ink); padding: 0.2rem 0.5rem;
}
.nav__ico { color: var(--ink); display: flex; transition: transform 0.15s ease; }
.nav__ico:hover { transform: translateY(-2px) rotate(-4deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 5vw, 3rem) 3.5rem;
    overflow: hidden;
}

/* printer registration / crop marks */
.cropmark { position: absolute; width: 26px; height: 26px; z-index: 2; }
.cropmark::before, .cropmark::after { content: ""; position: absolute; background: var(--ink); }
.cropmark::before { width: 100%; height: var(--edge); }
.cropmark::after  { height: 100%; width: var(--edge); }
.cropmark--tl { top: 18px; left: 18px; }
.cropmark--tr { top: 18px; right: 18px; }
.cropmark--tr::after { right: 0; }
.cropmark--bl { bottom: 18px; left: 18px; }
.cropmark--bl::before { bottom: 0; }
.cropmark--br { bottom: 18px; right: 18px; }
.cropmark--br::before { bottom: 0; }
.cropmark--br::after { right: 0; }

/* vertical side rails of mono flavor text */
.hero__rail {
    position: absolute; top: 50%;
    font-size: 0.62rem; letter-spacing: 0.3em; color: var(--ink);
    writing-mode: vertical-rl; text-transform: uppercase;
    opacity: 0.65; white-space: nowrap;
}
.hero__rail--left  { left: 20px;  transform: translateY(-50%) rotate(180deg); }
.hero__rail--right { right: 20px; transform: translateY(-50%); }

.hero__inner { position: relative; z-index: 3; width: 100%; max-width: 820px; }

.hero__eyebrow {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    font-size: clamp(0.7rem, 2.4vw, 0.9rem);
    letter-spacing: 0.28em; color: var(--ink); font-weight: 700;
    margin: 0 0 clamp(1.2rem, 3vh, 2rem);
}
.hero__eyebrow .star { color: var(--ink); }

.hero__title { margin: 0; }
.hero__art {
    display: block; width: auto;
    /* portrait line-art — cap by height so it sits inside the fold */
    height: min(62vh, 520px); max-width: 88vw; margin: 0 auto;
    /* black ink on red */
    filter: drop-shadow(0 4px 0 rgba(0,0,0,0.08));
}

.hero__sub {
    font-size: clamp(0.85rem, 2.6vw, 1.05rem);
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper);
    margin: clamp(1.4rem, 3.5vh, 2.2rem) 0 0; line-height: 1.7;
}
.hero__sub-strong {
    display: inline-block; margin-top: 0.4rem;
    background: var(--ink); color: var(--paper);
    padding: 0.25rem 0.7rem; letter-spacing: 0.2em; font-weight: 700;
}
.hero__sub .star { color: var(--paper); }

/* stamped date badge */
.hero__stamp {
    position: absolute; z-index: 3;
    right: clamp(1.5rem, 6vw, 5rem); bottom: clamp(1.5rem, 6vh, 4rem);
    display: flex; flex-direction: column; align-items: center;
    border: var(--edge) solid var(--ink); color: var(--ink);
    padding: 0.5rem 0.9rem; transform: rotate(-9deg);
    font-weight: 700; letter-spacing: 0.16em; line-height: 1;
    background: rgba(250,247,242,0.12);
}
.hero__stamp span { font-size: 0.6rem; }
.hero__stamp strong { font-family: var(--grot); font-size: 2rem; margin: 0.1rem 0; }

/* =========================================================
   COUNTDOWN
   ========================================================= */
.countdown { margin: clamp(2rem, 5vh, 3rem) 0 clamp(2rem, 5vh, 2.8rem); }
.countdown__label {
    font-size: 0.65rem; letter-spacing: 0.34em; color: var(--ink);
    margin-bottom: 0.9rem; font-weight: 700;
}
.countdown__clock {
    display: flex; align-items: flex-start; justify-content: center;
    gap: clamp(0.3rem, 1.5vw, 0.9rem);
}
.unit { display: flex; flex-direction: column; align-items: center; min-width: clamp(3.6rem, 14vw, 5rem); }
.unit__num {
    font-family: var(--grot); font-weight: 900;
    font-size: clamp(2.4rem, 10vw, 4.2rem); line-height: 1;
    color: var(--paper);
    background: var(--ink);
    padding: 0.15em 0.18em 0.1em; min-width: 100%; text-align: center;
    font-variant-numeric: tabular-nums;
    transition: opacity 0.2s ease;
}
.unit__num.tick { opacity: 0.35; }
.unit__lbl {
    font-size: 0.6rem; letter-spacing: 0.24em; margin-top: 0.55rem;
    color: var(--ink); font-weight: 700;
}
.unit__sep {
    font-family: var(--grot); font-weight: 900;
    font-size: clamp(1.8rem, 7vw, 3rem); color: var(--ink);
    line-height: 1.2; align-self: flex-start; margin-top: 0.1em;
}
.countdown--done .countdown__clock { display: none; }
.countdown--done .countdown__label { display: none; }
.countdown__raceday {
    font-family: var(--grot); font-weight: 900; text-transform: uppercase;
    font-size: clamp(2.4rem, 9vw, 4rem); color: var(--paper);
    background: var(--ink); padding: 0.2em 0.5em; letter-spacing: 0.04em;
    display: inline-block; transform: rotate(-2deg);
}

/* =========================================================
   BUTTON
   ========================================================= */
.btn {
    display: inline-block;
    font-family: var(--mono); font-weight: 700;
    font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--paper); background: var(--ink);
    padding: 1rem 1.8rem; border: var(--edge) solid var(--ink);
    text-decoration: none; cursor: pointer;
    box-shadow: 6px 6px 0 rgba(13,13,13,0.28);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 rgba(13,13,13,0.34); }
.btn:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 rgba(13,13,13,0.3); }
.btn--wide { width: 100%; text-align: center; }
.btn [hidden] { display: none; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
    background: var(--ink); color: var(--paper);
    border-top: var(--edge) solid var(--ink); border-bottom: var(--edge) solid var(--ink);
    overflow: hidden; padding: 0.7rem 0; white-space: nowrap;
}
.marquee__track {
    display: inline-flex; align-items: center; gap: 1.6rem;
    padding-left: 1.6rem;
    animation: marq 26s linear infinite;
    will-change: transform;
}
.marquee span {
    font-family: var(--grot); font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.08em; font-size: clamp(1rem, 3.5vw, 1.6rem);
}
.marquee i { font-style: normal; color: var(--red); font-size: 1.2rem; }
@keyframes marq { to { transform: translateX(-33.33%); } }

/* =========================================================
   THE TEE
   ========================================================= */
.tee { padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem); }
.tee__panel {
    position: relative;
    max-width: var(--maxw); margin: 0 auto;
    background: var(--paper); color: var(--ink);
    border: var(--edge) solid var(--ink);
    padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
    box-shadow: 12px 12px 0 rgba(13,13,13,0.35);
}
.panel-tab {
    position: absolute; top: calc(-1 * var(--edge)); left: 2rem;
    transform: translateY(-100%);
    background: var(--ink); color: var(--paper);
    font-size: 0.66rem; letter-spacing: 0.24em; font-weight: 700;
    padding: 0.35rem 0.8rem;
}
.tee__head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }

.gallery {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.8rem, 2vw, 1.4rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.frame {
    margin: 0; border: 2px solid var(--ink); background: var(--paper);
    display: flex; flex-direction: column;
}
.frame img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-bottom: 2px solid var(--ink); }
.frame--art img { object-fit: contain; padding: 8%; background: var(--paper); }
.frame figcaption {
    font-size: 0.62rem; letter-spacing: 0.14em; padding: 0.6rem 0.7rem;
    color: var(--ink); font-weight: 700; margin-top: auto;
}

/* spec sheet */
.specs { list-style: none; margin: 0; padding: 0; border-top: 2px dashed var(--ink); }
.specs li {
    display: flex; gap: 1rem; align-items: baseline;
    padding: 0.7rem 0.2rem; border-bottom: 2px dashed var(--ink);
    font-size: clamp(0.82rem, 2.2vw, 0.95rem);
}
.specs__k {
    flex: 0 0 5.5rem; font-weight: 700; letter-spacing: 0.14em;
    font-size: 0.72rem; padding-top: 0.15rem;
}
.specs__v { color: var(--ink); }

/* =========================================================
   THE STORY
   ========================================================= */
.story {
    position: relative; overflow: hidden;
    padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 5vw, 3rem);
    border-top: var(--edge) solid var(--ink);
}
.story__art {
    position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
    width: min(55%, 620px); opacity: 0.12;
    /* knocked-out illustration watermark; it's black ink on transparent */
    pointer-events: none;
}
.story__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.story .section-title { margin-bottom: clamp(2rem, 5vw, 3rem); }

.manifest-list { list-style: none; margin: 0; padding: 0; }
.manifest-list li {
    display: flex; gap: clamp(1rem, 3vw, 1.8rem);
    padding: clamp(1.2rem, 3vw, 1.8rem) 0;
    border-top: 2px solid rgba(13,13,13,0.5);
}
.manifest-list li:last-child { border-bottom: 2px solid rgba(13,13,13,0.5); }
.manifest-list__no {
    font-family: var(--grot); font-weight: 900; font-size: clamp(1.6rem, 5vw, 2.4rem);
    color: var(--ink); line-height: 1; flex: 0 0 auto;
}
.manifest-list h3 {
    font-family: var(--grot); font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.06em; font-size: 1.15rem; margin: 0 0 0.4rem; color: var(--paper);
}
.manifest-list p { margin: 0; color: var(--paper); max-width: 46ch; }
.manifest-list a {
    color: var(--ink); font-weight: 700; text-decoration: none;
    background: var(--paper); padding: 0 0.25em; box-decoration-break: clone;
}
.manifest-list a:hover { background: var(--ink); color: var(--paper); }

/* =========================================================
   MANIFEST SIGNUP
   ========================================================= */
.signup {
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 2rem) clamp(4rem, 9vw, 7rem);
    border-top: var(--edge) solid var(--ink);
    display: flex; justify-content: center;
}
.manifest {
    position: relative;
    width: min(560px, 100%);
    background: var(--stamp); color: var(--ink);
    border: var(--edge) solid var(--ink);
    padding: clamp(1.8rem, 5vw, 3rem) clamp(1.4rem, 4vw, 2.6rem) clamp(1.6rem, 4vw, 2.4rem);
    transform: rotate(-1deg);
    box-shadow: 14px 14px 0 rgba(13,13,13,0.4);
    background-image:
        repeating-linear-gradient(0deg, transparent 0 27px, rgba(13,13,13,0.06) 27px 28px);
}
.manifest__perf {
    position: absolute; left: 0; right: 0; top: 18%;
    border-top: 2px dashed rgba(13,13,13,0.4);
}
.manifest__stamp {
    position: absolute; top: -22px; right: -14px;
    border: var(--edge) solid var(--red-dk); color: var(--red-dk);
    text-align: center; padding: 0.4rem 0.6rem; transform: rotate(8deg);
    font-size: 0.6rem; letter-spacing: 0.18em; font-weight: 700; line-height: 1.1;
    background: rgba(193,39,45,0.06);
}
.manifest__stamp strong { font-family: var(--grot); font-size: 1.5rem; display: block; }
.manifest__head { margin-bottom: 1.6rem; }
.manifest__eyebrow {
    font-size: 0.64rem; letter-spacing: 0.24em; font-weight: 700;
    margin: 0 0 0.9rem; padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--ink);
}
.manifest .section-title { font-size: clamp(2.2rem, 8vw, 3.4rem); }
.manifest__copy { margin: 1rem 0 0; font-size: 0.9rem; max-width: 40ch; }

.manifest__fields { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field__lbl { font-size: 0.68rem; letter-spacing: 0.16em; font-weight: 700; }
.field__lbl em { font-style: normal; opacity: 0.6; font-weight: 400; }
.field input {
    font-family: var(--mono); font-size: 1rem; color: var(--ink);
    background: transparent; border: none; border-bottom: 2px solid var(--ink);
    padding: 0.5rem 0.2rem; border-radius: 0;
}
.field input::placeholder { color: rgba(13,13,13,0.35); }
.field input:focus { outline: none; border-bottom-color: var(--red-dk); background: rgba(255,255,255,0.4); }

.manifest__feedback {
    margin: 1.1rem 0 0; padding: 0.8rem 1rem; font-size: 0.85rem; font-weight: 700;
    border: 2px solid var(--ink);
}
.manifest__feedback--ok { background: var(--ink); color: var(--paper); }
.manifest__feedback--err { background: var(--red); color: var(--paper); border-color: var(--red-dk); }

.manifest__foot {
    display: flex; justify-content: space-between; margin-top: 1.4rem;
    padding-top: 0.9rem; border-top: 2px dashed var(--ink);
    font-size: 0.6rem; letter-spacing: 0.14em; font-weight: 700; opacity: 0.7;
}
.manifest.is-done .manifest__fields,
.manifest.is-done .btn { display: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--ink); color: var(--paper);
    border-top: var(--edge) solid var(--ink);
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 5vw, 3rem);
}
.footer__inner {
    max-width: var(--maxw); margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 2rem;
    align-items: center; justify-content: space-between;
}
.footer__wordmark {
    height: 46px; width: auto;
    /* wordmark is black ink; invert to paper on the dark footer */
    filter: invert(96%) sepia(6%) saturate(180%) hue-rotate(3deg) brightness(103%);
}
.footer__mid { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.footer__mail {
    font-size: clamp(1rem, 3vw, 1.3rem); font-weight: 700; letter-spacing: 0.04em;
    color: var(--paper); text-decoration: none; border-bottom: 2px solid var(--red);
}
.footer__mail:hover { background: var(--red); }
.footer__social { display: flex; gap: 1.2rem; }
.footer__social a {
    font-size: 0.7rem; letter-spacing: 0.16em; font-weight: 700;
    color: var(--paper); text-decoration: none; opacity: 0.8;
}
.footer__social a:hover { opacity: 1; color: var(--red); }
.footer__legal {
    font-size: 0.62rem; letter-spacing: 0.16em; line-height: 1.8;
    text-align: right; opacity: 0.6; margin: 0;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.7s cubic-bezier(0.2,0.7,0.2,1) forwards; }
.reveal--1 { animation-delay: 0.1s; }
.reveal--2 { animation-delay: 0.25s; }
.reveal--3 { animation-delay: 0.4s; }
.reveal--4 { animation-delay: 0.55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-up.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
    .hero__rail { display: none; }
    .story__art { opacity: 0.08; width: 80%; right: -20%; }
}

@media (max-width: 720px) {
    .gallery {
        grid-template-columns: none; grid-auto-flow: column;
        grid-auto-columns: 78%;
        overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-left: calc(-1 * clamp(1.2rem, 4vw, 3.5rem));
        margin-right: calc(-1 * clamp(1.2rem, 4vw, 3.5rem));
        padding-left: clamp(1.2rem, 4vw, 3.5rem);
        padding-right: clamp(1.2rem, 4vw, 3.5rem);
    }
    .frame { scroll-snap-align: center; }
    .hero__stamp { right: 1rem; bottom: 1rem; transform: rotate(-9deg) scale(0.85); }
    .footer__inner { flex-direction: column; text-align: center; }
    .footer__legal { text-align: center; }
    .footer__mid { order: -1; }
}

@media (max-width: 400px) {
    .countdown__clock { gap: 0.15rem; }
    .unit { min-width: 3.3rem; }
    .unit__sep { display: none; }
    .nav__meta { display: none; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee__track { animation: none; transform: translateX(0); }
    .reveal, .reveal-up { opacity: 1; transform: none; animation: none; transition: none; }
    .unit__num.tick { opacity: 1; }
    .btn { transition: none; }
}
