/* Riftdogs — riftdogs.com */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var.woff2") format("woff2");
}

:root {
  --navy: #010317;
  --navy-2: #0B1030;
  --navy-3: #141A42;
  --cream: #FFF2DE;
  --cream-dim: #CFC4B0;
  --red: #FB3217;
  --gold: #FFB900;
  --line: rgba(255, 240, 214, 0.14);
  --head: "Barlow Condensed", "Rajdhani", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1120px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: var(--cream); }

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

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

h1, h2, h3, .eyebrow, .btn, .site-nav a {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin: 0 0 1rem; }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; }
h3 { font-size: 1.6rem; margin: 0 0 0.5rem; }
.keep-case { text-transform: none; }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

/* Racing stripes: gold over red, as in the badge and splash */
.stripes {
  height: 26px;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 10px no-repeat,
    linear-gradient(var(--red), var(--red)) 0 16px / 100% 10px no-repeat;
}
.stripes--thin {
  height: 13px;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 5px no-repeat,
    linear-gradient(var(--red), var(--red)) 0 8px / 100% 5px no-repeat;
}
.stripes--short { width: 96px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.home-link { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.home-link img { width: 36px; height: 36px; }
.site-nav ul { display: flex; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0;
  display: inline-block;
}
.site-nav a:hover { color: var(--gold); }
@media (max-width: 420px) {
  .site-nav .nav-optional { display: none; }
}

/* Hero */
.hero { text-align: center; padding: 56px 0 48px; }
.hero-logo {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 0 8px; /* clear space around the badge */
}
.hero h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero .lede {
  max-width: 38rem;
  margin: 0 auto 2rem;
  color: var(--cream-dim);
  font-size: 1.15rem;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.meta {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: var(--cream-dim);
}
.meta span + span::before { content: "·"; margin: 0 0.6em; color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.5rem;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid var(--cream);
  border-radius: 4px;
  color: var(--cream);
  background: transparent;
}
.btn:hover { background: var(--cream); color: var(--navy); }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--cream); border-color: var(--cream); color: var(--navy); }

/* Full-bleed art band */
.art { margin: 0; position: relative; background: #000; }
.art img { width: 100%; height: auto; aspect-ratio: 2560 / 1114; object-fit: cover; }
.art figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px 16px 18px;
  background: linear-gradient(to top, rgba(5, 8, 26, 0.92), rgba(5, 8, 26, 0));
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  text-align: center;
}

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--cream-dim); margin: 0; }
.section-head .stripes { margin-bottom: 1.25rem; }

.intro { display: grid; gap: 2rem; align-items: start; }
.intro p { margin: 0 0 1rem; }
.intro .muted { color: var(--cream-dim); }
@media (min-width: 860px) { .intro { grid-template-columns: 5fr 7fr; gap: 4rem; } }

.features {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  padding: 24px;
  background: var(--navy);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
}
.feature:nth-child(even) { border-top-color: var(--red); }
.feature p { margin: 0; color: var(--cream-dim); font-size: 1rem; }

/* Download */
.downloads { display: grid; gap: 16px; }
@media (min-width: 900px) { .downloads { grid-template-columns: 1fr 1fr; } }
.platform {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--navy-2);
  min-width: 0;
}
.platform p, .platform li { color: var(--cream-dim); font-size: 1rem; }
.platform ul { padding-left: 1.2rem; margin: 1rem 0 0; }
.cmd { position: relative; margin: 1rem 0; }
.cmd pre {
  margin: 0;
  padding: 16px;
  padding-right: 84px;
  background: #000;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--cream);
}
.cmd pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 32px;
  padding: 0 0.75rem;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}
.copy:hover { background: var(--gold); }
.copy[hidden] { display: none; }

.notes {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 900px) { .notes { grid-template-columns: repeat(3, 1fr); } }
.note {
  padding: 20px 24px;
  border-left: 4px solid var(--red);
  background: var(--navy-2);
  border-radius: 0 4px 4px 0;
}
.note h3 { font-size: 1.35rem; }
.note p { margin: 0; color: var(--cream-dim); font-size: 1rem; }

kbd, code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--navy-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.05em 0.35em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--cream-dim);
  font-size: 0.95rem;
}
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
.site-footer .sign { display: flex; align-items: center; gap: 0.9rem; }
.site-footer .sign img { width: 44px; height: 44px; flex: none; }
.site-footer .sign p { margin: 0; }
.site-footer .line { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cream); font-size: 1.2rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }

/* Legal pages */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.doc h2 { font-size: 1.8rem; margin-top: 2.5rem; }
.doc li { margin-bottom: 0.6rem; }
.doc ul, .doc ol { padding-left: 1.4rem; }
.doc strong { color: #fff; }
.doc .stripes { margin-bottom: 1.5rem; }
.doc .source { color: var(--cream-dim); font-size: 0.95rem; }

/* 404 */
.lost { text-align: center; padding: 80px 0 96px; }
.lost img { width: 120px; height: 120px; margin: 0 auto 2rem; }
.lost p { color: var(--cream-dim); max-width: 32rem; margin: 0 auto 2rem; }
.lost .stripes { max-width: 240px; margin: 0 auto 2rem; }

/* Waiting list */
.waitlist {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 860px) { .waitlist { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.waitlist-form {
  position: relative;
  padding: 24px;
  background: var(--navy);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--cream);
  background: #000;
  border: 2px solid var(--cream-dim);
  border-radius: 4px;
}
.field input[type="email"]:focus-visible { border-color: var(--gold); outline-offset: 2px; }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.98rem; color: var(--cream-dim); }
.consent label {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.98rem;
  text-transform: none;
  letter-spacing: 0;
}
.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0.15rem 0 0;
  accent-color: var(--red);
}
.waitlist-form .btn { width: 100%; cursor: pointer; font-size: 1.35rem; }
@media (min-width: 520px) { .waitlist-form .btn { width: auto; } }
.waitlist-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.status { min-height: 1.6em; margin: 1rem 0 0; font-weight: 600; }
.status.ok { color: var(--gold); }
.status.err { color: #FF8A73; }
/* Honeypot: off-screen, not display:none */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 639px) {
  .art img { aspect-ratio: 4 / 3; }
  .art figcaption { position: static; background: var(--navy); padding: 16px; }
  .intro { gap: 0.5rem; }
}
@media (max-width: 639px) {
  .cmd pre { padding: 48px 12px 14px 14px; }
  .platform { padding: 20px 16px; }
}
