/* Untethered Ocean: the homepage's gradient, 1px lines and IBM Plex Mono, set for reading.
   Fonts are the homepage's own latin subsets (SIL Open Font License 1.1; see untethered/FONTS-OFL.txt). */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('space-grotesk-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --abyss: #04060A;
  --white: #F4F6F8;
  --text: #B8C0CB;
  --muted: #8A93A0;
  --quiet: #6F7D8D;
  --line: rgba(184, 192, 203, 0.16);
  --line-strong: rgba(184, 192, 203, 0.3);
  --line-focus: rgba(184, 192, 203, 0.6);
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  background: var(--abyss);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 95% at 50% -5%, #23465B 0%, #142A38 24%, #0A111A 52%, #04060A 100%) no-repeat top / 100% 100svh,
    var(--abyss);
  color: var(--text);
  font: 15px/1.75 var(--mono);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 4px;
}

.ut-skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 2;
  padding: 10px 14px;
  background: var(--abyss);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line-strong);
}
.ut-skip:focus { top: 16px; }

.ut-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Caps labels: the homepage's small Plex Mono voice. */
.ut-section,
.ut-meta,
.ut-links,
.ut-caption,
.ut-back,
.ut-intro h1,
.ut-body h2 {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- header ---------- */

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

.ut-bar {
  width: min(1120px, 100% - 48px);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ut-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--white);
}
.ut-symbol { display: block; flex: none; }
.ut-wordmark {
  font: 600 15px/1 'Space Grotesk', var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ut-section,
.ut-links a,
.ut-caption a,
.ut-back a {
  display: inline-block;
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  line-height: 1;
}
.ut-section:hover,
.ut-links a:hover,
.ut-caption a:hover,
.ut-back a:hover { color: var(--white); border-bottom-color: var(--line-focus); }

/* ---------- main column ---------- */

.ut-main {
  flex: 1;
  width: min(720px, 100% - 32px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.ut-intro h1 {
  margin: 0 0 18px;
  font-weight: 400;
  color: var(--text);
}

.ut-lede {
  margin: 0;
  max-width: 28ch;
  color: var(--white);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.ut-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 28px 0 0;
}

.ut-posts {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.ut-posts li { border-top: 1px solid var(--line); }

.ut-row {
  display: grid;
  grid-template-columns: 216px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  text-decoration: none;
  color: var(--text);
}
.ut-row-poster {
  display: block;
  border: 1px solid var(--line);
  background: #06080D;
}
.ut-row-poster img { display: block; width: 100%; height: auto; }
.ut-row-text { display: flex; flex-direction: column; gap: 10px; }
.ut-row .ut-meta { color: var(--muted); }
.ut-row-title {
  color: var(--white);
  font-size: 17px;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.ut-row-summary { font-size: 14px; line-height: 1.7; }
.ut-row:hover .ut-row-title { text-decoration-color: var(--line-focus); }
.ut-row:hover .ut-row-poster { border-color: var(--line-strong); }
.ut-row:focus-visible { outline-offset: 8px; }

.ut-empty { margin: 64px 0 0; color: var(--muted); }

/* ---------- post ---------- */

.ut-article-head .ut-meta { margin: 0 0 16px; color: var(--text); }

.ut-article h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ut-video { margin: 40px 0 0; }

.ut-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #06080D;
  overflow: hidden;
}
.ut-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ut-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  padding-top: 6px;
}

/* Body copy. */

.ut-body { margin-top: 40px; }
.ut-intro .ut-body { margin-top: 20px; }
.ut-body p,
.ut-body ul,
.ut-body ol { margin: 0 0 1.25em; }
.ut-body h2 {
  margin: 48px 0 16px;
  color: var(--white);
  font-weight: 400;
}
.ut-body ul,
.ut-body ol { padding-left: 1.6em; }
.ut-body li { margin: 0 0 0.5em; padding-left: 0.3em; }
.ut-body li::marker { color: var(--quiet); }
.ut-body strong { color: var(--white); font-weight: 400; }
.ut-body a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.ut-body a:hover { text-decoration-color: var(--line-focus); }

.ut-back {
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ---------- footer: the homepage footer, in flow ---------- */

.ut-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 40px 24px calc(28px + env(safe-area-inset-bottom));
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}
.ut-footer-location { color: var(--quiet); white-space: nowrap; }

/* The signup line: the same rules as the homepage's footer patch. */
.pc-join { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 24px; margin-top: 6px; }
.pc-join-rest { display: inline-flex; align-items: center; gap: 0.9em; white-space: nowrap; }
.pc-join-home, .pc-join-open, .pc-join-send { -webkit-appearance: none; appearance: none; margin: 0; padding: 4px 0; border: 0; border-radius: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--quiet); cursor: pointer; text-decoration: none; }
.pc-join-home, .pc-join-open { border-bottom: 1px solid var(--line); }
.pc-join-dot { color: var(--quiet); }
.pc-join-home:hover, .pc-join-home:focus-visible, .pc-join-open:hover, .pc-join-open:focus-visible, .pc-join-send:hover, .pc-join-send:focus-visible { color: var(--text); outline: none; }
.pc-join-home:focus-visible, .pc-join-open:focus-visible { border-bottom-color: rgba(184, 192, 203, 0.55); }
.pc-join-home[aria-current="page"] { color: var(--muted); }
.pc-join-send:focus-visible { outline: 1px solid rgba(184, 192, 203, 0.55); outline-offset: 3px; }
.pc-join-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.pc-join-trap, .pc-join-field, .pc-join-send, .pc-join-note:empty { display: none; }
.pc-join[data-state="open"] .pc-join-rest, .pc-join[data-state="busy"] .pc-join-rest, .pc-join[data-state="done"] .pc-join-rest { display: none; }
.pc-join[data-state="open"] .pc-join-field, .pc-join[data-state="busy"] .pc-join-field { display: block; }
.pc-join[data-state="open"] .pc-join-send, .pc-join[data-state="busy"] .pc-join-send { display: block; }
.pc-join[data-state="busy"] .pc-join-send { opacity: 0.35; cursor: default; }
.pc-join-note { position: absolute; top: 100%; left: 50%; margin-top: 3px; transform: translateX(-50%); color: var(--muted); white-space: nowrap; outline: none; }
.pc-join[data-state="done"] .pc-join-note { position: static; margin: 0; transform: none; }
.pc-join-field { position: relative; width: 234px; height: 22px; border-bottom: 1px solid var(--line-strong); }
.pc-join-field:focus-within { border-bottom-color: var(--line-focus); }
.pc-join-email { position: absolute; left: 0; top: 0; width: 416px; height: 39px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; color: var(--text); caret-color: var(--text); font: 16px/39px var(--mono); letter-spacing: 0.1em; text-transform: none; transform: scale(0.5625); transform-origin: 0 0; }
.pc-join-email::placeholder { color: var(--quiet); opacity: 1; letter-spacing: 0.18em; text-transform: uppercase; }
.pc-join-email:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 40px var(--abyss) inset; transition: background-color 9999s; }

/* ---------- phones ---------- */

@media (max-width: 767px) {
  .ut-footer { font-size: 8px; letter-spacing: 0.16em; }
  .pc-join-field { width: 208px; }
  .pc-join-email { transform: scale(0.5); height: 44px; line-height: 44px; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .ut-bar { width: calc(100% - 32px); min-height: 64px; }
  .ut-wordmark { font-size: 13px; }
  .ut-main { padding: 48px 0 72px; }
  .ut-lede { font-size: 19px; }
  .ut-row { grid-template-columns: 1fr; gap: 16px; }
  .ut-video { margin-top: 28px; margin-left: -16px; margin-right: -16px; }
  .ut-frame { border-left: 0; border-right: 0; }
  .ut-caption { padding: 6px 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  body { background: Canvas; color: CanvasText; }
  .ut-header, .ut-posts, .ut-posts li, .ut-back, .ut-frame, .ut-row-poster { border-color: CanvasText; }
  .ut-section, .ut-links a, .ut-caption a, .ut-back a, .pc-join-home, .pc-join-open { border-bottom-color: LinkText; }
  .ut-symbol rect { fill: CanvasText; }
  .ut-symbol circle { stroke: CanvasText; }
  :focus-visible { outline-color: Highlight; }
}
