@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/BricolageGrotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/BricolageGrotesque-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/Figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/Figtree-latin.woff2) format('woff2');
  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;
}

/* kend.app — one quiet frame; each game's art brings its own colour. */
:root {
  --paper: #edeff2;
  --surface: #ffffff;
  --ink: #0f1115;
  --ink-2: #3d424b;
  --muted: #646a75;
  --line: #d7dbe1;
  --accent: #ffc629;
  --mark: #ffc629;
  --shadow: 0 1px 2px rgba(15, 17, 21, .06), 0 14px 34px -14px rgba(15, 17, 21, .22);
  --radius: 22px;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0e11;
    --surface: #17191e;
    --ink: #f2f3f5;
    --ink-2: #c7cbd2;
    --muted: #9097a1;
    --line: #262a31;
    --mark: rgba(255, 198, 41, .36);
    --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 18px 40px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 12px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; margin: 0; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 26px/1 var(--display); letter-spacing: -.04em; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a { font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.site-header nav a:hover { background: var(--surface); }

/* home */
.hero { padding-block: clamp(44px, 9vw, 116px) clamp(36px, 6vw, 72px); }
.eyebrow { font: 700 13px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.hero h1 { font-size: clamp(46px, 8.6vw, 108px); line-height: .94; letter-spacing: -.04em; margin: 18px 0 24px; max-width: 11ch; }
.mark-hl { background: linear-gradient(transparent 60%, var(--mark) 60% 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 50ch; margin: 0; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 24px; }
.note { color: var(--muted); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.poster { display: block; aspect-ratio: 1024 / 500; overflow: hidden; background: #111; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover .poster img { transform: scale(1.035); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-body > p { margin: 0; color: var(--ink-2); }
.app-row { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 64px; height: 64px; border-radius: 22.5%; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 16px -6px rgba(0, 0, 0, .35); }
.app-row h3 { font-size: 25px; line-height: 1.1; margin: 0; }
.app-row h3 a { text-decoration: none; }
.meta { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; }
.more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge { display: inline-flex; line-height: 0; border-radius: 9px; }
.badge img { height: 44px; width: auto; }

/* game page */
.back { display: inline-block; margin-top: 26px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--ink); }
.game-hero { padding-bottom: clamp(28px, 5vw, 56px); }
.game-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 20px; }
.app-icon.lg { width: 88px; height: 88px; }
.chip { display: inline-block; margin-top: 18px; font: 700 12px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; background: color-mix(in srgb, var(--game) 30%, var(--surface)); color: var(--ink); }
.game-hero h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1; margin: 14px 0 10px; }
.tagline { font: 700 clamp(19px, 2.2vw, 23px)/1.35 var(--display); letter-spacing: -.01em; margin: 0 0 12px; }
.game-hero .lede { font-size: 18px; margin-bottom: 22px; }
.game-art { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1024 / 500; background: #111; }
.game-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.block { padding-top: clamp(40px, 6vw, 76px); }
.block > h2 { margin-bottom: 22px; }
.shot-row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 40vw, 228px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; }
.shot-row img { width: 100%; height: auto; border-radius: 18px; scroll-snap-align: start; box-shadow: var(--shadow); display: block; background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; }
.feature { border-top: 3px solid color-mix(in srgb, var(--game) 70%, var(--ink)); padding-top: 14px; }
.feature h3 { font-size: 21px; line-height: 1.2; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--ink-2); }

.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.help-card { background: var(--surface); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); }
.help-card h3 { font-size: 19px; line-height: 1.2; margin: 0 0 8px; }
.help-card p { margin: 0 0 10px; color: var(--ink-2); }
.help-card p:last-child { margin-bottom: 0; }
.path { font-weight: 700; color: var(--ink); }
details { margin-top: 8px; }
summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.langs { columns: 2; column-gap: 18px; list-style: none; margin: 10px 0 0; padding: 0; font-size: 15px; }
.langs li { margin: 3px 0; break-inside: avoid; }

/* text pages */
.prose { max-width: 740px; padding-top: 28px; }
.prose h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; margin: 18px 0 16px; }
.prose h2 { font-size: 26px; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ol, .prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.email { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 4px; font: 800 clamp(21px, 3vw, 28px)/1 var(--display); letter-spacing: -.02em; text-decoration: none; background: var(--surface); padding: 16px 22px; border-radius: 16px; box-shadow: var(--shadow); }
.email:hover { text-decoration: underline; }

/* smart download link */
.get { display: grid; justify-items: center; text-align: center; padding-block: clamp(48px, 10vw, 110px) 20px; }
.get .app-icon { width: 112px; height: 112px; }
.get h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1; margin: 20px 0 8px; }
.get .tagline { margin-bottom: 26px; }
.get .badges { justify-content: center; }
.hint { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* footer */
.site-footer { margin-top: clamp(64px, 10vw, 128px); border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-block: 36px 20px; }
.foot h2 { font: 700 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 8px 0 12px; }
.foot nav a { display: block; width: fit-content; text-decoration: none; margin: 7px 0; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand p { color: var(--muted); margin: 12px 0 0; max-width: 34ch; }
.legal { padding-block: 0 36px; color: var(--muted); font-size: 14px; }

@media (max-width: 700px) {
  .help-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid, .game-hero-grid { grid-template-columns: 1fr; }
  .game-art { order: -1; }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .card-body { padding: 18px 18px 20px; }
  .site-header nav a { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
