/*
 * Tallystick Studios — the studio site.
 *
 * Colour and type come from assets/brand/tokens.css. Nothing here restates a
 * hex that lives there; docs/brand/tallystick-studios.md is the standard and
 * engine/test/brand.test.ts fails the build when the two drift.
 *
 * Deliberately quiet. The games get to be loud in their own pages — this is
 * the surface they all sit under, and it works by being the plainest thing on
 * the domain.
 */

@import url("../assets/brand/tokens.css");

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ts-paper);
  color: var(--ts-ink);
  font-family: var(--ts-font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ts-verdigris); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ts-ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ts-ink); color: var(--ts-paper);
  padding: 12px 18px; z-index: 10;
}
.skip-link:focus { left: 0; }

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

.wrap { width: min(720px, calc(100% - 48px)); margin-inline: auto; }

/* ---- header ------------------------------------------------------ */

.site-header { padding: 28px 0; }
/* Wraps rather than overflowing: at 390px the logo and a three-item mono nav
 * do not fit on one line, and `flex` without `wrap` pushed 471px of content
 * into a 390px viewport with no scrollbar to warn anyone. */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px 24px;
}

.logo { display: block; color: var(--ts-ink); }
.logo img { display: block; width: min(232px, 62vw); height: auto; }

.header-nav {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--ts-font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.header-nav a { color: var(--ts-graphite); text-decoration: none; }
.header-nav a:hover { color: var(--ts-ink); }

/* ---- hero -------------------------------------------------------- */

.hero { padding: 76px 0 64px; border-bottom: 1px solid var(--ts-rule); }
.hero-mark { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto 40px; color: var(--ts-ink); }

.tagline {
  margin: 0;
  font-family: var(--ts-font-mono);
  font-size: clamp(20px, 4.4vw, 30px);
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.45;
}

.hero-note {
  margin: 22px auto 0; max-width: 46ch; text-align: center;
  color: var(--ts-graphite); font-size: 15px;
}

/* ---- sections ---------------------------------------------------- */

.section { padding: 56px 0; border-bottom: 1px solid var(--ts-rule); }

.label {
  margin: 0 0 20px;
  font-family: var(--ts-font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ts-graphite);
}

h2 { margin: 0 0 14px; font-size: 22px; font-weight: 500; line-height: 1.35; }
h3 { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* The one place the accent carries a whole field, and the only card on the
 * page — a studio with one game should look like a studio with one game. */
.project {
  display: block;
  background: var(--ts-surface);
  border: 1px solid var(--ts-rule);
  border-left: 3px solid var(--ts-verdigris);
  padding: 30px 32px;
  text-decoration: none;
  color: inherit;
}
.project:hover { border-left-color: var(--ts-ink); color: inherit; }
.project h2 { margin-bottom: 8px; }
.project .status {
  font-family: var(--ts-font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ts-graphite); margin-bottom: 10px; display: block;
}
.project p { color: var(--ts-graphite); }
.project .more {
  display: inline-block; margin-top: 14px;
  font-family: var(--ts-font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--ts-verdigris);
}

.practice { display: grid; gap: 30px; }
@media (min-width: 620px) { .practice { grid-template-columns: repeat(3, 1fr); } }
.practice p { color: var(--ts-graphite); font-size: 15px; }

/* ---- footer ------------------------------------------------------ */

.site-footer { padding: 40px 0 64px; font-size: 14px; color: var(--ts-graphite); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.site-footer p { margin: 0; }
