/* What both sites share: the night palette (colours.css, written by the
   build), the type, the gutter, and the pieces both pages are built of.
   Each site's site.css holds only its own layout. */

@font-face {
  font-family: "Racing Sans One";
  src: url("fonts/RacingSansOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex, bundled in landing/shared/fonts/ as IBM ships it (OFL,
   licence beside it): the sans for text, the serif for the studio. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/IBMPlexSerif-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/IBMPlexSerif-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/IBMPlexSerif-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  /* The two surfaces a section and a card sit on, stepped from the
     ground towards the edge rather than typed as hexes of their own. */
  --surface: color-mix(in srgb, var(--ground) 82%, var(--edge));
  --raised: color-mix(in srgb, var(--ground) 65%, var(--edge));
  --accent-hover: color-mix(in srgb, var(--accent) 70%, var(--ink));

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --display: "Racing Sans One", var(--sans);

  --gutter: 16px;
  --measure: 1120px;
  --radius: 12px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

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

.display { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; }
.serif { font-family: var(--serif); }

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root { --gutter: 40px; }
}

/* The bar across the top. */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ground);
  border-bottom: 1px solid var(--edge);
}
.nav-row {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.nav-links { display: none; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* Buttons: the gold one is the one thing on a page to press. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--accent-hover); color: var(--ground); }
.button-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.button-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--muted);
  font-weight: 500;
}
.button-quiet:hover { background: var(--raised); color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.chip-quiet { border-color: var(--edge); color: var(--muted); }

/* A section, and the alternate ground every other one sits on. */
.band { padding: 40px 0; border-top: 1px solid var(--edge); }
.band-alt { background: var(--surface); }
@media (min-width: 720px) {
  .band { padding: 64px 0; }
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card {
  background: var(--raised);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}

.footer {
  border-top: 1px solid var(--edge);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer a { color: var(--ink); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}
