/* PodSpot help site. One family (Atkinson Hyperlegible Next, built for
   legibility), one column, and one bold element: the signal rings from the
   app's own tracking screen behind each headline. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f8fe;
  --surface: #ffffff;
  --ink: #14233a;
  --muted: #4a5b73;
  --mist: #d9e6f6;
  --signal: #1565c0;
  --signal-strong: #0d4f9e;
  --found: #0e8f6a;
  --ring: #2196f3;
  --on-signal: #ffffff;
  --measure: 38rem;
  --radius: 14px;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.6rem;
  --step-3: clamp(2.1rem, 1.5rem + 3vw, 3.3rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1a2b;
    --surface: #12233a;
    --ink: #e4ecf7;
    --muted: #a3b5ca;
    --mist: #22384f;
    --signal: #7ab8f7;
    --signal-strong: #a9d0fb;
    --found: #3ccb9b;
    --ring: #4aa3f5;
    --on-signal: #ffffff;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
}

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

a { color: var(--signal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--signal-strong); text-decoration-thickness: 2px; }
a:focus-visible,
.cta:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2.5rem);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */
.top { border-bottom: 1px solid var(--mist); background: var(--paper); position: relative; z-index: 2; }
.top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 750;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: var(--step--1); }
.top nav a { color: var(--muted); text-decoration: none; padding: 0.35rem 0; }
.top nav a:hover,
.top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }

/* Hero with the signal rings */
.hero { position: relative; overflow: hidden; padding: 2.75rem 0 2.5rem; }
.hero-inner { position: relative; z-index: 1; }

.rings {
  position: absolute;
  width: min(34rem, 120vw);
  aspect-ratio: 1;
  right: max(-14rem, -30vw);
  top: -9rem;
  pointer-events: none;
}
.rings span {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  background: var(--ring);
  animation: ping 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.rings span:nth-child(1) { width: 100%; height: 100%; opacity: 0.06; animation-delay: 0.36s; }
.rings span:nth-child(2) { width: 76%; height: 76%; opacity: 0.08; animation-delay: 0.24s; }
.rings span:nth-child(3) { width: 52%; height: 52%; opacity: 0.11; animation-delay: 0.12s; }
.rings span:nth-child(4) { width: 28%; height: 28%; opacity: 0.2; background: var(--found); }

@keyframes ping {
  from { transform: scale(0.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rings span { animation: none; }
}

.crumbs { font-size: var(--step--1); color: var(--muted); margin: 0 0 1rem; }
.crumbs a { color: var(--muted); }

h1 {
  font-size: var(--step-3);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 780;
  margin: 0 0 1rem;
  max-width: 14em;
  text-wrap: balance;
}

.lede { font-size: var(--step-1); line-height: 1.45; max-width: 30em; margin: 0 0 1.5rem; }

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  border-radius: 12px;
  background: #1565c0;
  color: var(--on-signal);
  font-weight: 700;
  text-decoration: none;
}
.cta:hover { background: #0d4f9e; color: var(--on-signal); }

.fine { font-size: var(--step--1); color: var(--muted); margin: 0.6rem 0 0; }

/* Content column */
.content { padding-bottom: 3rem; }
.content > section,
.content > nav { margin: 0 0 2.75rem; }

h2 {
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 740;
  margin: 0 0 0.75rem;
}
h3 { font-size: var(--step-0); line-height: 1.35; font-weight: 720; margin: 0 0 0.35rem; }
p { margin: 0 0 1rem; max-width: var(--measure); }

.answer {
  background: var(--surface);
  border-left: 5px solid var(--found);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.4rem 0.35rem;
}
.answer h2 { font-size: var(--step-1); }

/* Numbered steps: a real sequence, so numbers carry meaning */
.steps ol { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0.9rem 2.75rem;
  max-width: var(--measure);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--signal);
  color: var(--paper);
  font-weight: 750;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}
.source { font-size: var(--step--1); color: var(--muted); }

/* Hub on the home page */
.hub ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--mist); }
.hub li { border-bottom: 1px solid var(--mist); padding: 0.95rem 0; display: grid; gap: 0.15rem; }
.hub li a { font-weight: 720; font-size: var(--step-1); }
.hub li span { color: var(--muted); }

/* PodSpot section with the app's own screens */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; max-width: 30rem; }
.shot { margin: 0; }
.shot img { border-radius: 20px; border: 1px solid var(--mist); }
.shot figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; line-height: 1.4; }

/* Checklist bullets echo the rings */
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 0 0 0.55rem 1.75rem; max-width: var(--measure); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.42em;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 2px solid var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 18%, transparent);
}

.faq .qa { padding: 1rem 0; border-top: 1px solid var(--mist); }
.faq .qa p { margin: 0; }

.related ul { padding-left: 1.2rem; margin: 0; }
.related li { margin-bottom: 0.4rem; }

.missing { padding-top: 3rem; }

/* Footer */
.bottom { border-top: 1px solid var(--mist); padding: 2rem 0 2.5rem; font-size: var(--step--1); color: var(--muted); }
.bottom .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.bottom .links a { color: var(--muted); }
.disclaimer { max-width: 40rem; }

@media (min-width: 52rem) {
  .hero { padding: 4rem 0 3.25rem; }
  .rings { right: -8rem; top: -10rem; }
}
