/* ============================================================
   Ostrenford — Poster Wall design system
   Solid color-field canvases, single geometric sans, radius 0,
   zero shadows. Images float directly on the color, no card chrome.
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --ink: #17130d;
    --paper: #ffffff;

    --c-orange: #e4822e;
    --c-oxblood: #b13225;
    --c-nearblack: #14181a;
    --c-sage: #99aa91;
    --c-pearl: #feccc0;
    --c-paper: #ffffff;

    --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-body: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    font-size: 16px;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.75rem, 7vw, 5rem);
    line-height: 0.98;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.02;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.15;
}

p {
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

.no-underline {
    text-decoration: none;
}

section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.lede {
    max-width: 620px;
    margin-top: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ---------- Canvas color bands ---------- */
/* Each band sets a background + the paired text/border color (ink or paper)
   so every child element inherits correct contrast automatically. */

.band {
    background: var(--band-bg);
    color: var(--band-fg);
}

.band-orange {
    --band-bg: var(--c-orange);
    --band-fg: var(--ink);
}

.band-oxblood {
    --band-bg: var(--c-oxblood);
    --band-fg: var(--paper);
}

.band-nearblack {
    --band-bg: var(--c-nearblack);
    --band-fg: var(--paper);
}

.band-sage {
    --band-bg: var(--c-sage);
    --band-fg: var(--ink);
}

.band-pearl {
    --band-bg: var(--c-pearl);
    --band-fg: var(--ink);
}

.band-paper {
    --band-bg: var(--paper);
    --band-fg: var(--ink);
}

.band a {
    color: var(--band-fg);
}

/* ---------- Header ---------- */

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: nowrap;
}

.nav-links a {
    color: var(--ink);
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.current {
    border-bottom-color: var(--ink);
}

/* Mobile menu toggle (hamburger) */

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--ink);
    background: transparent;
    color: var(--ink);
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--ink);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.2s ease;
    }

    .nav-links.is-open {
        max-height: 220px;
        visibility: visible;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(23, 19, 13, 0.12);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a:hover,
    .nav-links a.current {
        background: rgba(23, 19, 13, 0.05);
    }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.85rem 1.5rem;
    border: 2px solid var(--band-fg, var(--ink));
    background: transparent;
    color: var(--band-fg, var(--ink));
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.btn:hover {
    background: var(--band-fg, var(--ink));
    color: var(--band-bg, var(--paper));
    text-decoration: none;
}

/* ---------- Hero ---------- */

#hero {
    display: flex;
    align-items: center;
    min-height: 78vh;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3) contrast(1.05);
    opacity: 0.65;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-orange);
    opacity: 0.72;
}

#hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 820px;
}

.hero-content p {
    margin-top: 1.25rem;
    max-width: 480px;
    font-size: 1.15rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.25rem;
}

/* ---------- Crew list (About) ---------- */

.crew-list {
    margin-top: 2.5rem;
    border-top: 1px solid var(--ink);
}

.crew-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--ink);
}

@media (min-width: 768px) {
    .crew-row {
        grid-template-columns: 1fr 1fr 2fr;
        gap: 2rem;
        align-items: start;
    }
}

.crew-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.75rem;
}

.crew-role {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-self: start;
}

.crew-row p {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ---------- Games (poster wall) ---------- */

.game-band {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.game-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .game-row {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .game-row.flip .game-image-wrap {
        order: 2;
    }

    .game-row.flip .game-content {
        order: 1;
    }
}

.game-image-wrap {
    position: relative;
}

.game-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.game-numeral {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    opacity: 0.75;
}

.game-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-top: 0.5rem;
}

.game-meta {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--band-fg);
}

.game-block-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-description {
    font-size: 0.98rem;
    line-height: 1.7;
    opacity: 0.92;
}

.game-tips ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.game-tips li {
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.92;
}

.game-tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: currentColor;
}

.game-cta {
    margin-top: 1.5rem;
}

/* ---------- Session finder / manifest list ---------- */

.session-list {
    margin-top: 2rem;
    border-top: 1px solid var(--ink);
}

.session-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--ink);
}

@media (min-width: 768px) {
    .session-row {
        grid-template-columns: 1fr 1.3fr 2fr;
        gap: 2rem;
        align-items: baseline;
    }
}

.session-time {
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.session-game {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.2rem;
}

.session-why {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ---------- Oversized numeral list (Crew Life Hacks / process steps) ---------- */

.hack-list {
    margin-top: 1rem;
}

.hack-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1.25rem;
    padding: 2rem 0;
    border-top: 1px solid var(--ink);
}

.hack-row:last-child {
    border-bottom: 1px solid var(--ink);
}

.hack-num {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.25rem;
    opacity: 0.25;
    line-height: 1;
}

.hack-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.hack-body p {
    font-size: 0.95rem;
    max-width: 620px;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hack-row {
        grid-template-columns: 5rem 1fr;
    }

    .hack-num {
        font-size: 3rem;
    }
}

/* ---------- FAQ ---------- */

.faq-item {
    border-bottom: 1px solid var(--paper);
    padding: 1.75rem 0;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"]::after {
    content: '\2212';
}

.faq-answer {
    margin-top: 1rem;
    opacity: 0.85;
    line-height: 1.7;
    display: none;
}

.faq-answer.is-open {
    display: block;
}

/* ---------- Footer ---------- */

footer {
    background: var(--ink);
    color: var(--paper);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-section h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-section a {
    color: var(--paper);
    opacity: 0.85;
    text-decoration: none;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 900px;
}

/* ---------- Forms ---------- */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    max-width: 560px;
    padding: 0.85rem;
    border: 2px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.checkbox-group {
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    accent-color: var(--ink);
    flex-shrink: 0;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.9rem;
}

button[type="submit"] {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.9rem 1.75rem;
    border: 2px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    transition: opacity 0.18s ease;
}

button[type="submit"]:hover {
    opacity: 0.82;
}

/* ---------- Process steps (How We Play) ---------- */

.process-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: clamp(2rem, 5vw, 3rem) 0;
    border-top: 1px solid var(--band-fg);
}

.process-row:last-child {
    border-bottom: 1px solid var(--band-fg);
}

@media (min-width: 768px) {
    .process-row {
        grid-template-columns: 5rem 1fr;
        gap: 2rem;
    }
}

.process-num {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.5rem;
    opacity: 0.3;
    line-height: 1;
}

.process-row h3 {
    margin-bottom: 0.75rem;
}

.process-row ul {
    list-style: none;
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.process-row li {
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.95rem;
    opacity: 0.9;
}

.process-row li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: currentColor;
}

/* ---------- Legal pages ---------- */

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    font-size: 0.98rem;
    line-height: 1.75;
    opacity: 0.9;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.callout {
    border: 2px solid var(--ink);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.callout p {
    margin: 0;
}

/* ---------- Generic list style used on legal & 404 ---------- */

ul.plain {
    list-style: none;
    padding-left: 0;
}

ul.plain li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.6rem;
}

ul.plain li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    background: currentColor;
}

/* ---------- Utility ---------- */

.mt-lg { margin-top: 3rem; }
.mt-md { margin-top: 2rem; }
.max-w-content { max-width: 680px; }

/* ---------- Full-viewport centered moment (404, thank-you) ---------- */

.full-view {
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

.full-view .container {
    text-align: center;
}

.full-view .lede {
    margin-inline: auto;
}

.full-view .hero-cta {
    justify-content: center;
}

.display-huge {
    font-size: clamp(6rem, 20vw, 14rem);
}
