/* ==========================================================================
   O Gauge Club — bold & visual theme
   Hand-written, no build step. Swap the hero gradient for a real photo by
   setting --hero-image to url('../images/hero.jpg') on .hero.
   ========================================================================== */

:root {
    --ink:        #14110e;   /* near-black, warm */
    --paper:      #faf7f2;   /* warm off-white */
    --rail:       #b8231f;   /* signal red — primary accent */
    --rail-dark:  #8c1714;
    --brass:      #c8962a;   /* brass/gold — secondary accent */
    --steel:      #2b3a45;   /* steel blue-grey */
    --muted:      #6b6259;
    --line:       #e4ddd2;
    --maxw:       1120px;
    --radius:     14px;
    --shadow:     0 12px 30px rgba(20, 17, 14, 0.12);
    --font-head:  "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rail); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.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;
}

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--ink); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---- Header / nav --------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 2px 0 var(--rail);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 52px; width: auto; display: block; }
/* used in the footer */
.brand__name { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .01em; }

.primary-nav ul { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
    display: inline-block; color: #ece7df; padding: .55rem .85rem;
    border-radius: 8px; font-weight: 600; font-size: .95rem;
}
.primary-nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: #fff; background: var(--rail); }
.primary-nav__cta a { background: var(--brass); color: var(--ink); }
.primary-nav__cta a:hover { background: #d8a83a; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    content: ""; display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before { position: absolute; top: -8px; }
.nav-toggle__bar::after  { position: absolute; top: 8px; }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
    --hero-image: linear-gradient(120deg, rgba(20,17,14,.78), rgba(43,58,69,.72));
    position: relative;
    color: #fff;
    background:
        var(--hero-image),
        radial-gradient(circle at 20% 20%, rgba(200,150,42,.35), transparent 45%),
        linear-gradient(160deg, #2b3a45, #14110e 70%);
    background-size: cover; background-position: center;
    padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.hero__inner { max-width: 720px; }
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0 0 1rem;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #f1ece4; margin: 0 0 1.75rem; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-block; font-weight: 700; font-family: var(--font-body);
    padding: .8rem 1.4rem; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
    transition: transform .12s ease, background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--rail); color: #fff; }
.btn--primary:hover { background: var(--rail-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--ink); color: #fff; }

/* ---- Sections ------------------------------------------------------------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin: 0 0 2.25rem; }
.section__eyebrow { color: var(--rail); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .3rem 0 .6rem; }
.section__head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---- Announcement banner -------------------------------------------------- */
.announce {
    background: var(--brass); color: var(--ink);
    font-weight: 600; text-align: center; padding: .75rem 1rem;
}
.announce strong { text-transform: uppercase; letter-spacing: .08em; margin-right: .5rem; }

/* ---- Card grids ----------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card__media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--steel), var(--ink));
    position: relative;
}
.card__media::after {
    content: "▦"; position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 2.5rem; color: rgba(255,255,255,.25);
}
.card__body { padding: 1.25rem 1.35rem 1.5rem; }
.card__body h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.card__body p { margin: 0 0 1rem; color: var(--muted); }

/* ---- Feature / split ------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split__media { aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--rail), var(--brass)); }

/* ---- Events list ---------------------------------------------------------- */
.events { display: grid; gap: 1rem; }
.event {
    display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: start;
    background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--rail);
    border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
.event__date { font-family: var(--font-head); color: var(--steel); }
.event__date span { display: block; }
.event__title { margin: 0 0 .35rem; font-size: 1.2rem; }
.event__meta { color: var(--muted); margin: 0 0 .4rem; }
.event__notes { margin: .5rem 0 0; }

/* ---- Officers ------------------------------------------------------------- */
.officers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.officer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.officer__role { color: var(--rail); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.officer__name { font-family: var(--font-head); font-size: 1.15rem; margin: .25rem 0; }

/* ---- Contact / join ------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1.1rem; font-size: 1.08rem; }
.contact-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow);
}
.contact-card dt { font-weight: 800; color: var(--steel); margin-top: 1rem; }
.contact-card dd { margin: .15rem 0 0; }

.empty-note { color: var(--muted); font-style: italic; }

/* ---- CTA band ------------------------------------------------------------- */
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .75rem; }
.cta-band p { color: #d9d2c8; margin: 0 0 1.5rem; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: #100d0b; color: #cfc8bd; margin-top: 0; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 2.5rem; padding-bottom: 1.5rem; }
.site-footer .brand__name { font-family: var(--font-head); color: #fff; font-size: 1.2rem; }
.site-footer__tagline { margin: .35rem 0 0; font-size: .9rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.site-footer__nav a { color: #cfc8bd; font-weight: 600; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem; padding-bottom: 2rem; font-size: .85rem; color: #8d857a; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
    .grid--3, .officers { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--ink); padding: .5rem 1.25rem 1rem;
        display: none;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
    .primary-nav a { display: block; }
    .grid--3, .grid--2, .officers { grid-template-columns: 1fr; }
    .event { grid-template-columns: 1fr; }
}
