/* ==========================================================================
   Tres Novem Studio — one stylesheet for every page.
   Port of the Claude Design source ("Tres Novem Studio.dc.html" +
   "Privacy Policy.dc.html"): same palette, type scale and spacing, with the
   inline styles lifted into reusable classes and a responsive layer added.
   Plain CSS. No frameworks, no build step, no JavaScript.
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------- */
:root {
  /* Palette (from the design) */
  --bg:           #000000;
  --text:         #f2f1ec;
  --text-strong:  #ffffff;
  --muted:        #a8a6a0;
  --dim:          #8c8a83;
  --faint:        #7a7871;
  --line:         #1c1c1c;
  --line-strong:  #292929;
  --accent:       #fae736;
  --selection:    #fae736;   /* yellow of the logo crown */

  /* Metrics */
  --container:    1080px;
  --page-x:       32px;
  --header-h:     96px;

  /* Type */
  --font-sans:    "Manrope", Helvetica, Arial, sans-serif;
  --font-pixel:   "Silkscreen", ui-monospace, "Courier New", monospace;
}

/* ---------- Base --------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  /* Anchor navigation is pure CSS — nothing on this site scrolls with JS. */
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }

p { margin: 0; }

::selection { background: var(--selection); color: #000; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Layout ------------------------------------------------------- */
.page      { padding-inline: var(--page-x); }
.container { max-width: var(--container); margin-inline: auto; }

/* ---------- Header (shared by all pages) --------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-inline: var(--page-x);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;      /* on very narrow screens the nav drops to its own row */
  gap: 8px 24px;
  padding-block: 20px;
}

.wordmark {
  font-family: var(--font-pixel);
  white-space: nowrap;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 30px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.nav a { color: var(--dim); transition: color 0.18s; }
.nav a:hover { color: var(--text-strong); }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
  padding: 180px 0 140px;
}

.hero__logo {
  width: 100%;
  max-width: 260px;
  height: auto;
  image-rendering: pixelated;
}

.hero__title {
  font-size: 54px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* ---------- Games -------------------------------------------------------- */
.games { padding-top: 24px; }

.game {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 80px;
}
.game:last-child { padding-bottom: 96px; }

.game__icon {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 22px;
  border: 1px solid var(--line);
}
.game__icon--pixel { image-rendering: pixelated; }

.game__title { font-size: 32px; margin-bottom: 20px; }

.game__text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 32px;
  text-wrap: pretty;
}

.store-links { display: flex; gap: 12px; flex-wrap: wrap; }

.store-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.store-link:hover {
  background: var(--text-strong);
  color: #000;
  border-color: var(--text-strong);
}

/* ---------- Contacts ----------------------------------------------------- */
.contacts {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 32px 0 88px;
}

.contacts__title { font-size: 44px; letter-spacing: -0.03em; }

.contacts__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.contacts__mail {
  font-size: 22px;
  color: var(--text);
  transition: color 0.18s;
}
.contacts__mail:hover { color: var(--text-strong); }

/* ---------- Footer (shared by all pages) --------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px var(--page-x) 64px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  justify-content: space-between;
}

.site-footer__studio {
  font-size: 15px;
  line-height: 1.8;
  color: var(--faint);
}
.site-footer__studio .wordmark {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}
.site-footer__studio a { color: var(--dim); transition: color 0.18s; }
.site-footer__studio a:hover { color: var(--text-strong); }

.site-footer__label {
  font-weight: 600;
  font-size: 15px;
  color: var(--faint);
  margin-bottom: 16px;
}

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}
.legal-links a { color: var(--muted); transition: color 0.18s; }
.legal-links a:hover { color: var(--text-strong); }
.legal-links a[aria-current="page"] { color: var(--faint); }

/* ---------- Legal pages -------------------------------------------------- */
.legal { padding: 170px 0 60px; }
.legal__body { max-width: 760px; }

.legal__title {
  font-weight: 700;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.legal__lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 36px;
  text-wrap: pretty;
}

.legal__body h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 36px 0 10px;
}

.legal__body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}
.legal__body p a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.legal__body p a:hover { color: var(--text-strong); border-bottom-color: currentColor; }

.legal__date {
  font-size: 15px;
  color: var(--text);
  margin-top: 76px;
}

/* ---------- Responsive ---------------------------------------------------
   The design is drawn at desktop width; below it everything reflows on the
   same tokens, so there is no second set of components to maintain.
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { padding: 150px 0 110px; gap: 40px; }
  .hero__title { font-size: 44px; }
  .contacts { grid-template-columns: 1fr; gap: 28px; padding-bottom: 72px; }
  .contacts__title { font-size: 38px; }
  .legal { padding-top: 150px; }
  .legal__title { font-size: 42px; }
}

@media (max-width: 680px) {
  :root { --page-x: 20px; --header-h: 88px; }
  .hero { padding: 130px 0 90px; gap: 32px; }
  .hero__logo { max-width: 200px; }
  .hero__title { font-size: 32px; }
  .game { flex-direction: column; gap: 24px; padding-bottom: 56px; }
  .game:last-child { padding-bottom: 72px; }
  .game__icon { width: 88px; height: 88px; border-radius: 19px; }
  .game__title { font-size: 26px; margin-bottom: 14px; }
  .game__text { font-size: 17px; margin-bottom: 24px; }
  .contacts__title { font-size: 32px; }
  .contacts__mail { font-size: 19px; }
  .legal { padding: 130px 0 48px; }
  .legal__title { font-size: 32px; }
  .site-footer { padding-block: 44px 52px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 430px) {
  .nav { gap: 18px; font-size: 14px; }
  .site-header .wordmark { font-size: 13px; }
}
