/* Played Right Games — the studio site.
 *
 * Hand-written, no build step, no dependencies. That is deliberate: a studio page that needs a
 * toolchain to change a sentence is a page nobody changes. Open it in a browser to work on it.
 *
 * A deliberate sibling of friendlyfiredepartment.com — same dark ground and same Archivo Black
 * wordmark — with its OWN accent, so the studio and the game are never mistaken for each other.
 * The game is orange (#ff8c42); this is green.
 */

/* Self-hosted, latin subsets — see assets/fonts/README.md. Inter is variable: one file, 400–600. */
@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("assets/fonts/archivo-black-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url("assets/fonts/inter.woff2") format("woff2"); }

:root {
  --bg:        #0b1118;   /* the ground — a shade lighter than the game's #04090f */
  --inset:     #101a24;
  --rule:      #1c2a38;
  --text:      #c2d0da;
  --head:      #f2f6f8;
  --muted:     #78909f;
  --accent:    #4cc9a4;   /* the studio's own, deliberately not the game's orange */
  --accent-hi: #63e0bb;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo Black", var(--sans);

  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hi); }

/* ---- the top bar ------------------------------------------------------------------------- */

.top {
  border-bottom: 1px solid var(--rule);
  padding: 20px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--head);
  text-decoration: none;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.01em;
}

.mark { width: 26px; height: 26px; flex: 0 0 auto; }
.mark rect { fill: var(--inset); }
/* The mark is a check drawn as an exact right angle, with the geometry right-angle square nested in
   its corner: "right" twice over, and deliberately not the usual round-ended tick. */
.mark path {
  stroke: var(--accent);
  fill: none;
  stroke-linejoin: miter;
}
.mark .check  { stroke-width: 6.08; stroke-linecap: butt; }
.mark .corner { stroke-width: 1.76; stroke-linecap: square; }

/* ---- layout ------------------------------------------------------------------------------ */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

section { padding: 56px 0 0; }

h1 {
  font-family: var(--display);
  font-size: clamp(34px, 6.5vw, 52px);
  line-height: 1.12;
  color: var(--head);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

/* Section headlines: big like the h1, a step smaller, not the small-caps label style. */
.hero h2 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--head);
}

h3 {
  font-family: var(--display);
  font-size: 21px;
  color: var(--head);
  margin: 0;
}

p { margin: 0 0 16px; }

.lede {
  font-size: 19px;
  color: var(--text);
  max-width: 60ch;
}

/* ---- the work card ------------------------------------------------------------------------ */

.card {
  background: var(--inset);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 26px 28px;
}

.card-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #06231c;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 7px;
}
.btn:hover { background: var(--accent-hi); color: #06231c; }

.soon { color: var(--muted); font-size: 15px; }

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

.foot {
  border-top: 1px solid var(--rule);
  padding: 24px;
  text-align: center;
}

.foot p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---- small screens ------------------------------------------------------------------------ */

@media (max-width: 520px) {
  body { font-size: 16px; }
  main { padding-bottom: 56px; }
  section { padding-top: 44px; }
  .card { padding: 22px 20px; }
}
