/* Palm Court website: the landing page and the content pages. Same tokens and type as the game (play/index.html). */
:root {
  --ink: #09131d;
  --ink-2: #0f1f30;
  --ink-3: #13263a;
  --edge: rgba(242, 245, 238, 0.13);
  --line: rgba(242, 245, 238, 0.08);
  --chalk: #f2f5ee;
  --mist: #9fb2c5;
  --optic: #d6f04a;
  --optic-ink: #1b2300;
  --court: #2c5d9e;
  --clay: #c8643b;
  --grass: #4f8a3a;
  --coral: #ff7a62;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --gut: max(16px, env(safe-area-inset-left));
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ink); color: var(--chalk); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--optic); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--optic); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--optic); color: var(--optic-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.eyebrow { margin: 0 0 10px; font: 700 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--optic); }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; line-height: .92; margin: 0; }
h2 { font-size: clamp(38px, 6vw, 58px); }
h3 { font: 700 20px/1.25 var(--body); margin: 0 0 6px; }
.lede { color: var(--mist); font-size: clamp(17px, 2vw, 20px); max-width: 60ch; margin: 14px 0 0; }
.ball { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--optic); vertical-align: .04em; margin-left: .06em; box-shadow: inset -.08em -.06em 0 rgba(0,0,0,.18); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid var(--edge);
  background: rgba(242,245,238,.06); color: var(--chalk); font: 700 16px/1.1 var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s var(--ease-out), border-color .15s; }
.btn:hover { background: rgba(242,245,238,.12); border-color: rgba(242,245,238,.3); text-decoration: none; }
.btn.primary { background: var(--optic); color: var(--optic-ink); border-color: var(--optic); }
.btn.primary:hover { background: #e2f86a; }
.btn.big { min-height: 58px; padding: 14px 28px; font-size: 18px; }
.btn.primary::after { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .15s var(--ease-out); }
.btn.primary:hover::after { transform: translateX(3px) rotate(45deg); }
.btn[aria-disabled="true"] { opacity: .7; cursor: default; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- header / nav ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(9,19,29,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none; font: 900 26px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.logo img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--mist); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--chalk); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--optic); }
.site-head .btn { min-height: 40px; padding: 8px 16px; font-size: 15px; }
@media (max-width: 820px) {
  .site-head .wrap { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .site-head .btn { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 -10px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}

/* ---------- landing: hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(86vh, 820px); display: flex; align-items: flex-end; padding: 120px 0 56px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(9,19,29,.92) 0%, rgba(9,19,29,.7) min(520px, 60%), rgba(9,19,29,.1) min(900px, 100%)), linear-gradient(0deg, var(--ink) 0%, rgba(9,19,29,0) 42%); }
.hero h1 { font-size: clamp(64px, 12vw, 148px); line-height: .8; }
.hero .lede { color: #c9d5e0; max-width: 34ch; font-size: clamp(18px, 2.2vw, 22px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--mist); font-size: 15px; font-weight: 600; }
.chips li::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--optic); margin-right: 8px; vertical-align: .12em; }
@media (max-width: 640px) {
  .hero { min-height: 0; padding: 0 0 36px; flex-direction: column; align-items: stretch; }
  .hero-img { position: static; height: auto; aspect-ratio: 16 / 9; }
  .hero::before { background: linear-gradient(0deg, var(--ink) 0%, rgba(9,19,29,0) 30%); height: calc(100vw * 9 / 16); }
  .hero .wrap { margin-top: -28px; }
  .hero .actions .btn { flex: 1 1 100%; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--line); }
.section.tint { background: var(--ink-2); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: rgba(242,245,238,.035); border: 1px solid var(--line); padding: 22px 22px 20px; }
.card p { margin: 0; color: var(--mist); }
.card .ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; background: rgba(214,240,74,.12); color: var(--optic); }
.card .ico svg { width: 24px; height: 24px; }
/* controls: four ways to swing */
.ways { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); counter-reset: way; }
.way { position: relative; background: var(--ink); border: 1px solid var(--edge); padding: 24px 22px; }
.way .tagline { display: inline-block; margin-bottom: 10px; font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--optic-ink); background: var(--optic); padding: 5px 8px; }
.way .tagline.muted { background: rgba(242,245,238,.12); color: var(--chalk); }
.way ol { margin: 12px 0 0; padding-left: 20px; color: var(--mist); }
.way li + li { margin-top: 6px; }
.way h3 { font: 900 30px/1 var(--display); text-transform: uppercase; }
/* the tour: fictional pros */
.pros { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.pro { background: rgba(242,245,238,.035); border: 1px solid var(--line); padding: 16px; display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; align-items: center; }
.pro img { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; background: var(--ink-3); }
.pro b { font: 900 24px/1 var(--display); text-transform: uppercase; }
.pro .meta { color: var(--optic); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pro p { grid-column: 1 / -1; margin: 8px 0 0; color: var(--mist); font-size: 15px; line-height: 1.45; }
.note { color: var(--mist); font-size: 14px; margin-top: 18px; }
/* feature strip with the three surfaces */
.surfaces { display: flex; gap: 8px; margin-top: 14px; }
.surfaces span { flex: 1; height: 8px; }
/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); background: rgba(242,245,238,.03); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; position: relative; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border: solid var(--optic); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 20px 18px; color: var(--mist); }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin-bottom: 0; }
/* Steam call to action */
.cta { display: grid; gap: 22px; grid-template-columns: 1fr auto; align-items: center; background: linear-gradient(120deg, #13263a, #0c1a28); border: 1px solid var(--edge); padding: clamp(24px, 4vw, 44px); }
.cta h2 { font-size: clamp(34px, 5vw, 50px); }
.cta p { margin: 10px 0 0; color: var(--mist); max-width: 52ch; }
@media (max-width: 720px) { .cta { grid-template-columns: 1fr; } .cta .btn { width: 100%; } }

/* ---------- article pages ---------- */
.page-head { padding: clamp(40px, 7vw, 80px) 0 28px; border-bottom: 1px solid var(--line); background: radial-gradient(90% 140% at 100% 0%, rgba(44,93,158,.28), transparent 60%); }
.page-head h1 { font-size: clamp(48px, 8vw, 88px); }
.page-head .meta { color: var(--mist); font-size: 14px; margin: 14px 0 0; }
.layout { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) 240px; padding: 40px 0 72px; }
.layout.single { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 88px; align-self: start; font-size: 15px; }
.toc b { display: block; font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--edge); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--mist); text-decoration: none; }
.toc a:hover { color: var(--chalk); }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(32px, 4.4vw, 42px); margin: 48px 0 14px; scroll-margin-top: 80px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: #d3dde6; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--chalk); }
.prose kbd, .keys kbd { display: inline-block; min-width: 1.8em; padding: 1px 7px; border: 1px solid var(--edge); border-bottom-width: 2px; background: var(--ink-3); font: 600 14px/1.5 var(--body); text-align: center; color: var(--chalk); }
.box { background: var(--ink-2); border: 1px solid var(--edge); border-left: 3px solid var(--optic); padding: 16px 20px; margin: 20px 0; }
.box p:first-child { margin-top: 0; } .box p:last-child, .box ul:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--mist); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
td:first-child { color: var(--chalk); font-weight: 600; }

/* ---------- ads (content pages only, never over the game) ---------- */
.ad { margin: 40px auto; max-width: 970px; text-align: center; }
.ad-label { display: block; margin-bottom: 6px; color: var(--mist); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.ad ins { display: block; min-height: 250px; background: rgba(242,245,238,.02); }
.prose .ad { margin: 36px 0; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--mist); font-size: 15px; background: #070f17; }
.site-foot .wrap { display: grid; gap: 24px; grid-template-columns: 1.4fr repeat(2, 1fr); }
.site-foot p { margin: 10px 0 0; max-width: 42ch; }
.site-foot h2 { font: 700 12px/1 var(--body); letter-spacing: .16em; color: var(--chalk); margin: 6px 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li + li { margin-top: 6px; }
.site-foot a { color: var(--mist); text-decoration: none; }
.site-foot a:hover { color: var(--chalk); text-decoration: underline; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; max-width: none; }
@media (max-width: 640px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .wrap > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
