/* City of Chicago Roleplay website (reworked 2026-10-12).
   The top is the game's Quick Menu (menu-hero.css). Below it: a light page with rounded cards and GTA-style
   cutouts breaking out of their tops (the Grand RP pattern the owner picked), our own CPD car renders and the
   server's Chicago map.
   Colours come from the designer's logo (E:\cityofchicago\Brand): its navy and the light blue of the script "OF".
   One accent (that light blue); Discord blurple only on Discord things; brand marks in their own colours.
   Shape rule: cards 24px, tiles 16px, buttons 12px. */

@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-700i.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-600i.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
    --page: #eef3f8;
    --card: #ffffff;
    --line: #d6e0ea;
    --ink: #13243a;
    --muted: #4a5d73;
    --navy: #183256;          /* the logo's navy */
    --navy-2: #21406a;
    --sky: #4fbaf0;           /* the logo's script "OF": the one accent */
    --sky-50: #e4f3fc;
    --sky-ink: #12609a;       /* the accent as text on white (6:1) */
    --discord: #5865f2;
    --rockstar: #fcaf17;
    --fivem: #f40552;
    --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --body: 'Barlow', system-ui, sans-serif;
    --r-card: 24px;
    --r-tile: 16px;
    --r-btn: 12px;
    --wrap: 1240px;
    --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
    --shadow: 0 1px 2px rgba(24, 50, 86, 0.06), 0 14px 34px -18px rgba(24, 50, 86, 0.3);
    /* layers: the menu's parts 1-4 (menu-hero.css), the bar 30, the skip link 50 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 500 17px/1.55 var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; line-height: 1.08; margin: 0; letter-spacing: 0; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--r-btn); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 3px; }  /* 6.6:1 on white; the light accent was 2.2:1 */

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 46px; padding: 0 18px;
    border-radius: var(--r-btn); border: 2px solid transparent;
    font: 600 18px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none;
    white-space: nowrap; cursor: pointer;
    transition: transform 0.18s var(--ease), background-color 0.18s, border-color 0.18s, color 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 21px; }
.btn-light { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-light:hover { border-color: var(--navy); }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-white { background: #fff; color: var(--discord); }

/* ---------- the bar (after the menu has scrolled away) ---------- */
.bar {
    position: fixed; z-index: 30; inset: 0 0 auto 0;
    background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
    transform: translateY(-101%); visibility: hidden;
    transition: transform 0.32s var(--ease), visibility 0s linear 0.32s;
}
.bar.on { transform: none; visibility: visible; transition: transform 0.32s var(--ease); }
.bar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.bar-brand img { height: 48px; width: auto; }
.bar-links { display: flex; gap: 24px; }
.bar-links a { font: 600 17px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; color: var(--muted); padding: 8px 0; }
.bar-links a:hover { color: var(--ink); }
.bar-cta { margin-left: auto; min-height: 42px; }
@media (prefers-reduced-transparency: reduce) { .bar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- section rhythm ---------- */
.play, .sides { margin-top: 112px; }
.play h2, .sides h2, .city h2 { font-size: clamp(42px, 4.8vw, 66px); margin-bottom: 28px; }

/* ---------- how to play: three steps, the last one (where you actually join) wider and dark ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 14px; }
.step {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 26px 26px 26px;
}
.step h3 { display: flex; align-items: baseline; gap: 10px; font-size: clamp(26px, 2.3vw, 32px); margin-top: 6px; }
.step-n { font-size: 0.75em; color: var(--sky-ink); }
.step p { color: var(--muted); font-size: 16px; max-width: 34ch; }
.step > .btn { margin-top: auto; }
.mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-tile); }
.mark svg { width: 26px; height: 26px; fill: currentColor; }
.mark-rockstar { background: var(--rockstar); color: #111; }
.mark-fivem { background: #fff0f4; color: var(--fivem); }
.mark-discord { background: var(--discord); color: #fff; }
.step-last { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-last .step-n { color: var(--sky); }
.step-last p { color: #c3d3e6; }
.step-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.f8 {
    display: flex; align-items: center; gap: 12px; width: 100%;
    margin-top: 4px; padding: 8px 8px 8px 10px; border-radius: var(--r-btn); background: rgba(255, 255, 255, 0.07);
}
.f8-key { display: grid; place-items: center; min-width: 34px; height: 30px; border-radius: 6px; background: var(--sky); color: var(--navy); font: 700 italic 17px/1 var(--display); }
.f8 code { font: 600 14px/1.3 ui-monospace, 'Cascadia Code', Consolas, monospace; color: #e6eef7; white-space: nowrap; }
.f8-copy {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
    border: 0; border-radius: 8px; background: #fff; color: var(--navy); cursor: pointer;
    font: 700 italic 16px/1 var(--display); text-transform: uppercase;
}
.f8-copy[data-done] { background: #d8f1e4; color: #0d6b3c; }

/* ---------- pick your side ---------- */
.sides-grid {
    display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: 300px 300px; gap: 16px;
    padding-top: 40px;           /* room for the art breaking out of the top row */
}
.side { position: relative; border-radius: var(--r-card); padding: 30px 32px; overflow: visible; }
.side-copy { position: relative; z-index: 2; max-width: 300px; }
.side h3 { font-size: 40px; }
.side p { margin-top: 10px; font-size: 17px; }
.side-art { position: absolute; z-index: 1; bottom: 0; height: auto; max-width: none; pointer-events: none; }
.side-pd { grid-row: span 2; background: var(--navy); color: #fff; }
.side-pd p { color: #c3d3e6; }
.side-more { display: inline-block; margin-top: 14px; font: 600 18px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--sky); padding-bottom: 3px; }
.side-pd .side-more { color: #fff; }
.side-more:hover { border-bottom-color: currentColor; }
.side-civ { background: #cde8f7; }
.side-staff { background: var(--card); border: 1px solid var(--line); }
/* our CPD cars: the Tahoe behind, the Crown Victoria in front, parked on the bottom of the card */
.art-tahoe { right: 2%; bottom: 26%; width: 66%; }
.art-cvpi { left: 1%; bottom: 3%; width: 84%; }
.art-biker { right: 0; width: 68%; border-bottom-right-radius: var(--r-card); }
.art-franklin { right: 40px; height: 94%; width: auto; }
.side-civ .side-copy, .side-staff .side-copy { max-width: 210px; }

/* ---------- the city: the server's own Chicago map ---------- */
.city { margin-top: 120px; position: relative; overflow-x: clip; }
.city-copy { position: relative; z-index: 1; }
.city-copy p { max-width: 40ch; color: var(--muted); font-size: 19px; margin-top: -12px; }
/* the map's top is cut where its tiles end, so it fades in from the page instead */
.city-map {
    width: min(1300px, 100%); height: auto; margin: -30px auto 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
}

/* ---------- discord ---------- */
.join { margin-top: 40px; }
.join-card {
    position: relative; border-radius: var(--r-card); background: var(--discord); color: #fff;
    min-height: 320px; display: flex; align-items: center; margin-top: 60px;
}
.join-copy { position: relative; z-index: 2; padding: 48px 56px; max-width: 640px; }
.join-logo { width: 46px; height: 46px; fill: #fff; margin-bottom: 14px; }
.join h2 { font-size: clamp(38px, 4.4vw, 58px); }
.join-copy p { margin: 14px 0 26px; font-size: 19px; color: #e3e6ff; max-width: 42ch; }
.join-art { position: absolute; z-index: 1; right: 8%; bottom: 0; height: 128%; width: auto; max-width: none; }

/* ---------- footer (light, so the designer's logo sits on white as it was drawn) ---------- */
.foot { margin-top: 112px; background: #fff; border-top: 1px solid var(--line); padding: 36px 0 40px; }
.foot-in { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 40px; }
.foot-brand img { height: 84px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { display: inline-block; padding: 6px 0; font: 600 17px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; color: var(--navy); }
.foot-links a:hover { color: var(--sky-ink); }
.foot-note { color: var(--muted); font-size: 14px; max-width: 62ch; justify-self: end; }

/* ---------- motion: things come in once, as they reach the screen (site.js adds .in) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
    .reveal.in { opacity: 1; transform: none; }
    .side.reveal:nth-child(2) { transition-delay: 0.08s; }
    .side.reveal:nth-child(3) { transition-delay: 0.16s; }
    .step.reveal:nth-child(2) { transition-delay: 0.07s; }
    .step.reveal:nth-child(3) { transition-delay: 0.14s; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bar, .bar.on { transition: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
    .bar-links { display: none; }
    .steps { grid-template-columns: 1fr 1fr; }
    .step-last { grid-column: 1 / -1; }
    .side-civ .side-copy, .side-staff .side-copy { max-width: 170px; }
    .art-franklin { right: 12px; height: 84%; }
    .join-copy { max-width: 58%; padding: 44px 40px; }
    .join-art { right: 3%; height: 116%; }
    .foot-in { grid-template-columns: auto 1fr; }
    .foot-note { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .bar-in { height: 60px; gap: 12px; }
    .bar-brand img { height: 40px; }
    .bar-cta { min-height: 40px; padding: 0 12px; font-size: 16px; }
    .play, .sides { margin-top: 72px; }
    .steps { grid-template-columns: 1fr; }
    .step { padding: 22px 20px; }
    .step > .btn, .step-actions, .step-actions .btn { width: 100%; }
    .f8 { flex-wrap: wrap; row-gap: 8px; }
    .f8 code { order: 3; flex: 1 1 100%; font-size: 13.5px; }
    .sides-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 56px; }
    .side { min-height: 300px; padding: 26px 24px; }
    .side-copy, .side-civ .side-copy, .side-staff .side-copy { max-width: 58%; }
    .side-pd { grid-row: auto; min-height: 470px; }
    .side-pd .side-copy { max-width: none; }
    .art-tahoe { width: 74%; bottom: 26%; right: 2%; }
    .art-cvpi { width: 90%; left: 2%; }
    .art-franklin { height: 230px; right: 18px; }
    .city { margin-top: 80px; }
    .city-map { width: 150%; max-width: none; margin: 0 0 0 -25%; }
    .join-card { flex-direction: column; align-items: stretch; }
    .join-copy { padding: 34px 24px 10px; max-width: none; }
    .join-art { position: relative; right: auto; height: 340px; align-self: flex-end; margin-right: 12px; }
    .foot-in { grid-template-columns: 1fr; gap: 20px; }
}
