/* The Far Arc — site styles
   Palette from the channel style guide (AI / home zone).
   Display: Montserrat 800/900. Body: Inter. Accents used sparingly. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/montserrat-800.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/montserrat-900.woff2") format("woff2");
}

:root {
  --bg: #05031a;
  --bg-mid: #0c0728;
  --bg-card: #140a33;
  --ink: #efe6ff;
  --muted: #b9accf;
  --faint: #8d7eab;
  --cyan: #36e6ff;
  --violet: #9b5cff;
  --magenta: #ff3df2;
  --line: rgba(239, 230, 255, 0.1);
  --page: 1080px;
  --text: 38rem;
  --pad: clamp(1.25rem, 5vw, 2.75rem);
  --radius: 1rem;
}

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

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 80% -10%, rgba(62, 18, 112, 0.45), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(54, 230, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 30% at 70% 8%, rgba(255, 61, 242, 0.06), transparent 50%),
    var(--bg);
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--cyan);
  text-underline-offset: 0.14em;
}

a:hover {
  color: #8af3ff;
}

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

.skip {
  position: absolute;
  left: var(--pad);
  top: 0.75rem;
  z-index: 20;
  padding: 0.5rem 0.8rem;
  background: var(--bg-card);
  color: var(--ink);
  text-decoration: none;
  border-radius: 0.4rem;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--page), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 2.35rem;
  height: auto;
  display: block;
}

.brand-name {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
}

.btn-primary:hover {
  background: #7af0ff;
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(239, 230, 255, 0.2);
}

.btn-ghost:hover {
  border-color: rgba(54, 230, 255, 0.55);
  color: var(--ink);
  background: rgba(54, 230, 255, 0.05);
}

.header-subscribe {
  flex: 0 0 auto;
}

/* Hero */

.hero {
  padding-block: clamp(4.5rem, 16vh, 8.5rem) clamp(4rem, 12vh, 7rem);
  text-align: center;
}

.hero-mark {
  width: 7.5rem;
  height: auto;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  display: block;
}

.hero h1 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 7.2vw, 4.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #f7f2ff;
}

.tagline {
  margin: 1.35rem auto 0;
  max-width: 22em;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
}

/* Sections */

.section {
  padding-block: clamp(3.25rem, 8vh, 5.5rem);
}

.section-label {
  margin: 0 0 0.85rem;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.narrow {
  max-width: var(--text);
}

.lede {
  margin: 0;
  color: var(--ink);
  font-size: 1.125rem;
}

.lede + .lede {
  margin-top: 1.1rem;
}

.topics {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.4rem;
  color: var(--faint);
  font-size: 0.92rem;
}

.topics li {
  display: inline-flex;
  align-items: center;
}

.topics li:not(:last-child)::after {
  content: "·";
  margin-left: 0.4rem;
  color: rgba(155, 92, 255, 0.7);
}

/* Features */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Latest episode */

.episode {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
}

.episode-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 60% at 50% 40%, rgba(155, 92, 255, 0.12), transparent 70%),
    #0c0728;
}

.episode-frame p {
  margin: 0;
  max-width: 22em;
  color: var(--muted);
}

.episode-note {
  margin: 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.9rem;
}


/* FAQ */

.faq {
  margin-top: 1.5rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: 0 0 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.2rem;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  margin-top: 0.15rem;
  transform: rotate(-135deg);
}

.faq details p {
  margin: 0 0 1.15rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

/* Footer */

.site-footer {
  margin-top: clamp(2rem, 6vh, 4rem);
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
}

.site-footer .wrap {
  max-width: var(--text);
  text-align: center;
}

.disclaimer,
.copyright {
  margin: 0;
  color: var(--faint);
  font-size: 0.88rem;
  line-height: 1.6;
}

.copyright {
  margin-top: 0.85rem;
}

/* 404 */

.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 5rem;
}

.page-404 h1 {
  margin: 0 0 0.75rem;
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-404 p {
  margin: 0 0 1.75rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2.25rem;
  }
}

@media (max-width: 520px) {
  .brand-name {
    letter-spacing: 0.12em;
  }

  .site-header .wrap {
    min-height: 4.15rem;
  }

  .hero-mark {
    width: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
