/* People Polly: the website pages (home.html, the topic pages, 404), built by tools/build-site.js. The game has its own styles. */
@font-face { font-family: 'Nunito'; src: url(/fonts/nunito-latin.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(/fonts/barlow-condensed-800-latin.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(/fonts/barlow-condensed-600-latin.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --night: #0B1E3F; --night-2: #10295A; --ink: #10172A; --muted: #4A5672; --line: #DCE2EC; --paper: #F3F5F9; --white: #fff;
  --green: #19C37D; --green-ink: #0B7A4B; --gold: #FFC23D; --red: #FF4D3D;
  --r: 16px; --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); }
a:hover { color: var(--night); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-head { background: var(--night); color: #fff; position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo img { width: 40px; height: 40px; }
.logo span { font: 800 26px/1 'Barlow Condensed', sans-serif; letter-spacing: .02em; }
.logo span b { color: var(--green); font-weight: 800; margin-right: 6px; }
.logo:hover { color: #fff; }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.site-nav a { color: #C7D2EA; text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.btn-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--gold); color: var(--night) !important; font-weight: 900; text-decoration: none; white-space: nowrap; box-shadow: 0 3px 0 #C48D10; }
.btn-play:hover { background: #FFD15F; }
.btn-ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid #ffffff59; color: #fff !important; font-weight: 800; text-decoration: none; }
.btn-ghost:hover { border-color: #fff; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 70% 0%, #173a74 0%, var(--night) 60%); color: #fff; padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 10px; font: 600 15px/1 'Barlow Condensed', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--green); }
.hero h1 { margin: 0; font: 800 clamp(40px, 6vw, 66px)/1 'Barlow Condensed', sans-serif; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { margin: 18px 0 26px; font-size: 19px; color: #C7D2EA; max-width: 34em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin: 16px 0 0; font-size: 14px; color: #9FB0D3; }
.shot { border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px #0009; border: 1px solid #ffffff22; }

/* page header (topic pages) */
.page-head { background: var(--night); color: #fff; padding: 44px 0 40px; }
.page-head h1 { margin: 0; font: 800 clamp(34px, 5vw, 52px)/1.05 'Barlow Condensed', sans-serif; }
.page-head p { margin: 12px 0 0; color: #C7D2EA; font-size: 18px; max-width: 44em; }
.crumbs { margin: 0 0 14px; font-size: 14px; color: #9FB0D3; }
.crumbs a { color: #C7D2EA; }

/* sections */
main section { padding: 48px 0; }
main section + section { padding-top: 8px; }
h2 { font: 800 clamp(28px, 3.6vw, 38px)/1.1 'Barlow Condensed', sans-serif; margin: 0 0 14px; color: var(--night); }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 6px; color: var(--night); }
.prose { max-width: 760px; }
.prose p, .prose li { color: #2B3550; }
.prose h2 { margin-top: 36px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: 0 1px 0 var(--line); }
.card p { margin: 0; color: var(--muted); }
.card .tag { display: inline-block; margin-bottom: 10px; padding: 2px 10px; border-radius: 999px; font: 600 13px/1.6 'Barlow Condensed', sans-serif; letter-spacing: .12em; background: #19C37D24; color: var(--green-ink); }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 800; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.feature.flip > :first-child { order: 2; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: #fff; border-radius: 12px; padding: 14px 16px 14px 58px; position: relative; box-shadow: 0 1px 0 var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--night); color: var(--gold); display: grid; place-items: center; font: 800 18px/1 'Barlow Condensed', sans-serif; }
.notice { background: #FFF6DE; border: 1px solid #F1D27C; border-radius: 12px; padding: 14px 16px; color: #5A4300; }
.faq details { background: #fff; border-radius: 12px; padding: 0 18px; box-shadow: 0 1px 0 var(--line); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 800; color: var(--night); list-style-position: outside; }
.faq details p { margin: 0 0 16px; color: #2B3550; }
.band { background: var(--night); color: #fff; border-radius: 20px; padding: 32px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0; }
.band p { margin: 6px 0 0; color: #C7D2EA; }
table.keys { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
table.keys th, table.keys td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.keys th { width: 34%; color: var(--night); }

/* footer */
.site-foot { background: #07142B; color: #9FB0D3; padding: 40px 0 28px; margin-top: 40px; font-size: 15px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 24px; }
.site-foot h2 { color: #fff; font-size: 18px; margin: 0 0 10px; letter-spacing: .04em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: #C7D2EA; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .fine { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid #ffffff1a; font-size: 13px; }

@media (max-width: 880px) {
  .hero .wrap, .feature, .grid, .grid.two, .site-foot .cols { grid-template-columns: minmax(0, 1fr); }
  .feature.flip > :first-child { order: 0; }
  .site-nav { margin-left: 0; width: 100%; padding-bottom: 10px; }
  .site-head .btn-play { display: none; }
  .hero { padding: 36px 0 44px; }
}
