/* ThetaPress site. The colors are the app's dark theme (its tokens.css). */
:root {
  --bg: oklch(16% 0.012 255);
  --surface: oklch(20% 0.012 255);
  --border: oklch(29% 0.012 255);
  --border-strong: oklch(36% 0.014 255);
  --text: oklch(93% 0.008 255);
  --text-2: oklch(78% 0.012 255);
  --muted: oklch(69% 0.014 255);
  --accent: oklch(80% 0.13 78);
  --accent-ink: oklch(20% 0.04 78);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.55 "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.top, main, footer { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.lockup { display: block; width: 200px; height: 40px; font-family: "IBM Plex Sans", system-ui, sans-serif; }
nav { display: flex; gap: 24px; font-size: 16px; }
nav a { color: var(--text-2); text-decoration: none; }
nav a:hover { color: var(--text); }

.hero { padding: 72px 0 44px; max-width: 900px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
h1 { margin: 0 0 22px; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.14; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.lead { margin: 0 0 30px; color: var(--text-2); font-size: clamp(18px, 2.2vw, 21px); max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 0; }
.button { display: inline-block; padding: 12px 22px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.button:hover { filter: brightness(1.08); }
.link { font-weight: 500; }

.shot { margin: 0 0 72px; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border-strong); border-radius: 14px; }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 80px; }
.why h2 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.why p { margin: 0; color: var(--text-2); font-size: 16.5px; }

section { scroll-margin-top: 24px; }
.section { margin: 0 0 24px; font-size: 30px; font-weight: 600; }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 80px; }
.part { padding: 22px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); }
.part h3 { margin: 0 0 8px; color: var(--accent); font-size: 19px; font-weight: 600; }
.part p { margin: 0; color: var(--text-2); font-size: 16px; }

#videos, .launch { max-width: 720px; margin-bottom: 72px; }
#videos p, .launch > p { margin: 0 0 14px; color: var(--text-2); }

.launch form { display: grid; gap: 16px; max-width: 460px; margin-top: 24px; }
.launch label { display: grid; gap: 6px; color: var(--text); font-size: 15px; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.launch label:has(.optional) { grid-template-columns: auto 1fr; column-gap: 8px; }
.launch label:has(.optional) input { grid-column: 1 / -1; }
.launch input, .launch textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.launch textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.launch input::placeholder { color: var(--muted); opacity: 0.7; }
.launch input:focus-visible, .launch textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.launch button { justify-self: start; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.launch button:disabled { opacity: 0.6; cursor: default; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; margin: 0; font-size: 16px; }
.status.done { color: oklch(77% 0.15 152); }
.status.failed { color: oklch(70% 0.17 24); }
.fine { margin: 0; color: var(--muted); font-size: 13.5px; }
.soon { color: var(--text) !important; font-weight: 500; }

.videos { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; max-width: 1040px; }
.videos a { display: grid; gap: 4px; color: var(--text); text-decoration: none; }
.videos img { width: 100%; height: auto; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 12px; }
.videos a:hover img, .videos a:focus-visible img { border-color: var(--accent); }
.videos .name { font-weight: 600; }
.videos .length { color: var(--muted); font-size: 14.5px; }
.feature { display: grid; gap: 4px; max-width: 680px; margin: 0 0 30px; color: var(--text); text-decoration: none; }
.feature .frame { position: relative; display: block; margin-bottom: 8px; }
.feature img { display: block; width: 100%; height: auto; border: 1px solid var(--border-strong); border-radius: 14px; }
.feature:hover img, .feature:focus-visible img { border-color: var(--accent); }
.feature .play { position: absolute; left: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); }
.feature .play::after { content: ""; position: absolute; left: 22px; top: 16px; border-style: solid; border-width: 12px 0 12px 18px; border-color: transparent transparent transparent var(--accent-ink); }
.feature .name { font-weight: 600; }
.feature .length { color: var(--muted); font-size: 14.5px; }

footer { padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer p { margin: 0 0 8px; max-width: 760px; }
footer a { color: var(--text-2); }

@media (max-width: 820px) {
  .why, .parts { grid-template-columns: 1fr; }
  .why { gap: 22px; }
  nav a:not(:last-child) { display: none; }
  .hero { padding-top: 44px; }
  .feature .play { left: 12px; bottom: 10px; width: 34px; height: 34px; }
  .feature .play::after { left: 13px; top: 9px; border-width: 8px 0 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
