/* Styling for the crawlable pages: the copy under the map and every generated
   blog page. Deliberately standalone, because blog pages ship no JavaScript, so they
   cannot rely on the app bundle for tokens or fonts. */

@font-face {
  font-family: "Nunito Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

.prose,
.site-footer,
.content-page {
  --ink-1: #e7e7d6;
  --ink-2: rgba(231, 231, 214, 0.76);
  --ink-3: rgba(231, 231, 214, 0.54);
  --surface-0: #131312;
  --surface-1: #1e1e1d;
  --surface-2: #262624;
  --line-1: rgba(174, 172, 146, 0.17);
  --accent: #ff5800;
  --gold: #ffc76b;
  --font-display: "Nunito Variable", ui-rounded, system-ui, sans-serif;
  --font-body: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---- Shared blocks ---------------------------------------------------- */

.prose,
.content-page {
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}

.prose h1,
.prose h2,
.prose h3,
.content-page h1,
.content-page h2,
.content-page h3 {
  margin: 0;
  color: var(--ink-1);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.prose h1,
.content-page h1 {
  font-size: clamp(30px, 4.4vw, 44px);
}

.prose h2,
.content-page h2 {
  font-size: clamp(22px, 2.6vw, 27px);
}

.prose h3,
.content-page h3 {
  font-size: 19px;
}

.prose p,
.prose ul,
.prose ol,
.content-page p,
.content-page ul,
.content-page ol {
  margin: 0;
}

.prose ul,
.prose ol,
.content-page ul,
.content-page ol {
  padding-left: 22px;
}

.prose li + li,
.content-page li + li {
  margin-top: 7px;
}

.prose a,
.content-page a,
.site-footer a {
  color: var(--ink-1);
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover,
.content-page a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.prose strong,
.content-page strong {
  color: var(--ink-1);
  font-weight: 700;
}

.prose blockquote,
.content-page blockquote {
  margin: 0;
  padding: 14px 18px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 0 12px 12px 0;
  background: rgba(231, 231, 214, 0.045);
  color: var(--ink-2);
  font-style: normal;
}

.prose code,
.content-page code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(231, 231, 214, 0.08);
  font-size: 0.9em;
}

/* ---- The copy under the map ------------------------------------------ */

.prose {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 46px;
  /* Top padding clears the fixed app header, which floats over this copy. */
  padding: 108px 24px 8px;
  scroll-margin-top: 0;
  background: var(--surface-0);
  border-top: 1px solid var(--line-1);
}

/* The app sets this once it mounts. Only the map screen keeps the landing copy
   below it; on the inner pages it would read as a stray marketing block. */
body[data-app-page]:not([data-app-page="map"]) .prose,
body[data-app-page]:not([data-app-page="map"]) .site-footer {
  display: none;
}

.prose > * {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.prose section {
  display: grid;
  gap: 14px;
}

.prose__lede {
  display: grid;
  gap: 16px;
  text-align: center;
}

.prose__lede p {
  color: var(--ink-2);
  font-size: 19px;
}

.prose__cta {
  justify-self: center;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0a00;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.prose__cta:hover {
  color: #1a0a00;
  filter: brightness(1.06);
}

/* Numbered walkthrough: the steps carry the "how to" query, so they get to
   look like a list of moves rather than a paragraph. */
.prose ol.steps {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.prose ol.steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: baseline;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--line-1);
  border-radius: 12px;
  background: var(--surface-1);
  counter-increment: step;
}

.prose ol.steps li::before {
  content: counter(step);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.feature-grid li {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line-1);
  border-radius: 14px;
  background: var(--surface-1);
}

.feature-grid strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 16px;
}

.feature-grid span {
  color: var(--ink-3);
  font-size: 15px;
}

/* ---- Footer ---------------------------------------------------------- */

.site-footer {
  display: grid;
  gap: 18px;
  padding: 54px 24px 40px;
  background: var(--surface-0);
  color: var(--ink-3);
  font-family: var(--font-body);
  font-size: 15px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: center;
}

.site-footer small {
  color: rgba(231, 231, 214, 0.36);
  font-size: 14px;
}

/* ---- Generated pages: blog index and posts --------------------------- */

body.content-body {
  margin: 0;
  background: var(--surface-0, #131312);
}

.content-page {
  display: grid;
  gap: 34px;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: 34px 24px 0;
}

.content-page__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-1);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  justify-self: start;
}

.content-page__brand span[aria-hidden] {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
  background: var(--accent);
  color: #1a0a00;
  font-size: 15px;
}

.content-page article,
.content-page__intro {
  display: grid;
  gap: 16px;
}

.content-page__meta {
  color: var(--ink-3);
  font-size: 14px;
}

.content-page article > h2 {
  margin-top: 18px;
}

.post-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.post-list li {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--line-1);
  border-radius: 16px;
  background: var(--surface-1);
}

.post-list h2 {
  font-size: 21px;
}

.post-list a {
  text-decoration: none;
}

.post-list p {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 16px;
}

.post-cta {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 16px;
  background: rgba(255, 88, 0, 0.07);
  text-align: center;
}

.post-cta h2 {
  font-size: 20px;
}

.post-cta a {
  justify-self: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0a00;
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
}

.post-cta a:hover {
  color: #1a0a00;
  filter: brightness(1.06);
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(174, 172, 146, 0.12), transparent 42%),
    #131312;
  color: #e7e7d6;
  transition: opacity 0.35s ease;
}

.boot-screen[hidden],
.boot-screen.is-done {
  opacity: 0;
  pointer-events: none;
}

.boot-screen__card {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.boot-screen__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 58px;
  margin-bottom: 4px;
  clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
  color: #1a0a00;
  background: linear-gradient(160deg, #ff8a4a, #ff5800 72%);
  font-family: "Nunito Variable", ui-rounded, system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  animation: boot-pulse 1.1s ease-in-out infinite;
}

.boot-screen strong {
  font-family: "Nunito Variable", ui-rounded, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.boot-screen__card > span:last-child {
  color: rgba(231, 231, 214, 0.54);
  font-family: "Inter Variable", system-ui, sans-serif;
  font-size: 14px;
}

@keyframes boot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.94); opacity: 0.72; }
}

@media (max-width: 620px) {
  .prose {
    gap: 38px;
    padding-top: 56px;
  }

  .prose,
  .content-page {
    font-size: 16px;
  }
}
