/* ============================================================
   StadiumStamped: vintage Americana theme
   Cream paper, navy ink, red accents. Serif headlines, clean body.
   The design works with system fonts alone; the display face
   (Alfa Slab One, loaded in the header) is a progressive extra.
   ============================================================ */

:root {
    --cream: #f6f0dd;
    --cream-deep: #efe6cd;
    --paper-line: #e2d6b8;
    --navy: #1e2a44;
    --navy-deep: #141d33;
    --red: #b5342a;
    --red-deep: #8f281f;
    --gold: #c9a227;
    --ink-soft: #4a4a44;
    --radius: 6px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    color: var(--navy);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    /* Subtle paper texture: layered repeating gradients, no external images. */
    background-color: var(--cream);
    background-image:
        repeating-linear-gradient(0deg, rgba(120, 100, 60, 0.028) 0 2px, transparent 2px 5px),
        repeating-linear-gradient(90deg, rgba(120, 100, 60, 0.022) 0 2px, transparent 2px 7px),
        radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.35), transparent 55%),
        radial-gradient(ellipse at 85% 90%, rgba(150, 120, 70, 0.10), transparent 50%);
}

h1, h2, h3, .brand-name, .footer-brand {
    /* Alfa Slab One loads from Google Fonts in the header; if it fails,
       the classic serif stack below takes over and the design is unchanged. */
    font-family: "Alfa Slab One", Georgia, "Times New Roman", "Nimbus Roman", serif;
    font-weight: 400;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

h1 { font-size: 2rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.5rem; margin: 0 0 0.5rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }

a { color: var(--red); }
a:hover { color: var(--red-deep); }

img { max-width: 100%; height: auto; }

/* ---------- Layout ---------- */

.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.center { text-align: center; }

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

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

.site-header {
    background: var(--navy);
    color: #fff;
    border-bottom: 4px solid var(--red);
    box-shadow: 0 2px 0 var(--gold);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.brand-logo {
    height: 52px;
    width: auto;
    display: block;
    background: var(--cream);
    border-radius: 10px;
    padding: 3px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 0.04em;
}

.brand-tag {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

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

.nav-hello { color: var(--gold); font-size: 0.9rem; font-style: italic; }

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

.btn {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn:active { transform: translateY(1px); }

.btn-red { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-deep); }
.btn-red:hover { color: #fff; background: #c23f33; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 3px 0 var(--navy-deep); }
.btn-navy:hover { color: #fff; background: #2a3a5e; }

.btn-large { font-size: 1.1rem; padding: 0.8rem 1.8rem; }
.btn-small { font-size: 0.85rem; padding: 0.45rem 0.9rem; }
.btn-block { display: block; width: 100%; margin-bottom: 0.6rem; }

/* ---------- Ticket-stub cards ---------- */

.ticket-card {
    background: #fdf9ec;
    border: 1px solid var(--paper-line);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 2px 6px rgba(30, 42, 68, 0.10);
}

/* Perforated edge: dashed rule across the top of key cards. */
.ticket-card::before {
    content: "";
    display: block;
    border-top: 2px dashed var(--paper-line);
    margin: -0.6rem 0 1rem;
}

/* Punch-hole notches on the sides. */
.ticket-card::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -9px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--cream);
    border: 1px solid var(--paper-line);
    border-left-color: transparent;
    clip-path: inset(0 50% 0 0);
}

/* ---------- Hero (landing) ---------- */

.hero {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
}

.hero-logo {
    width: min(360px, 84vw);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 24px rgba(30, 42, 68, 0.28));
}

.hero h1 {
    font-size: 2.6rem;
    margin: 1.2rem 0 0.5rem;
}

.hero-sub {
    max-width: 620px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- How it works ---------- */

.how-it-works { margin: 2rem 0; }

.steps {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    counter-reset: step;
}

.steps li {
    background: #fdf9ec;
    border: 1px solid var(--paper-line);
    border-radius: var(--radius);
    padding: 1rem 1rem 1rem 3.4rem;
    position: relative;
    box-shadow: 0 2px 5px rgba(30, 42, 68, 0.08);
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0.9rem;
    top: 0.8rem;
    width: 1.9rem;
    height: 1.9rem;
    line-height: 1.9rem;
    text-align: center;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-family: Georgia, serif;
    font-weight: bold;
}

/* ---------- Fan favorites ---------- */

.section-sub { color: var(--ink-soft); margin-top: -0.25rem; }

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.favorite-card h3 { color: var(--red); font-style: italic; }

.favorite-cat {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--ink-soft);
    margin: 0 0 0.4rem;
}

.favorite-line { margin: 0.4rem 0 0; }

.empty-state { text-align: center; max-width: 560px; margin: 0 auto 1.5rem; }

/* ---------- Ad slots ---------- */

.ad-slot {
    border: 1px dashed var(--paper-line);
    border-radius: var(--radius);
    margin: 1.5rem 0;
    padding: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.35);
}

.ad-slot-empty {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot-label {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #a89a72;
}

/* ---------- Donation bar ---------- */

.donation-bar {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    margin: 2rem 0;
    border: 1px solid var(--navy-deep);
    box-shadow: 0 3px 10px rgba(30, 42, 68, 0.25);
}

.donation-inner { padding: 1.5rem; text-align: center; }

.donation-inner h3 { color: #fff; margin-bottom: 0.3rem; }

.donation-copy { color: #d8d2bd; max-width: 560px; margin: 0 auto 1rem; }

.donation-progress {
    height: 16px;
    border-radius: 8px;
    background: var(--navy-deep);
    border: 1px solid #3a4a6e;
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto 0.6rem;
}

.donation-progress-fill {
    height: 100%;
    background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #c8453a 12px 24px);
    border-radius: 8px;
    transition: width 0.6s ease;
}

.donation-figures { color: var(--gold); font-family: Georgia, serif; margin: 0 0 1rem; }

/* ---------- Parks teaser / grid ---------- */

.teaser-grid, .parks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.1rem;
    margin: 1.2rem 0 2rem;
}

.park-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fdf9ec;
    border: 1px solid var(--paper-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(30, 42, 68, 0.10);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.park-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(30, 42, 68, 0.18);
}

.tile-photo {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--cream-deep);
}

.tile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.is-unvisited .tile-photo img {
    filter: sepia(0.45) saturate(0.7) brightness(0.94);
}

.tile-info { display: block; padding: 0.7rem 0.9rem 0.9rem; }

.tile-name {
    display: block;
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 1.02rem;
    color: var(--navy);
}

.tile-team { display: block; font-size: 0.85rem; color: var(--ink-soft); }

.tile-meta { display: block; font-size: 0.8rem; margin-top: 0.25rem; color: var(--red); font-weight: bold; }
.tile-meta-muted { color: var(--ink-soft); font-weight: normal; font-style: italic; }

/* ---------- Rubber stamp overlay ---------- */

.stamp-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    border: 4px double var(--red);
    border-radius: 8px;
    color: var(--red);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    padding: 0.35rem 0.9rem;
    font-size: 1.25rem;
    background: rgba(246, 240, 221, 0.55);
    /* Distressed ink: layered shadows + slight transparency. */
    opacity: 0.88;
    text-shadow: 1px 0 0 rgba(181, 52, 42, 0.6), -1px 1px 0 rgba(181, 52, 42, 0.35);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
    -webkit-mask-size: 120px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
    mask-size: 120px;
    pointer-events: none;
    white-space: nowrap;
}

.stamp-big {
    font-size: 2rem;
    padding: 0.6rem 1.4rem;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
}

.stamp-date {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.12em;
}

/* ---------- Progress header ---------- */

.progress-header { text-align: center; }

.progress-track {
    height: 20px;
    border-radius: 10px;
    background: var(--cream-deep);
    border: 1px solid var(--paper-line);
    overflow: hidden;
    max-width: 560px;
    margin: 0.8rem auto;
}

.progress-fill {
    height: 100%;
    background: repeating-linear-gradient(-45deg, var(--navy) 0 14px, #2c3c60 14px 28px);
}

/* ---------- Park detail ---------- */

.park-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

.park-photo-frame {
    position: relative;
    border: 6px solid #fff;
    outline: 1px solid var(--paper-line);
    box-shadow: 0 4px 12px rgba(30, 42, 68, 0.18);
    margin-bottom: 1.2rem;
    background: var(--cream-deep);
}

.park-photo { display: block; width: 100%; max-height: 460px; object-fit: cover; }

.park-kicker {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--red);
    margin: 0 0 0.2rem;
}

.park-heading h1 { margin: 0 0 0.2rem; font-size: 2.2rem; }

.park-opened { font-family: Georgia, serif; font-style: italic; color: var(--ink-soft); margin: 0 0 1rem; }

.park-facts { list-style: none; padding: 0; margin: 0; }

.park-facts li {
    padding: 0.5rem 0 0.5rem 1.6rem;
    border-top: 1px dashed var(--paper-line);
    position: relative;
}

.park-facts li::before {
    content: "";
    position: absolute;
    left: 0.3rem;
    top: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
}

.stamp-actions { margin-top: 1.2rem; }

.vote-block { border-top: 1px dashed var(--paper-line); padding: 1rem 0; }

.vote-block:first-of-type { border-top: none; }

.vote-top { font-size: 1.05rem; margin: 0.2rem 0; }

.vote-count {
    font-size: 0.8rem;
    color: #fff;
    background: var(--navy);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    margin-left: 0.4rem;
    white-space: nowrap;
}

.vote-top-empty { color: var(--ink-soft); font-style: italic; }

.my-vote { font-size: 0.9rem; color: var(--ink-soft); margin: 0.3rem 0 0.6rem; }

.vote-form { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }

.vote-form input[type="text"] { flex: 1 1 200px; }

.login-nudge {
    background: var(--cream-deep);
    border: 1px dashed var(--paper-line);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    margin-top: 1rem;
}

.visit-list { list-style: none; padding: 0; margin: 0.6rem 0 0; }

.visit-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-top: 1px dashed var(--paper-line);
    font-size: 0.95rem;
}

.affiliate-card h3 { margin-bottom: 0.8rem; }

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

.form { max-width: 480px; }

.form-inline { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; max-width: none; }

.field { display: block; margin-bottom: 1rem; }

.field span {
    display: block;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="date"], textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 2px solid var(--paper-line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--navy);
    font-size: 1rem;
    font-family: inherit;
}

input:focus, textarea:focus, button:focus, a:focus {
    outline: 3px solid rgba(201, 162, 39, 0.55);
    outline-offset: 1px;
}

input[type="date"] { width: auto; min-width: 200px; }

.check-row {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 1rem 0 0.4rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.check-row input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--red); }

.privacy-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0.4rem 0 1.2rem; }

.form-errors {
    background: #fbeeea;
    border: 2px solid var(--red);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
    color: var(--red-deep);
}

.form-errors ul { margin: 0; padding-left: 1.2rem; }

.auth-wrap { max-width: 560px; margin: 1rem auto; }

.auth-switch { margin-top: 1.2rem; font-size: 0.95rem; }

.notice {
    background: #eef3e4;
    border: 2px solid #6a8f3c;
    color: #3d5a1e;
    border-radius: var(--radius);
    padding: 0.8rem 1.1rem;
    margin-bottom: 1.2rem;
}

/* ---------- Share page ---------- */

.share-wrap { max-width: 640px; margin: 0 auto; text-align: center; }

.share-card-preview {
    margin: 1.2rem 0;
    display: inline-block;
    border: 6px solid #fff;
    outline: 1px solid var(--paper-line);
    box-shadow: 0 6px 20px rgba(30, 42, 68, 0.22);
}

.share-card-preview img { display: block; width: 100%; max-width: 540px; }

.share-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }

.instagram-guide { text-align: left; }

.instagram-guide ol { padding-left: 1.3rem; }

.copy-confirm { color: #3d5a1e; font-weight: bold; }

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

.site-footer {
    background: var(--navy);
    color: #cfc8ae;
    border-top: 4px solid var(--red);
    margin-top: 2rem;
}

.footer-inner { max-width: 1100px; margin: 0 auto; padding: 1.6rem 1rem; text-align: center; }

.footer-brand { font-size: 1.3rem; color: #fff; margin: 0; letter-spacing: 0.05em; }
.footer-tag { margin: 0.2rem 0; font-size: 0.9rem; }
.footer-small { margin: 0.6rem 0 0; font-size: 0.78rem; color: #9a937c; }

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

@media (max-width: 860px) {
    .park-layout { grid-template-columns: 1fr; }
    .park-sidebar { order: 2; }
}

@media (max-width: 560px) {
    h1 { font-size: 1.6rem; }
    .hero h1 { font-size: 2rem; }
    .hero-logo { width: min(230px, 72vw); height: auto; }
    .header-inner { justify-content: center; text-align: center; }
    .site-nav { justify-content: center; }
    .ticket-card { padding: 1.1rem; }
    .stamp-big { font-size: 1.5rem; }
}
