/* Papahigh Games website. One dark look, taken from the game's river-night palette.
   Layout: a single narrow reading column, header with logo + nav, footer with legal links. */
@font-face { font-family: "Bungee"; src: url("fonts/bungee-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #0f2230;      /* page ground, the river at night */
  --deep: #163246;       /* raised panels */
  --line: #2a4a60;       /* hairlines */
  --ink: #eef1e8;        /* body text, warm off-white */
  --muted: #a9bccb;      /* secondary text */
  --gold: #ffd257;       /* the PAPAHIGH logo yellow */
  --leaf: #69d36b;       /* the macaw's green, used for links */
  --todo: #ff8a5c;       /* placeholders still to fill in */
  --display: "Bungee", "Arial Black", Impact, sans-serif;
  --label: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 16px/1.65 var(--body);
}
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: 46rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-family: var(--display); font-size: 1.05rem; letter-spacing: .02em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--label); font-weight: 500; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

main .wrap { padding-block: 36px 56px; }

/* type */
h1, h2, h3 { text-wrap: balance; line-height: 1.2; }
h1 { font-family: var(--display); font-weight: 400; color: var(--gold); font-size: clamp(1.7rem, 5vw, 2.3rem); margin: 0 0 .4em; letter-spacing: .01em; }
h2 { font-family: var(--label); font-weight: 700; font-size: 1.3rem; margin: 2.2em 0 .5em; color: var(--ink); }
h3 { font-family: var(--label); font-weight: 700; font-size: 1.05rem; margin: 1.6em 0 .4em; color: var(--ink); }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
.lede { font-size: 1.1rem; color: var(--muted); }
.meta { font-family: var(--label); font-size: .9rem; color: var(--muted); letter-spacing: .03em; }
strong { color: #fff; }

/* home */
.hero { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 28px; }
.hero img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.play-btn {
  display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 24px;
  padding: 12px 20px; border-radius: 10px; background: var(--gold); color: #1a1530;
  font-family: var(--label); font-weight: 700; font-size: 1.05rem; text-decoration: none;
}
.play-btn:hover { color: #1a1530; background: #ffe28c; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 12px; margin: 8px 0 24px; padding: 0; list-style: none; }
.facts li { margin: 0; padding: 14px 16px; background: var(--deep); border-radius: 10px; }
.facts b { display: block; font-family: var(--label); font-weight: 700; color: var(--gold); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }

/* policy pieces */
.summary { background: var(--deep); border-radius: 12px; padding: 18px 20px 6px; margin: 20px 0 8px; }
.summary h2 { margin-top: 0; font-size: 1.1rem; }
.toc { font-family: var(--label); font-size: .95rem; columns: 2 14rem; column-gap: 24px; padding-left: 1.3em; }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { font-family: var(--label); font-weight: 700; color: var(--gold); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.tag { display: inline-block; font-family: var(--label); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); vertical-align: middle; }
.note { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; color: var(--muted); }
mark.todo { background: none; color: var(--todo); font-weight: 600; border-bottom: 1px dashed var(--todo); }
address { font-style: normal; }

/* footer */
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-block: 20px 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
