/* Restless website. One stylesheet, no external fonts, no inline styles (the CSP forbids them). */

:root {
  --bg: #0e0a13;
  --bg-2: #141019;
  --card: #1b1525;
  --card-2: #221a2f;
  --line: #3b2f4b;
  --line-soft: #2c2338;
  --text: #f5f0f8;
  --muted: #c6bcd3;
  --accent-1: #ff5e62;
  --accent-2: #ffb347;
  --link: #ffc47a;
  --link-hover: #ffe0b0;
  --focus: #ffd58f;
  --on-accent: #1d0c0c;
  --grad: linear-gradient(90deg, #ff5e62 0%, #ffb347 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --gutter: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo, monospace;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-width: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 85% -8%, rgba(255, 94, 98, 0.10), transparent 62%),
    radial-gradient(900px 520px at -10% 4%, rgba(132, 92, 255, 0.10), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: 0.005em;
}

h1 {
  font-size: clamp(2.1rem, 6.5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 4.6vw, 2.25rem);
}

h3 {
  font-size: clamp(1.2rem, 3.4vw, 1.45rem);
}

h4 {
  font-size: 1.1rem;
}

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

ul,
ol {
  padding-left: 1.4rem;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
}

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

code {
  font-family: var(--mono);
  font-size: 0.95em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

strong {
  color: #fff;
}

/* Layout helpers */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.copy-buffer {
  position: fixed;
  top: 0;
  left: -9999px;
  opacity: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--accent-2);
  color: var(--on-accent);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Placeholder text the owner must replace before launch. */
.todo {
  background: rgba(255, 179, 71, 0.16);
  outline: 2px dashed var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
  padding: 0 4px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(14, 10, 19, 0.92);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand:hover {
  color: #fff;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.site-nav a[aria-current="page"] {
  background: rgba(255, 179, 71, 0.14);
  color: var(--link-hover);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.4);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad);
  color: var(--on-accent);
}

.btn-primary:hover {
  color: var(--on-accent);
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-copy {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.95rem;
  background: rgba(255, 179, 71, 0.12);
  border-color: rgba(255, 179, 71, 0.55);
  color: var(--link-hover);
}

.btn-copy:hover {
  background: rgba(255, 179, 71, 0.22);
}

.btn-copy.is-copied {
  background: rgba(143, 227, 176, 0.14);
  border-color: rgba(143, 227, 176, 0.65);
  color: #c9f5d9;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 1rem;
}

/* Hero */

.hero {
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(14, 10, 19, 0.74) 0%, rgba(14, 10, 19, 0.84) 55%, rgba(14, 10, 19, 1) 100%),
    url("/assets/img/hero-720.webp");
  background-size: cover;
  background-position: center 35%;
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 721px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(14, 10, 19, 0.70) 0%, rgba(14, 10, 19, 0.82) 55%, rgba(14, 10, 19, 1) 100%),
      url("/assets/img/hero-1280.webp");
  }
}

.hero-inner {
  padding-top: clamp(40px, 9vw, 96px);
  padding-bottom: clamp(40px, 7vw, 80px);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  color: var(--link-hover);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3.4rem, 17vw, 7.5rem);
  line-height: 1;
  margin: 0 0 0.2em;
  letter-spacing: 0.01em;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em;
}

@media (forced-colors: active) {
  .gradient-text {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}

.hero-lead {
  max-width: 40ch;
  font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.launch-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 0.25rem 0 1.5rem;
  padding: 8px 18px 8px 14px;
  border-radius: 22px;
  background: rgba(20, 14, 26, 0.85);
  border: 1px solid rgba(255, 179, 71, 0.45);
  font-weight: 600;
}

.launch-pill strong {
  color: var(--link-hover);
}

.pill-dot {
  flex: none;
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(255, 94, 98, 0.18);
}

/* Address cards (copy the server address) */

.address-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 1.5rem;
  max-width: 820px;
}

@media (min-width: 640px) {
  .address-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.address-card {
  background: rgba(27, 21, 37, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.address-label {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.address-line {
  margin: 0 0 0.3rem;
}

.address-line code {
  display: inline-block;
  font-size: clamp(1.1rem, 4.6vw, 1.3rem);
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--line);
  padding: 4px 10px;
  user-select: all;
}

.address-note {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.address-card .btn-copy {
  margin-top: 0.1rem;
}

/* Sections */

.section {
  padding: clamp(44px, 8vw, 80px) 0;
}

.section-tight {
  padding: clamp(28px, 5vw, 48px) 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 1.75rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.kicker {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent-2);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.band {
  background: linear-gradient(180deg, rgba(34, 26, 47, 0.7), rgba(27, 21, 37, 0.7));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* Cards */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
}

.card .card-link {
  margin-top: auto;
  font-weight: 700;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 179, 71, 0.1);
  border: 1px solid rgba(255, 179, 71, 0.3);
}

.media-card {
  padding: 0;
  overflow: hidden;
}

.media-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.media-card .card-body > :last-child {
  margin-bottom: 0;
}

.media-card figure {
  margin: 0;
  position: relative;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line-soft);
}

.media-card figcaption {
  padding: 8px 20px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
}

.badge-date {
  background: var(--grad);
  color: var(--on-accent);
}

.badge-soon {
  background: #2d2142;
  border: 1px solid #6a5690;
  color: #ece3ff;
}

.after-grid {
  margin: 18px 0 0;
  color: var(--muted);
}

.age {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--sans);
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.ticks {
  list-style: none;
  padding: 0;
}

.ticks li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--grad);
  transform: rotate(45deg);
}

/* Feature (Kingsgate) */

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.feature figure {
  margin: 0;
}

.feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature figcaption {
  padding: 8px 22px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 860px) {
  .feature figcaption {
    padding-bottom: 12px;
  }
}

.feature-body {
  padding: 22px;
  align-self: center;
}

.feature-body > :last-child {
  margin-bottom: 0;
}

.feature-body p {
  color: var(--muted);
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: 1.25fr 1fr;
  }

  .feature-body {
    padding: 32px;
  }
}

/* Safety strip */

.safety {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 860px) {
  .safety {
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
  }
}

.safety-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}

/* Page heads and prose pages */

.page-head {
  padding: clamp(36px, 7vw, 64px) 0 clamp(20px, 4vw, 32px);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(34, 26, 47, 0.55), rgba(14, 10, 19, 0));
}

.page-head .lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.1rem, 3vw, 1.25rem);
}

.page-head h1 {
  margin-bottom: 0.4em;
}

.content {
  padding-top: clamp(24px, 5vw, 40px);
  padding-bottom: clamp(40px, 8vw, 72px);
}

.prose {
  max-width: 74ch;
}

.prose h2 {
  margin-top: 2.6rem;
  padding-top: 0.25rem;
  scroll-margin-top: 16px;
}

.prose h3 {
  margin-top: 1.8rem;
  scroll-margin-top: 16px;
}

.prose > h2:first-child,
.prose > section:first-child > h2:first-child {
  margin-top: 0;
}

.prose section {
  scroll-margin-top: 16px;
}

.toc {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 2rem;
  max-width: 74ch;
}

.toc h2 {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li + li {
  margin-top: 0;
}

.toc a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.toc a:hover {
  background: rgba(255, 179, 71, 0.12);
}

/* Numbered steps */

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

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 2px 0 0 3rem;
  min-height: 2.2rem;
}

.steps > li + li {
  margin-top: 0.85rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 0.95rem;
}

.steps ul {
  margin: 0.4rem 0 0;
}

.field-list {
  list-style: none;
  padding: 10px 14px;
  margin: 0.5rem 0 0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.field-list li + li {
  margin-top: 0.25rem;
}

.inline-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0.5rem 0 0;
}

.inline-copy .btn-copy {
  min-height: 36px;
  padding: 6px 14px;
}

/* Callouts */

.note,
.warn {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.note > :last-child,
.warn > :last-child {
  margin-bottom: 0;
}

.warn {
  border-color: rgba(255, 179, 71, 0.6);
  background: rgba(255, 179, 71, 0.08);
}

.note-title {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: #fff;
}

.method {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 1.25rem;
}

.method > :last-child {
  margin-bottom: 0;
}

.method h3 {
  margin-top: 0;
}

.method-recommended {
  border-color: rgba(255, 179, 71, 0.55);
}

.settings-list {
  padding: 0;
  list-style: none;
}

.settings-list > li {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.settings-list > li + li {
  margin-top: 10px;
}

.settings-list p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.facts > div {
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
}

.facts > div:first-child {
  border-top: 0;
}

.facts dt {
  font-weight: 700;
  color: #fff;
}

.facts dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

@media (min-width: 640px) {
  .facts > div {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 16px;
  }

  .facts dd {
    margin: 0;
  }
}

.rules-list {
  list-style: none;
  counter-reset: rule;
  padding: 0;
}

.rules-list > li {
  counter-increment: rule;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px 14px 4rem;
}

.rules-list > li + li {
  margin-top: 10px;
}

.rules-list > li::before {
  content: counter(rule);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--grad);
  color: var(--on-accent);
  font-weight: 800;
}

.rules-list h2 {
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}

.rules-list p {
  margin: 0;
  color: var(--muted);
}

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

/* 404 */

.notfound {
  padding-top: clamp(48px, 10vw, 110px);
  padding-bottom: clamp(48px, 10vw, 110px);
}

.notfound .big {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(4rem, 22vw, 9rem);
  line-height: 1;
  margin: 0 0 0.2em;
  font-weight: 700;
}

/* Footer */

.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line-soft);
  background: #0b0810;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

.footer-brand,
.footer-heading {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--text);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.footer-heading {
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.4rem;
}

.footer-links a {
  color: var(--text);
}

.footer-links a:hover {
  color: var(--link-hover);
}

.site-footer p a {
  color: var(--link);
}

.disclaimer {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

@media print {
  .site-header,
  .skip-link,
  .btn-copy {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
