@font-face {
  font-family: "Sofia Sans";
  src: url("/fonts/sofia-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}

/* Tokens from brand/brand.md */
:root {
  color-scheme: light dark;
  --paper: #f7f8fa;
  --ink: #0e1726;
  --muted: #59627a;
  --line: #d9dde6;
  --blue: #2343c7;
  --link: #2343c7;
  --gutter: clamp(1rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1220;
    --ink: #e6eaf2;
    --muted: #98a2b8;
    --line: #222c40;
    --link: #8ea2ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--link);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

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

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

.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.mark .pole {
  fill: var(--ink);
}

.mark .flag {
  fill: var(--blue);
}

.mark .centre {
  fill: #fff;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  text-decoration-color: transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration-color: var(--link);
}

/* Home */

.hero {
  padding-block: clamp(3rem, 10vw, 7.5rem) clamp(2.5rem, 7vw, 5rem);
}

.hero h1 {
  max-width: 20ch;
  text-wrap: balance;
  margin: 0;
  font-size: clamp(2.25rem, 1.3rem + 4.4vw, 4.75rem);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.nowrap {
  white-space: nowrap;
}

.hero p {
  max-width: 34ch;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.5;
}

/* The page's one colour block: apps about to launch, under the Blue Peter's blue. */
.launches {
  --muted: #dfe5ff;
  --line: rgb(255 255 255 / 0.28);
  background: var(--blue);
  color: #fff;
}

.section {
  display: grid;
  gap: 1.5rem 3rem;
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows > li {
  display: grid;
  gap: 0.25rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}

.rows > li:first-child {
  padding-top: 0;
  border-top: 0;
}

.app-name {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.rows p {
  max-width: 52ch;
  margin: 0;
}

.rows .note {
  color: var(--muted);
}

.email {
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
  .section {
    grid-template-columns: 14rem 1fr;
  }
}

@media (min-width: 64rem) {
  .rows > li {
    grid-template-columns: minmax(12rem, 18rem) 1fr;
    align-items: baseline;
  }
}

/* Long-form pages */

.doc {
  max-width: 42rem;
  padding-block: clamp(2.5rem, 8vw, 5rem) clamp(3rem, 8vw, 5rem);
}

.doc h1 {
  margin: 0;
  font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.25rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.doc .updated {
  margin: 0.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc h2 {
  margin: 3rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.375rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.doc h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.doc p,
.doc ul {
  margin: 0 0 1rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

.doc li::marker {
  color: var(--link);
}

.doc code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem 2.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
