/* The look of the policy pages. The colours and fonts are the home page's (index.html): keep them in step. */
@font-face { font-family: 'Formic'; font-weight: 600; font-display: swap; src: url('formic-600.woff2') format('woff2'); }
@font-face { font-family: 'Formic'; font-weight: 700; font-display: swap; src: url('formic-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Variable'; font-weight: 200 1000; font-display: swap; src: url('nunito-latin-wght-normal.woff2') format('woff2'); }

:root {
  --font-body: 'Nunito Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Formic', 'Nunito Variable', 'Segoe UI', system-ui, sans-serif;
  --ground: #100d0a;
  --card: #18130e;
  --card-edge: #3b2d1f;
  --line: #2a2017;
  --text: #fff0d6;
  --muted: #d8c7ab;
  --quiet: #a59176;
  --gold: #e6bd72;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse at 50% 0, #30211660, transparent 420px), var(--ground);
}
a { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* The bar at the top: the studio's name, back to the home page. */
.top { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.home {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font: 700 19px var(--font-display); letter-spacing: -0.01em;
}
.home .studios { color: var(--gold); }
/* The studio's ant, the same tile as the browser-tab icon. */
.home .mark { flex: none; width: 32px; height: 32px; background: url('studio-icon.svg') center / contain no-repeat; }

/* The policy itself, in one readable column. */
.doc { width: min(720px, 100%); margin: 0 auto; padding: 28px 16px 0; }
.crumbs { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
h1 { margin: 0; font: 700 clamp(28px, 6vw, 38px)/1.2 var(--font-display); letter-spacing: -0.02em; }
h2 { margin: 36px 0 8px; font: 700 22px/1.3 var(--font-display); color: var(--gold); }
h3 { margin: 0; font: 700 19px/1.3 var(--font-display); }
.doc > h3 { margin: 24px 0 6px; }
p, li { color: var(--muted); }
strong { color: var(--text); }
ul { padding-left: 1.3em; }
li + li { margin-top: 6px; }
.updated { margin: 6px 0 0; color: var(--quiet); font-size: 14px; }
.lead { font-size: 17px; }

/* A box for the short version at the top of a policy. */
.summary { margin-top: 24px; padding: 4px 22px; background: var(--card); border: 1px solid var(--card-edge); border-radius: 14px; }
.summary h2 { margin-top: 16px; }

/* The policies page: one card for the studio and each game or app. */
.policy-groups { display: grid; gap: 16px; margin-top: 24px; }
.policy-group { padding: 18px 22px; background: var(--card); border: 1px solid var(--card-edge); border-radius: 14px; }
.policy-group p { margin: 6px 0 0; font-size: 15px; }
.policy-group ul { margin: 10px 0 0; padding: 0; list-style: none; }
.policy-group a { font-weight: 800; }
.soon { color: var(--quiet); font-size: 14px; }

.footer { margin: 56px auto 0; padding: 22px 16px 32px; border-top: 1px solid var(--line); text-align: center; color: var(--quiet); font-size: 14px; }
.footer p { margin: 4px 0; }
