/* IBM Plex Mono is served from this site; no third-party font requests. */
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --text: #eaebeb;
  --muted: #757575;
  --line: #3a3a3a;
  --pad: clamp(1rem, 3vw, 2rem);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  line-height: 1.6;
  padding-inline: var(--pad);
}

a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
a:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

.label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.site-header .brand { display: flex; flex-direction: column; gap: 0.4rem; text-decoration: none; }
.site-header .brand img { display: block; width: 9.5rem; height: auto; }
.site-header .brand span {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text);
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-header nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}
.site-header nav a:hover { text-decoration: underline; }

/* Hero: starts at the top. Globe centred with the claim laid over it;
   all text is left-aligned in a single column at every window size. */
.hero {
  --globe: min(56vmin, 36rem);
  padding-block: 2.5rem 5rem;
}
/* Globe and claim share one grid cell, so the text below always starts after the globe */
.hero .stage {
  display: grid;
  align-items: center;
  margin-bottom: clamp(3rem, 8vh, 5rem);
  isolation: isolate;
}
.hero .stage > * { grid-area: 1 / 1; }
.hero .globe {
  justify-self: center;
  width: var(--globe);
  height: auto;
  z-index: -1;
  user-select: none;
  pointer-events: none;
}
.hero .claim { max-width: 40rem; }
.hero h1 {
  justify-self: start;
  max-width: 22ch;
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 0 2rem rgba(0, 0, 0, 0.85), 0 0 0.6rem rgba(0, 0, 0, 0.9);
}
.hero p { margin: 0 0 1.1rem; }

/* Link lists */
.links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem var(--pad);
  padding-block: 4rem 5rem;
  border-top: 1px solid var(--line);
}
.links section { scroll-margin-top: 1.5rem; }
.links h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.links ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--muted); }
.links li { border-bottom: 1px solid var(--line); }
.links li a,
.links li .item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 0.85rem 0;
  text-decoration: none;
}
.links li a::after { content: "↗"; color: var(--muted); grid-column: 2; grid-row: 1; }
.links li a:hover { background: var(--text); color: #000; padding-inline: 0.5rem; }
.links li a:hover::after,
.links li a:hover .meta,
.links li a:hover .desc { color: #000; }
.links .title { grid-column: 1; }
.links .meta { grid-column: 1; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.links .desc { grid-column: 1; font-size: 0.8125rem; line-height: 1.5; color: #a8a9a9; }
.links .placeholder { color: var(--muted); font-style: italic; }

/* Legal pages */
main.legal { flex: 1; padding-block: 2rem 4rem; max-width: 46rem; }
.legal h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase; margin: 1rem 0 0.5rem; }
.legal h2 { font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 2.5rem 0 0.5rem; }
.legal h3 { font-size: 0.9375rem; font-weight: 600; margin: 1.75rem 0 0.25rem; }
.legal p, .legal li, .legal address { color: #c9caca; }
.legal address { font-style: normal; margin-bottom: 1rem; }
.legal .meta { color: var(--muted); }
.back { display: inline-block; margin-bottom: 0.5rem; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* 404 */
.notfound { flex: 1; display: grid; place-content: center; gap: 1rem; text-align: center; padding-block: 4rem; }
.notfound h1 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-block: 1.25rem 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.site-footer nav { display: flex; gap: 1.75rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Narrow screens: globe on top, text below */
@media (max-width: 52rem) {
  .hero { --globe: min(88vw, 24rem); padding-top: 1.5rem; }
  .links { grid-template-columns: 1fr; padding-block: 3rem 4rem; }
}
