/* Hokis Studios: one stylesheet, no build step, system fonts only (no third-party requests).
   Light and dark follow the visitor's system setting (prefers-color-scheme); there is no script. */

:root {
  color-scheme: light dark;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  /* Brand palette (logo direction 2, the carpet medallion): navy, carpet red, saffron, cream. */
  --bg: #faf6ef;          /* cream */
  --surface: #ffffff;
  --surface-2: #f3ebde;
  --ink: #17223a;         /* navy ink */
  --muted: #4e5568;
  --line: #e5dccd;
  --line-strong: #c9bba5;
  --accent: #a8302a;      /* carpet red */
  --accent-hover: #86251f;
  --on-accent: #ffffff;
  --eyebrow: #8a5a12;     /* saffron, darkened for text */
  --focus: #1f5fcc;
  --shadow: 0 1px 2px rgb(23 34 58 / .06), 0 8px 24px rgb(23 34 58 / .08);
  --radius: .75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1828;        /* deep navy */
    --surface: #16223a;
    --surface-2: #1c2b47;
    --ink: #f4eadb;       /* cream */
    --muted: #b7bccb;
    --line: #283a5a;
    --line-strong: #3f5580;
    --accent: #ff9b8e;
    --accent-hover: #ffbdb4;
    --on-accent: #2a0b07;
    --eyebrow: #e8b04f;
    --focus: #8ab4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p, ul, ol, dl, table, details { margin: 0 0 1rem; }
[lang="hy"] { font-family: "Noto Sans Armenian", "Mshtakan", Sylfaen, var(--font-body); }

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
@media (min-width: 40rem) { .wrap { width: min(100% - 3rem, 70rem); } }
.narrow { max-width: 46rem; }

/* Skip link and visually hidden text */
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--surface); color: var(--ink); padding: .6rem 1rem; border-radius: .5rem; box-shadow: var(--shadow);
}
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .75rem; }
.wordmark { display: inline-flex; align-items: center; padding-block: .4rem; line-height: 0; }
.wordmark img { height: 2.25rem; width: auto; }
@media (min-width: 40rem) { .wordmark img { height: 2.5rem; } }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.15rem; margin: 0; padding: 0; }
.site-nav a { display: inline-block; color: var(--ink); text-decoration: none; padding: .55rem 0 .4rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line-strong); color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding-block: 2rem 2.5rem; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: baseline; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

/* Shared building blocks */
section { padding-block: 2.5rem; }
.eyebrow { font: 600 .8rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: .8rem; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .7rem 1.25rem;
  border-radius: .65rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); }
.grid .card h3 { margin-bottom: .4rem; }
.grid .card p:last-child { margin-bottom: 0; }
.shot { border-radius: .7rem; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface-2); }
.email { font-weight: 600; font-size: 1.15rem; }
.note { border-left: 4px solid var(--accent); background: var(--surface-2); padding: 1rem 1.25rem; border-radius: 0 .6rem .6rem 0; margin: 1.5rem 0; }
.note > :last-child { margin-bottom: 0; }

/* Home */
.home-hero { padding-block: 3rem 2rem; }
.home-hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .home-hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 3rem; } .home-hero { padding-block: 4.5rem 3rem; } }
.game-card { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 52rem) { .game-card { grid-template-columns: 1fr 1.15fr; } }
.game-title { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.game-title h3 { font-size: 1.6rem; margin: 0; }
.game-title p { margin: 0; color: var(--muted); font-size: .95rem; }
.app-icon { border-radius: 22%; box-shadow: var(--shadow); flex: none; }
.meaning { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 52rem) { .meaning { grid-template-columns: 14rem 1fr; } }
.meaning .glyph { font-size: clamp(3rem, 2rem + 4vw, 4.75rem); line-height: 1; color: var(--accent); margin: 0; }

/* Game page */
.game-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-block: 3rem 2.75rem; background: #121c30; }
.game-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.game-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgb(10 16 30 / .9), rgb(10 16 30 / .72));
}
@media (min-width: 52rem) {
  .game-hero { padding-block: 5rem 4.5rem; }
  .game-hero::before { background: linear-gradient(90deg, rgb(10 16 30 / .92) 0%, rgb(10 16 30 / .75) 45%, rgb(10 16 30 / .2) 100%); }
}
.game-hero .eyebrow { color: #ffd38c; }
.game-hero h1 { margin-bottom: .3em; }
.game-hero .tagline { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); margin-bottom: .6rem; }
.game-hero p { max-width: 34rem; }
.game-hero .app-icon { margin-bottom: 1.25rem; box-shadow: 0 6px 24px rgb(0 0 0 / .5); }
.pill { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .35); font-size: .95rem; }
.store-badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.store-badges img { height: 3rem; width: auto; }
.gallery { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:first-child { grid-column: 1 / -1; } }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .95rem; margin-top: .55rem; }
.gallery a { display: block; border-radius: .7rem; }
.feature-list { padding-left: 1.2rem; }
.feature-list li { margin-bottom: .35rem; }

/* Long-form pages: privacy, support, press */
.page-head { padding-block: 2.75rem 1rem; }
.page-head .lead { margin-bottom: 0; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); }
.prose h3 { margin-top: 1.75rem; }
.prose li { margin-bottom: .35rem; }
.meta { color: var(--muted); font-size: .95rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0 0; }
.toc h2 { font-size: 1.05rem; margin: 0 0 .5rem; font-family: var(--font-body); }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2 14rem; column-gap: 2rem; }
.toc li { margin-bottom: .25rem; break-inside: avoid; }
.summary-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.summary-box ul { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.facts th { width: 38%; color: var(--muted); font-weight: 500; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: 0 1.1rem; margin-bottom: .6rem; }
summary { cursor: pointer; font-weight: 600; padding: .9rem 0; list-style-position: outside; margin-left: 1rem; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .9rem; }
details > :last-child { margin-bottom: 1rem; }

/* A placeholder that must be filled before deploy (tools/check-site.py --deploy fails while one is left). */
.todo { background: #ffe58a; color: #3a2a00; outline: 2px dashed #b88a00; padding: 0 .25em; border-radius: 2px; }
.logo-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-bottom: 1rem; }
.logo-tiles figure { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #faf6ef; }
.logo-tiles figure.on-navy { background: #1f3557; }
.logo-tiles img { margin-inline: auto; max-height: 7rem; width: auto; }
.logo-tiles figcaption { color: #4e5568; }
.logo-tiles figure.on-navy figcaption { color: #e9dfcf; }

.not-found { text-align: center; padding-block: 5rem 3rem; }
.not-found .actions { justify-content: center; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a { transition: background-color .15s, border-color .15s, color .15s; }
}
@media print {
  .site-header nav, .skip, .actions, .site-footer ul { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
