/* mikepenz.dev: shared styles for index, privacy and terms. Same design system as blog.mikepenz.dev (src/layouts/Base.astro). */
/* Inter (OFL-1.1, see /static/fonts/OFL.txt), latin subset, variable wght, self-hosted. swap + a metric-matched fallback: text paints at once and barely moves when Inter lands. */
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/static/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Arial scaled to Inter's metrics (ascender 1984, descender -494 per 2048 em). Liberation Sans is metric-compatible with Arial. */
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans');
  size-adjust: 107.06%; ascent-override: 90.49%; descent-override: 22.56%; line-gap-override: 0%; }
:root {
  --bg: #f4f4f5; --fg: #111215; --dim: #55585f; --line: rgba(17, 18, 21, .14); /* --dim 6.5:1 on paper */
  --teal: #2E7BFF; --ink: #031030; --mark-bg: var(--teal); --accent: #1d5fe0; /* brand blue (var name kept); accent darkened for text on paper */
  --gx: clamp(16px, 7vw, 96px); /* side gutter */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: 'Inter Variable', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, 'Cascadia Mono', 'JetBrains Mono', Consolas, 'Liberation Mono', monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #101114; --fg: #ececef; --dim: #a0a3ab; --line: rgba(236, 236, 239, .14); --accent: #5FA0FF; --mark-bg: var(--ink); } /* --dim 7.5:1, accent 7.2:1 */
  body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* light-on-dark only */
}
* { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: clamp(28px, 7vh, 96px) max(var(--gx), env(safe-area-inset-right)) clamp(24px, 5vh, 64px) max(var(--gx), env(safe-area-inset-left));
  background: var(--bg); color: var(--fg);
  font: 400 clamp(16px, 0.3vw + 15px, 18px) / 1.6 var(--sans);
  font-kerning: normal;
}
/* paper grain: static SVG noise, present at first paint */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%27160%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.9%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .06 0%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E"); }
main { display: flex; flex-direction: column; flex: 1; max-width: 68em; width: 100%; }
header { display: flex; align-items: center; gap: .28em; font-size: clamp(2.8em, 11vw, 5em); line-height: 1; margin-bottom: .2em; }
header.compact { font-size: 1.45em; margin-bottom: 1.6em; }
header .home { display: flex; align-items: center; gap: .28em; color: inherit; text-decoration: none; }
header .h, h1 { font-weight: 700; letter-spacing: -.045em; }
h1 { font-size: 1em; margin: 0; }
.dot { color: var(--accent); }
#mark, .mark { flex: none; width: .78em; height: .78em; border-radius: 22%; overflow: hidden; background: var(--mark-bg); position: relative; display: block; }
.sub { margin: .5em 0 clamp(2em, 6vh, 3.2em); color: var(--dim); font-size: clamp(1.05em, 1.2vw + .7em, 1.25em); line-height: 1.45; } /* full width: one line where it fits, natural wrap on small screens */
.sub b { font-weight: 600; color: var(--fg); }

/* rows: typographic list, hairlines, no boxes; kind and years are quiet mono labels */
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative; display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; grid-template-areas: "k v y";
  gap: .3em 2em; align-items: baseline; padding: 1.2em 0 1.25em; border-bottom: 1px solid var(--line);
}
/* whole row clickable: the row's single link stretches over it (the games row has several links and is skipped) */
.row:not(.g) .v a::before { content: ""; position: absolute; inset: 0; }
.row:not(.g):has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.row:not(.g) a:focus-visible { box-shadow: none; }
.k, .y { font-family: var(--mono); font-size: .76em; color: var(--dim); white-space: nowrap; }
.k { grid-area: k; text-transform: uppercase; letter-spacing: .1em; }
.v { grid-area: v; min-width: 0; overflow-wrap: anywhere; text-wrap: pretty; }
.v a { font-weight: 600; }
.y { grid-area: y; font-variant-numeric: tabular-nums; text-align: right; letter-spacing: .02em; }
.row.g { align-items: center; } /* the icon links have no text baseline the labels could share */
.games { display: flex; flex-wrap: wrap; gap: .5em 1.6em; }
.games a { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; }
.games svg { width: 1.7em; height: 1.7em; margin: -.1em 0; border-radius: 22%; flex: none; }
/* hover (real pointers only): link turns accent, an arrow appears at the end of the line, an accent hairline draws under the row.
   Transitions live only in the :hover rules, so entering eases in and leaving is instant: rows the pointer merely crosses (or that
   scroll under a resting cursor) never leave a fading trail. The 60ms delay skips rows crossed faster than that. */
@media (hover: hover) and (pointer: fine) {
  .row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
  .row:not(.g) .v::after { content: "\2192" / ""; position: absolute; margin-left: .35em; color: var(--accent); opacity: 0; transform: translateX(-.4em); } /* absolute + auto offsets: sits at its inline spot, takes no space */
  .row:hover::after { transform: scaleX(1); transition: transform .45s 60ms var(--ease); }
  .row:not(.g):hover .v a, .row:not(.g):has(a:focus-visible) .v a { color: var(--accent); text-decoration-color: var(--accent); transition: color .15s 60ms, text-decoration-color .15s 60ms; }
  .row:not(.g):hover .v::after, .row:not(.g):has(a:focus-visible) .v::after { opacity: 1; transform: none; transition: opacity .2s 60ms, transform .3s 60ms var(--ease); }
  .row:hover .k, .row:hover .y { color: var(--fg); transition: color .15s 60ms; }
  /* games: several links, so each icon link answers on its own (icon lift kept) */
  .games a:hover { color: var(--accent); transition: color .15s; }
  .games a:hover svg { transform: translateY(-.15em) rotate(-5deg); transition: transform .25s var(--ease); }
}
.rows { overflow-x: clip; overflow-clip-margin: 8px; } /* an arrow after a full-width line must not cause sideways scroll; the margin keeps the focus ring */

a { color: inherit; text-decoration: underline 1px var(--line); text-underline-offset: .22em; text-decoration-skip-ink: auto; }
a:hover, a:focus-visible { text-decoration-color: var(--accent); outline: none; }
a:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); border-radius: 2px; }
footer { margin-top: auto; padding-top: clamp(3em, 8vh, 5em); display: flex; flex-wrap: wrap; gap: .4em 1.8em; font-family: var(--mono); font-size: .8em; }
footer::before { content: ""; flex-basis: 100%; height: 1px; margin-bottom: 1.2em; background: linear-gradient(90deg, var(--line), transparent); }
footer a { color: var(--dim); text-decoration: none; padding-block: .3em; }
footer a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr auto; grid-template-areas: "k y" "v v"; gap: .45em 1em; padding: 1.15em 0 1.2em; }
  .games { flex-direction: column; gap: .4em; }
  footer { gap: .2em 1.4em; }
}
::selection { background: var(--teal); color: var(--ink); }

/* legal pages */
.prose { max-width: 36em; margin-bottom: 3em; font-size: 1.04em; line-height: 1.7; }
.prose h1 { font-size: clamp(1.8em, 4.4vw, 2.6em); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; margin: 0 0 .4em; }
.prose h2 { font-size: 1.3em; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; margin: 2em 0 .5em; }
.prose :is(h1, h2) { text-wrap: balance; }
.prose :is(p, li) { text-wrap: pretty; }
.prose p, .prose ul { margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--dim); }
.prose strong { font-weight: 650; }
.prose a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prose a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.meta { color: var(--dim); margin: 0 0 2em; font-family: var(--mono); font-size: .82em; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
