/* =====================================================================
   Game Tech Design — card-game strategy guide.
   Editorial theme: white content, deep felt-green chrome, serif display,
   card-red labels. Mobile-first, flex/grid.
   ===================================================================== */
:root {
    --bg: #10291f;            /* felt-green top bar + footer */
    --topbar: #10291f;
    --cream: #ffffff;         /* page / content background */
    --cream-2: #f3f6f3;       /* alternate band: faint neutral green-grey */
    --ink: #13201a;           /* headings / nav */
    --text: #38423c;          /* body */
    --muted: #68736c;
    --on-dark: #eef3ef;
    --on-dark-muted: #a8bab0;
    --accent: #1d6b4c;        /* felt green — rules, buttons, hovers */
    --accent-deep: #155239;
    --accent-ink: #a3242c;    /* card red — overlines, numbers, links */
    --card: #fbf8f1;          /* playing-card ivory */
    --line: rgba(19, 32, 26, .13);
    --line-dark: rgba(255, 255, 255, .14);
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    --container: 1200px;
    --gutter: 22px;
    --header-h: 86px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.75; color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
h1, h2, h3, h4, p, li, a { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }

/* ---------- shared type ---------- */
.overline { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.display { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 46px); line-height: 1.14; color: var(--ink); }
.display--sm { font-size: clamp(26px, 3.1vw, 36px); }
.lede { font-size: 19px; line-height: 1.75; color: var(--text); }
.rule { display: block; width: 54px; height: 2px; margin: 18px auto; background: var(--accent); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 32px; border: 1px solid var(--accent); cursor: pointer;
    font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
    color: #fff; background: var(--accent); transition: background-color .25s, border-color .25s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- top bar + header ---------- */
.site-topbar { height: 22px; background: var(--topbar); }
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 30px; min-height: var(--header-h); max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.site-logo { display: inline-flex; align-items: center; margin-right: auto; }
.brand-logo { height: 40px; width: auto; max-width: min(250px, calc(100vw - 130px)); object-fit: contain; object-position: left center; }
.brand-word { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.primary-nav__list { display: flex; align-items: center; gap: 28px; }
.primary-nav__link { font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.primary-nav__link:hover { color: var(--accent); border-color: var(--accent); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero img { width: 100%; height: clamp(300px, 42vw, 520px); object-fit: cover; }

/* ---------- intro (centered heading + lede, then readable body) ---------- */
.intro { padding: clamp(50px, 6.5vw, 84px) 0; }
.intro__head { text-align: center; }
.intro__head .overline { display: block; margin-bottom: 18px; }
.intro__head .lede { margin-top: 4px; }
.intro__body { margin-top: 26px; }
.intro__body p + p { margin-top: 16px; }

/* ---------- section header (centered, shared) ---------- */
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(30px, 4vw, 46px); }
.section-head .overline { display: block; margin-bottom: 14px; }

/* ---------- split (centered header + image/text row) ---------- */
.split { padding: clamp(48px, 6vw, 88px) 0; }
.split__grid { display: grid; gap: 36px; align-items: center; }
.split__media img { width: 100%; height: 100%; max-height: 430px; object-fit: cover; }
.split__text { text-align: center; }
.split__text p { max-width: 470px; margin: 0 auto; }
.split__text p + p { margin-top: 16px; }

/* ---------- tips grid ---------- */
.tips { display: grid; gap: 22px; margin-top: clamp(36px, 5vw, 56px); counter-reset: none; }
.tip { position: relative; padding: 28px 26px 26px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.tip__num { display: block; font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1; color: var(--accent-ink); }
.tip__title { margin-top: 14px; font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.3; color: var(--ink); }
.tip p { margin-top: 10px; font-size: 16px; line-height: 1.7; }
.band-alt { background: var(--cream-2); }
.band-alt .tip { border-color: transparent; border-top-color: var(--accent); }

/* card ranking chips (tip 2) */
.ranks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.ranks li { display: grid; place-items: center; width: 34px; height: 46px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); font-family: var(--serif); font-weight: 700; font-size: 16px; color: var(--ink); box-shadow: 0 2px 0 rgba(19, 32, 26, .06); }
.ranks li:nth-child(-n+4) { color: var(--accent-ink); border-color: rgba(163, 36, 44, .35); }
.ranks__caption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* ---------- two panels side by side (scoring + bidding) ---------- */
.duo { padding: clamp(52px, 7vw, 92px) 0; background: var(--cream-2); }
.duo__grid { display: grid; gap: 28px; }
.panel { padding: clamp(28px, 4vw, 40px); background: #fff; border: 1px solid var(--line); }
.panel .overline { display: block; margin-bottom: 12px; }
.panel h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.8vw, 30px); line-height: 1.2; color: var(--ink); }
.panel > p { margin-top: 14px; }
.panel .tips { margin-top: 26px; gap: 18px; }
.panel .tip { padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; }
.panel .tip__num { font-size: 26px; }
.panel .tip__title { font-size: 19px; }

/* ---------- MIND (tip 29) ---------- */
.mind { padding: clamp(52px, 7vw, 92px) 0; background: var(--bg); color: var(--on-dark); }
.mind .section-head .overline { color: #f08a90; }
.mind .display { color: #fff; }
.mind .section-head p { color: var(--on-dark-muted); }
.mind__grid { display: grid; gap: 18px; }
.mind__item { padding: 26px 24px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04); }
.mind__letter { display: grid; place-items: center; width: 58px; height: 76px; border-radius: 7px; background: var(--card); font-family: var(--serif); font-weight: 700; font-size: 34px; color: var(--accent-ink); }
.mind__item h3 { margin-top: 18px; font-family: var(--serif); font-weight: 600; font-size: 22px; color: #fff; }
.mind__item p { margin-top: 6px; color: var(--on-dark-muted); }

/* ---------- closing feature (final thoughts) ---------- */
.feature { padding: clamp(56px, 7vw, 96px) 0; }
.feature__body p + p { margin-top: 16px; }

/* ---------- legal pages ---------- */
.page-head { padding: clamp(46px, 7vw, 86px) 0 clamp(30px, 4vw, 50px); background: var(--bg); color: var(--on-dark); text-align: center; }
.page-head .overline { color: #f08a90; }
.page-head__title { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 5vw, 48px); color: #fff; margin-top: 12px; }
.page-head__meta { margin-top: 10px; color: var(--on-dark-muted); font-size: 15px; }
.page-head .breadcrumbs { margin-bottom: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumbs a { color: #9fd8bf; }
.legal { padding: clamp(44px, 6vw, 72px) 0 90px; }
.legal__body h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(23px, 3vw, 29px); color: var(--ink); margin: 34px 0 10px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: 12px; }
.legal__body ul { display: grid; gap: 8px; margin: 12px 0; }
.legal__body ul li { position: relative; padding-left: 22px; }
.legal__body ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; background: var(--accent-ink); transform: rotate(45deg); }
.legal__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal__body strong { color: var(--ink); font-weight: 700; }

/* ---------- 404 ---------- */
.notfound { padding: clamp(70px, 12vw, 150px) 0; text-align: center; }
.notfound__code { font-family: var(--serif); font-weight: 700; font-size: clamp(80px, 18vw, 150px); line-height: 1; color: var(--accent-ink); }
.notfound p { max-width: 460px; margin: 14px auto 28px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); color: var(--on-dark-muted); padding: clamp(56px, 7vw, 80px) 0 34px; }
.site-footer__top { display: grid; gap: 36px; padding-bottom: 34px; border-bottom: 1px solid var(--line-dark); }
.site-footer__logo { display: inline-flex; padding: 10px 14px; background: #fff; }
.site-footer__logo .brand-logo { height: 30px; }
.site-footer__desc { margin-top: 18px; max-width: 430px; font-size: 15.5px; line-height: 1.7; }
.site-footer__title { font-weight: 700; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: #9fd8bf; margin-bottom: 14px; }
.site-footer__links { display: grid; gap: 9px; }
.site-footer__links a, .site-footer__contact a, .site-footer__legal a { transition: color .2s; }
.site-footer__links a:hover, .site-footer__contact a:hover, .site-footer__legal a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; font-size: 14px; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- mobile nav ---------- */
@media (max-width: 1100px) {
    :root { --header-h: 72px; }
    .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 40px; padding: 0 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; margin-left: 4px; }
    .nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .2s; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 24px -14px rgba(0,0,0,.25); display: none; }
    .primary-nav.is-open { display: block; }
    .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; }
    .primary-nav__link { display: block; padding: 15px 2px; border-bottom: 1px solid var(--line); }
    .primary-nav__list li:last-child .primary-nav__link { border-bottom: 0; }
    .primary-nav__link:hover { color: var(--accent); border-color: var(--line); }
}

/* ---------- breakpoints ---------- */
@media (min-width: 720px) {
    .tips--2, .tips--3, .tips--4 { grid-template-columns: repeat(2, 1fr); }
    .mind__grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__top { grid-template-columns: 1.6fr 1fr 1.1fr; }
}
@media (min-width: 900px) {
    .split__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
    .split--reverse .split__media { order: 2; }
    .duo__grid { grid-template-columns: 1fr 1fr; }
    .panel .tips { grid-template-columns: 1fr; }
}
@media (min-width: 1040px) {
    .tips--3 { grid-template-columns: repeat(3, 1fr); }
    .tips--4 { grid-template-columns: repeat(4, 1fr); }
    .tips--4 .tip { padding: 26px 22px 24px; }
    .mind__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { transition: none !important; }
}
