/* ==========================================================================
   Vintage Deck Play — base styles
   Fonts: Zilla Slab (headings, menu) + Outfit (body copy). White page, navy accents.
   ========================================================================== */

:root {
    --ink: #121212;
    --text: #000;
    --muted: rgba(18, 18, 18, .7);
    --link: #4b4d4e;
    --navy: #2e3388;
    --navy-dark: #22256e;
    --grey: #e4e2e0;
    --green: #00c089;
    --green-dark: #00a676;
    --yellow: #fdd54a;
    --red: #c8102e;
    --line: #e6e6e6;
    --font-head: "Zilla Slab", Georgia, serif;
    --font-body: "Outfit", Arial, sans-serif;
    --page: 1440px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; transition: color .2s ease, opacity .2s ease; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 12px; }
.container--narrow { max-width: 696px; }

/* ---------- announcement bar (navy with scalloped edge) ---------- */
.topbar {
    position: relative;
    background: var(--navy);
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 25px;
    padding: 7px 16px 6px;
    margin-bottom: 14px;
}
.topbar::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
    background: radial-gradient(circle at 12px 0, var(--navy) 11.5px, transparent 12.5px) 0 0 / 24px 14px repeat-x;
}

/* ---------- header ---------- */
.site-header { position: relative; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    height: 72px; max-width: var(--page); margin: 0 auto; padding: 0 12px;
}
.site-logo { display: block; flex: 0 0 auto; }
.site-logo .brand-logo { width: 300px; height: auto; }

.primary-nav { position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); }
.primary-nav__list { display: flex; align-items: center; height: 100%; gap: 4px; }
.primary-nav__item { position: relative; height: 100%; display: flex; align-items: center; }
.primary-nav__link {
    display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 12px;
    font-family: var(--font-head); font-size: 16px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
    color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.primary-nav__link:hover { color: var(--navy); }
.primary-nav__link--accent { color: var(--red); }
.caret { width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 7px solid var(--green); transition: transform .25s ease; }

.dropdown {
    position: absolute; top: 100%; left: 50%; min-width: 230px; padding: 18px 26px 20px;
    background: #fff; border: 1px solid var(--line); border-top: 0; box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.dropdown a { display: block; padding: 6px 0; font-size: 16px; font-weight: 400; color: var(--ink); text-decoration: none; }
.dropdown a:hover { color: var(--navy); text-decoration: underline; }
.primary-nav__item--has-menu:hover .dropdown,
.primary-nav__item--has-menu:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.primary-nav__item--has-menu:hover .caret,
.primary-nav__item--has-menu:focus-within .caret { transform: rotate(180deg); }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 11px 9px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- article ---------- */
.post-head { padding: 52px 0 38px; text-align: center; }
.post-head__title {
    margin: 0 70px; font-family: var(--font-head); font-size: 40px; font-weight: 700; line-height: 46px; letter-spacing: .96px; color: var(--ink);
}
.post-head__date { display: block; margin-top: 12px; font-size: 18px; font-weight: 300; color: var(--muted); }

.post-hero img { width: 100%; height: auto; aspect-ratio: 1376 / 768; object-fit: cover; }

.post-body { padding: 70px 0 90px; }
.post-body p { color: var(--text); font-size: 18px; line-height: 25.2px; margin: 0 0 18px; }
.post-body h2 {
    margin: 40px 0 4.5px; font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: 20.7px; letter-spacing: .96px; color: var(--ink);
}
.post-body h2 + p { margin-top: 18px; }
.post-figure { margin: 34px 0 4px; }
.post-figure img { width: 100%; height: auto; }
.post-body p.post-outro { margin-top: 40px; }

/* ---------- join block (grey, between dotted navy bands) ---------- */
.dots-band {
    height: 45px; background-color: var(--navy);
    background-image: radial-gradient(circle, var(--grey) 10.5px, transparent 11.5px);
    background-size: 54px 45px; background-position: center center; background-repeat: repeat-x;
}
.join { position: relative; background: var(--grey); padding: 34px 0 54px; text-align: center; overflow: hidden; }
.join__ribbon { width: 380px; margin: 0 auto; }
.join__text { max-width: 470px; margin: 18px auto 0; font-size: 16px; font-weight: 300; line-height: 20px; color: var(--ink); }
.join__text strong { font-weight: 600; }
.join__btn {
    display: inline-block; margin-top: 26px; padding: 10px 40px; border-radius: 999px;
    background: var(--green); color: #fff; text-decoration: none;
    font-size: 18px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    transition: background-color .2s ease;
}
.join__btn:hover { background: var(--green-dark); }
.join__art { position: absolute; left: calc(50% + 280px); top: 50%; width: 170px; transform: translateY(-50%); }

/* ---------- footer ---------- */
.site-footer { background: #fff; }
.site-footer__top {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0;
    max-width: var(--page); margin: 0 auto; padding: 38px 12px 50px;
}
.site-footer__brand { padding: 0 40px 0 50px; }
.site-footer__brand .brand-logo { width: 240px; height: auto; }
.site-footer__brand p { margin-top: 18px; max-width: 260px; font-size: 15px; line-height: 21px; color: var(--link); }
.site-footer__col { position: relative; padding: 0 40px 0 50px; }
.site-footer__col + .site-footer__col::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 0l8 4-8 4' fill='none' stroke='%23999' stroke-width='1'/%3E%3C/svg%3E") repeat-y;
}
.site-footer__title {
    font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: .96px; text-transform: uppercase; color: var(--ink);
}
.site-footer__links { margin-top: 14px; }
.site-footer__links li + li { margin-top: 6px; }
.site-footer__links a { font-size: 16px; font-weight: 300; line-height: 25px; color: var(--link); text-decoration: none; }
.site-footer__links a:hover { color: var(--navy); text-decoration: underline; }
.site-footer__bottom {
    border-top: 1px solid var(--line); padding: 18px 12px; text-align: center;
    font-size: 14px; font-weight: 400; color: var(--ink);
}
.site-footer__bottom a { font-size: 12px; font-weight: 700; text-decoration: none; }
.site-footer__bottom a:hover { text-decoration: underline; }
.site-footer__sep { margin: 0 8px; color: var(--muted); }

/* ---------- legal pages (template markup) ---------- */
.page-head { padding: 52px 0 26px; text-align: center; }
.breadcrumbs ol { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; list-style: none; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.overline { font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); }
.page-head__title { margin-top: 8px; font-family: var(--font-head); font-size: 40px; font-weight: 700; line-height: 46px; letter-spacing: .96px; }
.page-head__meta { margin-top: 12px; color: var(--muted); }
.legal { padding: 10px 0 90px; }
.legal__body p, .legal__body li { font-size: 18px; line-height: 25.2px; color: var(--text); }
.legal__body p { margin: 0 0 18px; }
.legal__body h2 { margin: 40px 0 14px; font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 26px; letter-spacing: .96px; }
.legal__body h3 { margin: 24px 0 10px; font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.legal__body ul { margin: 0 0 18px; }
.legal__body li { position: relative; padding-left: 22px; }
.legal__body li + li { margin-top: 8px; }
.legal__body li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.legal__body a { color: var(--navy); }

/* ---------- 404 ---------- */
.notfound { padding: 80px 0 110px; text-align: center; }
.notfound__code { font-family: var(--font-head); font-size: 140px; font-weight: 700; line-height: 1; color: var(--navy); }
.display { margin-top: 10px; font-family: var(--font-head); font-size: 40px; font-weight: 700; line-height: 46px; }
.notfound p:not(.overline):not(.notfound__code) { margin: 16px auto 0; max-width: 520px; }
.btn {
    display: inline-block; margin-top: 28px; padding: 10px 40px; border-radius: 999px; background: var(--green); color: #fff;
    font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
}
.btn:hover { background: var(--green-dark); }

/* ---------- reveal (soft fade for images; text is never hidden) ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
    .site-logo .brand-logo { width: 240px; }
    .primary-nav__link { padding: 0 8px; font-size: 15px; }
    .site-footer__top { grid-template-columns: 1fr 1fr 1fr; row-gap: 40px; }
    .site-footer__brand { grid-column: 1 / -1; }
    .site-footer__col + .site-footer__col::before { display: block; }
    .join__art { display: none; }
}

@media (max-width: 990px) {
    .nav-toggle { display: block; }
    .site-header__inner { height: 64px; }
    .primary-nav {
        position: absolute; left: 0; right: 0; top: 100%; height: auto; transform: translateY(-8px);
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(0,0,0,.08);
        padding: 8px 20px 20px; opacity: 0; visibility: hidden;
        transition: opacity .3s ease, transform .3s ease, visibility .3s;
    }
    .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .primary-nav__list { flex-direction: column; align-items: stretch; height: auto; gap: 0; }
    .primary-nav__item { display: block; height: auto; border-bottom: 1px solid var(--line); }
    .primary-nav__link { height: auto; padding: 14px 0; }
    .primary-nav__item--has-menu .caret { display: none; }
    .dropdown { position: static; min-width: 0; padding: 0 0 10px 14px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 767px) {
    body { font-size: 16px; }
    .topbar { font-size: 15px; line-height: 21px; }
    .site-logo .brand-logo { width: 210px; }
    .post-head { padding: 36px 0 28px; }
    .post-head__title, .page-head__title, .display { margin: 0; font-size: 30px; line-height: 36px; }
    .post-head__date { font-size: 16px; }
    .container { padding: 0 16px; }
    .post-hero .container { padding: 0; }
    .post-body { padding: 44px 0 64px; }
    .post-body p, .legal__body p, .legal__body li { font-size: 16px; line-height: 23px; }
    .join__ribbon { width: 300px; }
    .site-footer__top { grid-template-columns: 1fr; padding: 34px 16px 40px; }
    .site-footer__brand, .site-footer__col { padding: 0; }
    .site-footer__col + .site-footer__col::before { display: none; }
}
