@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo_600SemiBold.ttf') format('truetype');
  font-weight: 600 700;
  font-display: swap;
}

/* Colours match lib/theme.ts in the app, which is dark only. */
:root {
  color-scheme: dark;
  --bg: #141312;
  --surface: #1c1b19;
  --ink: #ede8df;
  --muted: #a8a196;
  --faint: #6e685f;
  --line: #2c2925;
  --accent: #e4572e;
  --link: #f08a66;
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}

.site {
  border-bottom: 1px solid var(--line);
}

.site-inner,
main,
footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

.site-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site nav a {
  color: var(--muted);
  text-decoration: none;
}

.site nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}

main {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.5rem;
}

.summary h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.summary ul {
  margin-bottom: 0;
}

.toc {
  margin: 0 0 2.5rem;
}

.toc ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
  columns: 2 14rem;
  column-gap: 2rem;
}

.toc li {
  break-inside: avoid;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  scroll-margin-top: 1rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0 0 0.5rem;
}

.brand::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 0.5rem;
  background: url('/logo.png') center / contain no-repeat;
  vertical-align: -0.3em;
}

.home {
  padding-top: clamp(3rem, 12vh, 7rem);
}

.label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.hero {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 1rem;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 32rem;
  margin: 0 0 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1.25rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.button[aria-disabled='true'] {
  opacity: 0.5;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 3.5rem 0 0;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  column-gap: 1rem;
  padding: 1rem 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  color: var(--faint);
  font-weight: 600;
}

.steps span {
  color: var(--muted);
  font-size: 0.95rem;
}
