/* ==========================================================
   Golden Eagles Motorcycle Club - main stylesheet
   "Heritage patch" style: black and gold, stitched borders like an
   embroidered club patch, ribbon banners, and an EST. 1950 seal.

   Fonts:  Rye    - western display letters, like the club logo (big headlines)
           Oswald - tall patch lettering (menu, buttons, labels)
           Bitter - sturdy serif for reading (body text)

   Member-area styles live in members.css (loaded only when it's switched on).
   ========================================================== */

:root {
    /* Colors - the club's black and gold */
    --gold: #f9da61;
    --gold-dark: #dabe54;
    --gold-deep: #b8962e;
    --black: #161616;
    --ink: #0f0d0a;             /* deepest background (footer, header) */
    --leather: #1b1712;         /* page background */
    --leather-light: #241f18;   /* cards and "patches" */
    --charcoal: #2a2a2a;
    --surface: #211c16;
    --text: #f3ede0;            /* warm off-white, easier on the eyes than pure white */
    --text-muted: #b3aa98;
    --border: #3a3329;
    --stitch: rgba(249, 218, 97, 0.55);
    --stitch-dark: rgba(22, 22, 22, 0.5);

    /* Type */
    --font: 'Bitter', Georgia, serif;
    --font-display: 'Rye', 'Bitter', Georgia, serif;
    --font-label: 'Oswald', 'Arial Narrow', Arial, sans-serif;

    /* Shapes */
    --radius: 4px;
    --patch-radius: 14px;
    --max-width: 1200px;

    /* Fine leather-like grain, drawn as a tiny SVG so there's no image to download. */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .7 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

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

html {
    scroll-behavior: smooth;
}

/* The page is a column (strip, header, content, footer) so short pages still keep the
   footer at the bottom of the window. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
    background-color: var(--leather);
    background-image: var(--grain), radial-gradient(ellipse at top, #241e16 0%, var(--leather) 60%);
}

main {
    flex: 1;
}

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

/* Anything with the hidden attribute stays hidden, even if a class gives it a display value. */
[hidden] {
    display: none !important;
}

a {
    color: var(--gold);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--gold-dark);
}

h1, h2, h3 {
    line-height: 1.2;
    margin: 0 0 0.6em;
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.02em;
}

h3 {
    font-family: var(--font-label);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

p {
    margin: 0 0 1em;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.narrow {
    max-width: 860px;
}

.center {
    text-align: center;
}

/* ---------- Stitching ----------
   The signature detail: a dashed gold line just inside the edge, like the stitching
   around an embroidered patch. Shared by cards, photos, and buttons. */

.about-club,
.about-columns > div,
.split > div,
.newsletter-card,
.event-row,
.board-member,
.welcome-text,
.newsletter-viewer,
.facts-inner {
    position: relative;
    background-color: var(--leather-light);
    background-image: var(--grain);
    border: 1px solid var(--border);
    border-radius: var(--patch-radius);
    outline: 1px dashed var(--stitch);
    outline-offset: -9px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- Buttons & links ---------- */

.btn {
    display: inline-block;
    padding: 0.85em 2.1em;
    font-family: var(--font-label);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
    background: var(--gold);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    outline: 1px dashed var(--stitch-dark);
    outline-offset: -6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
    color: var(--black);
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--gold);
    background: rgba(15, 13, 10, 0.35);
    outline-color: var(--stitch);
}

.btn-outline:hover {
    color: var(--black);
    background: var(--gold);
    outline-color: var(--stitch-dark);
}

.text-link {
    font-family: var(--font-label);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* Small gold ribbon label with notched ends, e.g. "Tampa, Florida · Since 1950". */
.ribbon {
    display: inline-block;
    margin-bottom: 1.2em;
    padding: 0.35em 2em;
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--gold);
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
}

/* ---------- Top strip & header ---------- */

.top-strip {
    font-family: var(--font-label);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--gold);
}

.top-strip .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(15, 13, 10, 0.96);
    background-image: var(--grain);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Stitched line along the bottom of the header. */
.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    border-bottom: 1px dashed var(--stitch);
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
}

.logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.site-nav ul {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 8px 13px;
    font-family: var(--font-label);
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.site-nav a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Seal (EST. 1950) ---------- */

.seal {
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.seal-fill {
    fill: #16130f;
    stroke: var(--gold);
    stroke-width: 3;
}

.seal-stitch {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.4;
    stroke-dasharray: 4 4;
    opacity: 0.8;
}

.seal-line {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.2;
    opacity: 0.7;
}

.seal-ring-text {
    font-family: var(--font-label);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 2.6px;
    fill: var(--gold);
}

.seal-small {
    font-family: var(--font-label);
    font-size: 14px;
    letter-spacing: 5px;
    fill: var(--text);
}

.seal-year {
    font-family: var(--font-display);
    font-size: 36px;
    fill: var(--gold);
}

.seal-stars {
    font-size: 10px;
    letter-spacing: 3px;
    fill: var(--gold);
}

/* ---------- Hero (home page) ---------- */

.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid var(--gold);
}

/* Stitched line just above the gold edge. */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    border-bottom: 1px dashed var(--stitch);
}

.hero-overlay {
    display: flex;
    align-items: center;
    min-height: min(80vh, 720px);
    background:
        linear-gradient(90deg, rgba(15, 13, 10, 0.92) 0%, rgba(15, 13, 10, 0.65) 55%, rgba(15, 13, 10, 0.3) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
}

.hero-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero h1 {
    margin-bottom: 0.35em;
    font-size: clamp(2.8rem, 7.5vw, 5.6rem);
    line-height: 1.02;
    color: var(--gold);
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hero-lead {
    margin-bottom: 1.8em;
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    font-style: italic;
    color: var(--text);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.seal-hero {
    width: min(300px, 100%);
    justify-self: center;
    transform: rotate(-8deg);
}

/* ---------- Club facts strip (home page) ---------- */

.facts {
    padding: 50px 0 10px;
}

.facts-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 28px 20px;
}

.fact {
    padding: 6px 16px;
    text-align: center;
}

.fact + .fact {
    border-left: 1px dashed var(--stitch);
}

.fact-big {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    line-height: 1.2;
    color: var(--gold);
}

.fact-label {
    font-family: var(--font-label);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ---------- Page banner (top of inner pages) ---------- */

.page-banner {
    position: relative;
    padding: 80px 0 70px;
    text-align: center;
    background-color: var(--ink);
    background-image: var(--grain), radial-gradient(ellipse at center, #2a2319 0%, var(--ink) 75%);
    border-bottom: 4px solid var(--gold);
}

.page-banner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    border-bottom: 1px dashed var(--stitch);
}

.page-banner h1 {
    margin: 0;
    font-size: clamp(2.3rem, 6vw, 3.8rem);
    color: var(--gold);
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
}

/* Small "★ Golden Eagles M.C. ★" line above every page title. */
.page-banner h1::before {
    content: '\2605  Golden Eagles M.C.  \2605';
    display: block;
    margin-bottom: 0.9em;
    font-family: var(--font-label);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    white-space: pre;
    color: var(--text-muted);
    text-shadow: none;
}

/* ---------- Sections & ribbon titles ---------- */

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: rgba(15, 13, 10, 0.55);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Section titles are gold ribbon banners with notched ends and stitching. */
.section-title {
    position: relative;
    display: table;
    margin: 0 auto 1.8em;
    padding: 0.4em 1.9em 0.35em;
    font-size: clamp(1.4rem, 3.4vw, 2.1rem);
    text-align: center;
    color: var(--black);
    background: var(--gold);
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 50%, 100% 100%, 0 100%, 20px 50%);
}

.section-title::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 26px;
    right: 26px;
    border-top: 1px dashed var(--stitch-dark);
    border-bottom: 1px dashed var(--stitch-dark);
    pointer-events: none;
}

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); margin: 0 auto; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Home: About Us ---------- */

.about {
    text-align: center;
}

.about h3,
.split h3 {
    margin-bottom: 1em;
    font-size: 1.35rem;
    color: var(--gold);
}

/* A small star either side of patch headings. */
.about h3::before,
.about h3::after,
.split h3::before {
    content: '\2605';
    margin: 0 0.6em;
    font-size: 0.7em;
    vertical-align: 0.15em;
    color: var(--gold-deep);
}

.split h3::before {
    margin-left: 0;
}

.about p,
.split p,
.split li {
    color: #d8d0bf;
}

.about-club {
    max-width: 1000px;
    margin: 0 auto 36px;
    padding: 50px 56px 36px;
}

.about-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.about-columns > div {
    padding: 44px 40px 30px;
}

/* ---------- Home: photo slideshow (gold band) ---------- */

.slideshow-section {
    position: relative;
    padding: 70px 0 60px;
    background: var(--gold);
    background-image: var(--grain);
}

/* Stitched lines along the top and bottom of the gold band. */
.slideshow-section::before,
.slideshow-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed var(--stitch-dark);
}

.slideshow-section::before { top: 10px; }
.slideshow-section::after { bottom: 10px; }

/* On gold, the motto ribbon flips to black with gold letters. */
.slideshow-section .motto {
    color: var(--gold);
    background: var(--black);
}

.slideshow-section .motto::before {
    border-color: var(--stitch);
}

.slideshow-stage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 9fr 1fr;
    /* A fixed-height row keeps the box the same size whatever shape the photo is,
       so the thumbnails below never jump around. */
    grid-template-rows: minmax(0, 1fr);
    gap: 6px;
    aspect-ratio: 16 / 6;
    min-height: 260px;
    overflow: hidden;
    border: 4px solid var(--black);
    border-radius: var(--radius);
    background: var(--black);
}

.slide-main,
.slide-peek {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.slide-main {
    transition: opacity 0.35s ease;
}

.slide-main.fading {
    opacity: 0;
}

/* The previous/next photos peek in at the sides, tinted gold. */
.slide-peek {
    opacity: 0.45;
    filter: sepia(1) saturate(2);
    cursor: pointer;
}

.slide-peek[src=""] {
    visibility: hidden;
}

/* Round black "patch" arrows, halfway down the photo. */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--gold);
    background: rgba(15, 13, 10, 0.85);
    border: 2px solid var(--gold);
    border-radius: 50%;
    outline: 1px dashed var(--stitch);
    outline-offset: -6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.slide-arrow:hover {
    color: var(--black);
    background: var(--gold);
    outline-color: var(--stitch-dark);
}

.slide-arrow-prev { left: 12px; }
.slide-arrow-next { right: 12px; }

.slideshow-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.slide-thumb {
    width: 70px;
    height: 70px;
    padding: 0;
    background: none;
    border: 3px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, border-color 0.2s;
}

.slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-thumb:hover {
    opacity: 1;
}

.slide-thumb.active {
    border-color: var(--black);
    opacity: 1;
}

/* ---------- Home: welcome ---------- */

.welcome-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}

/* The photo sits like a picture pinned to the clubhouse wall. */
.welcome-inner img {
    width: 100%;
    height: auto;
    border: 8px solid var(--leather-light);
    outline: 1px dashed var(--stitch);
    outline-offset: -4px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    transform: rotate(-2deg);
}

.welcome-text {
    padding: 48px 44px 40px;
}

.welcome-kicker {
    display: inline-block;
    margin-bottom: 1em;
    padding: 0.3em 1.6em;
    font-family: var(--font-label);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--gold);
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%);
}

.welcome-text h2 {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    color: var(--gold);
}

.welcome-text p:not(.welcome-kicker) {
    margin-bottom: 1.6em;
    font-size: 1.2rem;
    color: #d8d0bf;
}

/* ---------- Members page ---------- */

/* Full-width photo strip at the top of a page. */
.page-photo {
    position: relative;
    height: min(45vh, 420px);
    min-height: 240px;
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid var(--gold);
}

.page-photo::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    border-bottom: 1px dashed var(--stitch);
}

/* Wide left column, narrow right column. */
.split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
    align-items: start;
}

.split > div {
    padding: 44px 40px 30px;
}

.split .dash-list a {
    color: #d8d0bf;
}

.split .dash-list a:hover {
    color: var(--gold);
}

.forms-btn {
    margin-top: 1.2em;
}

/* Lists marked with small gold stars instead of dashes. */
.dash-list {
    margin: 0 0 1em;
    padding: 0;
    list-style: none;
}

.dash-list li {
    position: relative;
    padding: 3px 0 3px 1.6em;
}

.dash-list li::before {
    content: '\2605';
    position: absolute;
    left: 0;
    top: 0.45em;
    font-size: 0.75em;
    color: var(--gold);
}

.footnote {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted) !important;
}

/* ---------- Contact Us ---------- */

.contact-split {
    grid-template-columns: 1.3fr 1fr;
}

.contact-form label {
    display: block;
    margin: 18px 0 6px;
    font-family: var(--font-label);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
}

.contact-form .required {
    color: var(--gold);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    background: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 1px dashed var(--gold);
    outline-offset: 3px;
    border-color: var(--gold);
}

.contact-form .btn {
    margin-top: 24px;
}

/* Spam trap: kept off-screen so people never see it, but bots fill it in. */
.hp-field {
    position: absolute;
    left: -9999px;
}

.notice {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.notice-success {
    color: #c9f0cf;
    background: rgba(60, 180, 90, 0.14);
    border-left: 3px solid #4cb963;
}

.notice-error {
    color: #ffc2b6;
    background: rgba(220, 60, 40, 0.14);
    border-left: 3px solid #e2533d;
}

.contact-address {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px dashed var(--stitch);
}

.contact-address p {
    margin-bottom: 0.4em;
}

.contact-club {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold) !important;
}

/* ---------- People (New Member Ambassadors) ---------- */

.person-card {
    text-align: center;
}

/* Round photo with a gold ring and a stitched outer ring, like a round patch. */
.person-photo {
    width: 180px;
    height: 180px;
    margin: 6px auto 22px;
    object-fit: cover;
    border: 4px solid var(--gold);
    border-radius: 50%;
    outline: 1px dashed var(--stitch);
    outline-offset: 5px;
}

.person-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--gold);
    background: var(--leather-light);
}

.person-role {
    margin-bottom: 0.2em;
    font-family: var(--font-label);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.person-card h3 {
    font-size: 1.3rem;
}

.person-card p:not(.person-role) {
    color: var(--text-muted);
}

/* ---------- Road Captains ---------- */

.captain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 48px;
}

.captain {
    margin: 0;
    text-align: center;
}

.captain h3 {
    margin-bottom: 1em;
    font-size: 1.35rem;
}

/* Whole photo, no cropping: every photo gets the same height so the rows line up,
   and the width follows the photo's own shape. Framed with a stitched border. */
.captain img,
.captain-placeholder {
    height: 360px;
    max-width: 100%;
    margin: 0 auto;
    border: 6px solid var(--leather-light);
    border-radius: var(--radius);
    outline: 1px dashed var(--stitch);
    outline-offset: -3px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.captain img {
    width: auto;
    object-fit: contain;
}

/* Photos marked 'crop' in data/people.php fill the column width instead. */
.captain img.cropped {
    width: 100%;
    object-fit: cover;
}

.captain-placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--gold);
    background: var(--leather-light);
}

/* ---------- Meet the Board ---------- */

.board-list {
    display: grid;
    gap: 40px;
}

/* Photo on one side, role/name/bio on the other - alternating sides down the page. */
.board-member {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 44px;
    padding: 30px;
}

.board-member:nth-child(even) .board-photo {
    order: 2;
}

.board-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 8px;
    border: 3px solid var(--gold);
}

/* No photo yet: initials over a faint club logo. */
.board-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--gold);
    background-color: var(--ink);
    background-image: var(--grain);
    overflow: hidden;
    isolation: isolate;
}

.board-placeholder::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 12%;
    background: url('/assets/images/logo.png') center / contain no-repeat;
    opacity: 0.12;
}

.board-role {
    display: inline-block;
    margin-bottom: 0.9em !important;
    padding: 0.3em 1.5em;
    font-family: var(--font-label);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--gold);
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%);
}

.board-text h2 {
    margin-bottom: 0.5em;
    font-size: clamp(1.9rem, 3.6vw, 2.5rem);
    color: var(--gold);
}

.board-text p:not(.board-role) {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d8d0bf;
}

/* ---------- Events ---------- */

.event-list {
    display: grid;
    gap: 22px;
}

/* Each event is a patch: date tag on the left, details in the middle, time/place on the right. */
.event-row {
    display: grid;
    grid-template-columns: 220px 1.6fr 1fr;
    align-items: start;
    gap: 30px;
    padding: 34px 36px;
}

.event-row p {
    margin: 0;
}

/* The date sits in a gold tag. */
.event-date {
    display: inline-block;
    justify-self: start;
    padding: 0.5em 1.3em 0.45em 1.1em;
    font-family: var(--font-label);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--black);
    background: var(--gold);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}

.event-title {
    margin-bottom: 0.5em;
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
}

.event-main p,
.event-when p:not(.event-time) {
    color: var(--text-muted);
}

.event-main a {
    display: inline-block;
    margin-top: 0.6em;
    font-family: var(--font-label);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-when {
    text-align: right;
}

.event-time {
    margin-bottom: 0.4em !important;
    font-family: var(--font-label);
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    color: var(--gold);
}

.show-more-wrap {
    margin-top: 36px;
}

/* ---------- Newsletters ---------- */

.newsletter-grid {
    margin-bottom: 60px;
}

.newsletter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 32px;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}

.newsletter-card:hover {
    transform: translateY(-5px) rotate(-1deg);
    border-color: var(--gold);
}

.newsletter-month {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold);
}

.newsletter-year {
    margin-bottom: 14px;
    font-family: var(--font-label);
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

/* Newest issues: read right on the page, one page at a time (like the old site). */
.newsletter-viewers {
    display: grid;
    gap: 36px;
    margin-bottom: 70px;
}

.newsletter-viewer {
    padding: 36px 36px 28px;
    text-align: center;
}

.viewer-title {
    margin-bottom: 0.4em;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--gold);
}

.pdf-viewer {
    margin-top: 22px;
}

/* The newsletter page sits on white "paper" in a gold frame. */
.pdf-stage {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    aspect-ratio: 8.5 / 11; /* a letter-size page until the real one loads */
    background: #fff;
    border: 4px solid var(--gold);
    border-radius: 3px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.pdf-stage.loaded {
    aspect-ratio: auto;
}

.pdf-stage canvas {
    display: block;
    width: 100%;
}

.pdf-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    font-family: var(--font-label);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b6152;
}

.pdf-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
    font-family: var(--font-label);
    letter-spacing: 0.12em;
}

.pdf-page-num {
    min-width: 4.5em;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.pdf-controls button {
    padding: 6px 14px;
    font-family: var(--font-label);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.pdf-controls button:hover:not(:disabled) {
    color: var(--black);
    background: var(--gold);
}

.pdf-controls button:disabled {
    opacity: 0.35;
    cursor: default;
}

/* ---------- Gallery ---------- */

.gallery {
    columns: 3 280px;
    column-gap: 18px;
}

.gallery-item {
    display: block;
    margin-bottom: 18px;
    break-inside: avoid;
    overflow: hidden;
    border: 5px solid var(--leather-light);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.gallery-item img {
    width: 100%;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 8, 6, 0.94);
}

.lightbox img {
    max-width: 88vw;
    max-height: 88vh;
    border: 4px solid var(--gold);
    border-radius: var(--radius);
}

.lightbox button {
    position: absolute;
    padding: 10px 18px;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--gold);
    background: none;
    border: 0;
    cursor: pointer;
}

.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

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

.site-footer {
    position: relative;
    padding: 70px 0 30px;
    color: var(--text-muted);
    background-color: var(--ink);
    background-image: var(--grain);
    border-top: 4px solid var(--gold);
}

.site-footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    border-top: 1px dashed var(--stitch);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 44px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

.seal-footer {
    flex: 0 0 120px;
    width: 120px;
}

.footer-name {
    margin-bottom: 0.3em;
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.25;
    color: var(--gold);
}

.footer-motto {
    font-style: italic;
}

.footer-heading {
    margin-bottom: 0.9em;
    font-family: var(--font-label);
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.site-footer p {
    margin-bottom: 0.5em;
}

.footer-address {
    color: var(--text);
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5em;
}

.footer-links a,
.site-footer a {
    color: var(--text);
    text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
    color: var(--gold);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px dashed var(--border);
    text-align: center;
}

.copyright {
    margin: 0;
    font-family: var(--font-label);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 18px 0;
    background-color: var(--leather-light);
    background-image: var(--grain);
    border-top: 3px solid var(--gold);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5);
}

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

.cookie-inner strong {
    font-family: var(--font-label);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

.cookie-inner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- Responsive ---------- */

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

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background-color: var(--ink);
        background-image: var(--grain);
        transition: max-height 0.3s ease;
    }

    .site-nav.open {
        max-height: 520px;
        border-bottom: 3px solid var(--gold);
    }

    .site-nav ul {
        flex-direction: column;
        padding: 10px 20px 20px;
    }

    .site-nav a {
        padding: 12px 0;
        border-bottom: 1px dashed var(--border);
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content,
    .about-columns,
    .welcome-inner,
    .split,
    .captain-grid,
    .board-member,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .seal-hero {
        width: 200px;
    }

    /* On narrow screens every board member's photo goes on top. */
    .board-member:nth-child(even) .board-photo {
        order: 0;
    }

    .event-row {
        grid-template-columns: 1fr 1fr;
    }

    .event-date {
        grid-column: 1 / -1;
    }

    .facts-inner {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
    }

    .fact:nth-child(3) {
        border-left: 0;
    }

    .footer-brand {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .site-footer {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 56px 0;
    }

    .top-strip-middle,
    .top-strip span:last-child {
        display: none;
    }

    .top-strip .container {
        justify-content: center;
    }

    .header-inner {
        min-height: 80px;
    }

    .logo img {
        height: 60px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .about-club,
    .about-columns > div,
    .split > div,
    .welcome-text {
        padding: 36px 24px 22px;
    }

    .board-member {
        padding: 20px;
    }

    .slideshow-stage {
        grid-template-columns: 1fr;
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .slide-peek {
        display: none;
    }

    .captain img,
    .captain-placeholder {
        height: 280px;
    }

    .slide-thumb {
        width: 54px;
        height: 54px;
    }

    .event-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 28px 24px;
    }

    .event-when {
        text-align: left;
    }

    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }
}
