/* ============================================================
   BaseballGame.ca shared site chrome
   Used by layouts/public.blade.php on every public page.
   Page-specific styles are pushed after this file and win.
   ============================================================ */

:root {
    --site-forest: #08251e;
    --site-forest-2: #123b31;
    --site-forest-3: #0f5c4b;
    --site-gold: #f1b84b;
    --site-gold-dark: #c98e22;
    --site-cream: #fff8e8;
    --site-paper: #fffdf6;
    --site-ink: #101716;
    --site-muted: #64706d;
    --site-line: #dfd1bd;
    --site-red: #c8322d;
    --site-radius: 10px;
    --site-shell: 1180px;
}

.site-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--site-gold);
    color: var(--site-forest);
    padding: 10px 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.site-skip:focus {
    left: 12px;
    top: 12px;
}

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

.site-header {
    position: relative;
    z-index: 20;
    background:
        radial-gradient(circle at 12% -20%, rgba(241, 184, 75, 0.28), transparent 22rem),
        linear-gradient(135deg, var(--site-forest) 0%, var(--site-forest-2) 62%, #0b2f27 100%);
    border-bottom: 4px solid var(--site-gold);
    color: var(--site-cream);
}

.site-header-inner {
    width: min(var(--site-shell), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 0;
}

.site-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding-bottom: 14px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--site-cream);
    text-decoration: none;
}

.site-brand:hover {
    text-decoration: none;
}

.site-brand-badge {
    align-items: center;
    background: var(--site-cream);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    color: var(--site-forest);
    display: inline-flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 900;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.site-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.site-brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.site-brand-name span {
    color: var(--site-gold);
}

.site-brand-tagline {
    color: rgba(255, 248, 232, 0.72);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    margin-top: 5px;
    text-transform: uppercase;
}

.site-header-meta {
    color: rgba(255, 248, 232, 0.78);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.76rem;
    text-align: right;
}

.site-header-meta strong {
    color: var(--site-gold);
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- Navigation ---------- */

.site-nav {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    border-radius: 7px 7px 0 0;
    color: rgba(255, 248, 232, 0.92);
    flex: 0 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 11px 13px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.site-nav a:hover {
    background: rgba(255, 248, 232, 0.12);
    color: #fff;
    text-decoration: none;
}

.site-nav a.is-active {
    background: var(--site-cream);
    color: var(--site-forest);
}

.site-nav-gap {
    flex: 1 0 12px;
}

/* ---------- Page title strip ---------- */

.site-titlebar {
    background: var(--site-forest-2);
    border-top: 1px solid rgba(255, 248, 232, 0.12);
    color: var(--site-cream);
}

.site-titlebar-inner {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    justify-content: space-between;
    margin: 0 auto;
    padding: 14px 0 16px;
    width: min(var(--site-shell), calc(100% - 32px));
}

.site-titlebar h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    letter-spacing: -0.01em;
    margin: 0;
    text-transform: none;
}

.site-titlebar p {
    color: rgba(255, 248, 232, 0.72);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    margin: 0;
}

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

.site-footer {
    background: linear-gradient(160deg, #07100d 0%, var(--site-forest) 55%, #0b2f27 100%);
    border-top: 4px solid var(--site-gold);
    color: rgba(255, 248, 232, 0.8);
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 48px;
}

.site-footer-inner {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.5fr 1fr 1fr;
    margin: 0 auto;
    padding: 40px 0 26px;
    width: min(var(--site-shell), calc(100% - 32px));
}

.site-footer h2 {
    color: var(--site-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    margin: 0 0 8px;
}

.site-footer p {
    font-size: 0.84rem;
    line-height: 1.6;
    margin: 0;
    max-width: 34rem;
}

.site-footer h3 {
    color: var(--site-gold);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

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

.site-footer li {
    margin: 0 0 7px;
}

.site-footer a {
    color: rgba(255, 248, 232, 0.86);
    font-size: 0.84rem;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--site-gold);
    text-decoration: underline;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 248, 232, 0.14);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    margin: 0 auto;
    padding: 16px 0 22px;
    text-align: center;
    width: min(var(--site-shell), calc(100% - 32px));
}

.site-footer-bottom a {
    color: var(--site-gold);
}

/* ---------- Shared content helpers ---------- */

.site-shell {
    margin: 0 auto;
    width: min(var(--site-shell), calc(100% - 32px));
}

.site-button {
    align-items: center;
    background: var(--site-forest);
    border: 1px solid var(--site-forest);
    border-radius: 6px;
    color: var(--site-cream);
    display: inline-flex;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    gap: 6px;
    letter-spacing: 0.04em;
    padding: 9px 14px;
    text-decoration: none;
    text-transform: uppercase;
}

.site-button:hover {
    background: var(--site-forest-2);
    text-decoration: none;
}

.site-button.secondary {
    background: transparent;
    border-color: var(--site-line);
    color: var(--site-forest);
}

.site-button.secondary:hover {
    background: var(--site-cream);
}

.site-button.gold {
    background: var(--site-gold);
    border-color: var(--site-gold);
    color: var(--site-forest);
}

.site-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 28px 0 8px;
}

.site-pagination a,
.site-pagination span {
    border: 1px solid var(--site-line);
    border-radius: 6px;
    color: var(--site-forest);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    padding: 7px 12px;
    text-decoration: none;
}

.site-pagination .is-current {
    background: var(--site-forest);
    border-color: var(--site-forest);
    color: var(--site-cream);
}

.site-pagination .is-disabled {
    color: #aaa;
}

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

@media (max-width: 760px) {
    .site-header-inner {
        padding-top: 14px;
    }

    .site-header-meta {
        display: none;
    }

    .site-nav {
        margin: 0 -4px;
    }

    .site-nav a {
        padding: 10px 11px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* ============================================================
   Legacy archive (vintage baseball guide, stories, poems, rules)
   ============================================================ */

.legacy-body {
    background: #fbf6ec;
    color: #221e18;
    font-family: Georgia, "Times New Roman", serif;
}

.legacy-main {
    margin: 0 auto;
    padding: 34px 0 10px;
    width: min(var(--site-shell), calc(100% - 32px));
}

.legacy-crumbs {
    font-family: Arial, Helvetica, sans-serif;
    font-size: .72rem;
    letter-spacing: .08em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.legacy-crumbs a { color: #8a2f22; text-decoration: none; }
.legacy-crumbs a:hover { text-decoration: underline; }
.legacy-crumbs span { color: #8d8577; }

.legacy-layout {
    align-items: start;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) 300px;
}

.legacy-intro {
    border-bottom: 3px double #2a251e;
    margin-bottom: 26px;
    padding-bottom: 18px;
}

.legacy-intro h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.08;
    margin: 0 0 8px;
}

.legacy-intro p {
    color: #5f584c;
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0;
    max-width: 62rem;
}

.legacy-count {
    color: #8d8577;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .72rem;
    letter-spacing: .1em;
    margin-top: 10px;
    text-transform: uppercase;
}

.legacy-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legacy-card {
    background: #fffdf7;
    border: 1px solid #e2d8c7;
    border-top: 4px solid #0f5c4b;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 16px;
    transition: box-shadow .18s ease, transform .18s ease;
}

.legacy-card:nth-child(4n+2) { border-top-color: #b42318; }
.legacy-card:nth-child(4n+3) { border-top-color: #b8860b; }
.legacy-card:nth-child(4n+4) { border-top-color: #1d4f8c; }

.legacy-card:hover {
    box-shadow: 0 12px 26px rgba(35, 28, 18, .14);
    transform: translateY(-3px);
}

.legacy-card h3 {
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0 0 8px;
}

.legacy-card h3 a { color: #221e18; text-decoration: none; }
.legacy-card h3 a:hover { color: #8a2f22; }

.legacy-card p {
    color: #5f584c;
    flex: 1;
    font-size: .9rem;
    line-height: 1.55;
    margin: 0 0 14px;
}

.legacy-card-meta {
    color: #8d8577;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .68rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.legacy-card-meta strong { color: #8a2f22; font-weight: 700; }

.legacy-aside-panel {
    background: #fffdf7;
    border: 1px solid #e2d8c7;
    margin-bottom: 20px;
    padding: 18px;
}

.legacy-aside-panel h3 {
    border-bottom: 2px solid #2a251e;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .74rem;
    letter-spacing: .13em;
    margin: 0 0 12px;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.legacy-aside-panel ol,
.legacy-aside-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.legacy-aside-panel li {
    border-bottom: 1px dotted #d9cebb;
    margin: 0 0 9px;
    padding-bottom: 9px;
}

.legacy-aside-panel li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.legacy-aside-panel a {
    color: #221e18;
    font-size: .9rem;
    line-height: 1.35;
    text-decoration: none;
}

.legacy-aside-panel a:hover { color: #8a2f22; text-decoration: underline; }

.legacy-article {
    background: #fffdf7;
    border: 1px solid #e2d8c7;
    padding: clamp(22px, 4vw, 46px);
}

.legacy-article-header {
    border-bottom: 3px double #2a251e;
    margin-bottom: 24px;
    padding-bottom: 20px;
}

.legacy-kicker {
    color: #b42318;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.legacy-article-header h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    letter-spacing: -.015em;
    line-height: 1.05;
    margin: 0 0 12px;
}

.legacy-byline {
    color: #6d6558;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .78rem;
}

.legacy-prose {
    font-size: 1.08rem;
    line-height: 1.85;
}

.legacy-prose p { margin: 0 0 1.15em; }

.legacy-prose.legacy-poem {
    font-size: 1.12rem;
    line-height: 1.75;
    white-space: normal;
}

.legacy-pager {
    border-top: 1px solid #e2d8c7;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
}

.legacy-pager a {
    color: #8a2f22;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    max-width: 46%;
    text-decoration: none;
    text-transform: uppercase;
}

.legacy-pager a:hover { text-decoration: underline; }
.legacy-pager .next { margin-left: auto; text-align: right; }

@media (max-width: 900px) {
    .legacy-layout { grid-template-columns: 1fr; }
    .legacy-grid { grid-template-columns: 1fr; }
}
