/* -------------------------------------------------------------------------
   /lore — the mascot's voice, with the original tweet as its centrepiece.
   Shared tokens and bundled fonts come from styles.css. Mobile first.
   ---------------------------------------------------------------------- */


.nav__link[aria-current="page"] {
  border-bottom-color: var(--primary);
}

.footer {
  flex-wrap: wrap;
}

/* ---- opening spread ---- */

.lore-hero {
  display: grid;
  align-items: center;
  min-height: calc(100svh - 5rem);
  max-width: 90rem;
  margin-inline: auto;
  padding: 3rem 1.25rem 2.5rem;
  gap: 2rem;
}

.lore-hero__title {
  position: relative;
  z-index: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7.5vw, 6.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.lore-hero__title span {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.55em;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.lore-hero__title strong {
  color: var(--primary);
  font-weight: inherit;
  -webkit-text-stroke: 1px var(--foreground);
}

.lore-hero__art {
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
}

/* The hardener under the thesis. It lives inside the h1 so it cannot become a
   third grid child of .lore-hero and break the two-column hero at 64rem. */
.lore-hero__hard {
  display: block;
  margin-top: 1.25rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  font-style: normal;
  letter-spacing: 0.02em;
}

.lore-hero__art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6% 0 8%;
  border: 2px solid var(--edge);
  border-radius: 50%;
  transform: rotate(-12deg);
  background-image: radial-gradient(var(--foreground) 1px, transparent 1.5px);
  background-size: 9px 9px;
}

.lore-hero__mascot {
  width: 100%;
  height: auto;
}

/* ---- dialogue: quiet setup, loud payoff ---- */

.lore-voice,
.lore-evidence__inner,
.lore-faith__inner,
.lore-close {
  max-width: 82rem;
  margin-inline: auto;
  padding: 3rem 1.25rem;
}

.lore-copy {
  min-width: 0;
  max-width: 42ch;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.lore-heading {
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lore-voice {
  border-top: 3px solid var(--edge);
}

.lore-voice__intro {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.lore-voice__punch {
  margin-block: 2.5rem;
  padding: 1.25rem;
  border: 3px solid var(--edge);
  background: var(--primary);
  box-shadow: 6px 6px 0 var(--shadow);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lore-voice__punch strong {
  font-weight: inherit;
}

.lore-voice__bridge {
  margin-left: auto;
}

/* ---- evidence: constrain the host, leave the upgraded embed alone ---- */

.lore-evidence {
  border-block: 3px solid var(--edge);
  background-image: radial-gradient(var(--foreground) 0.65px, transparent 1px);
  background-size: 12px 12px;
}

.lore-evidence__inner {
  display: grid;
  align-items: center;
  gap: 2rem;
  padding-block: 4rem;
}

.lore-evidence__inner > .lore-copy {
  padding: 1rem 0;
  background: var(--background);
}

.lore-evidence__tweet {
  min-width: 0;
  width: 100%;
  max-width: 550px;
  margin-inline: auto;
}

/* The date's stretched link covers the fallback without JavaScript or nested
   anchors. Every selector targets the blockquote, never the injected iframe. */
blockquote.twitter-tweet {
  position: relative;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 3px solid var(--edge);
  background: var(--background);
  box-shadow: 7px 7px 0 var(--shadow);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}

blockquote.twitter-tweet p {
  margin-bottom: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

blockquote.twitter-tweet a {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  text-underline-offset: 0.2em;
}

blockquote.twitter-tweet a::after {
  content: "";
  position: absolute;
  inset: 0;
}

blockquote.twitter-tweet:hover,
blockquote.twitter-tweet:focus-within {
  box-shadow: 7px 7px 0 var(--primary);
}

blockquote.twitter-tweet:focus-within {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ---- conviction and closing line ---- */

.lore-faith {
  border-bottom: 3px solid var(--edge);
  background: var(--primary);
}

.lore-faith__inner {
  display: grid;
  gap: 2rem;
}

.lore-faith__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.lore-faith__last {
  margin-left: auto;
}

.lore-close {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding-block: 4rem;
  text-align: center;
}

/* Barlow's Latin subset has no U+20BF, so a literal Bitcoin sign drops to
   whatever system font happens to have one and renders at the wrong weight
   and width in the middle of a Barlow sentence. Use the brand's own mark from
   the sprite instead: deterministic, and on-brand. */
.lore-btc {
  width: 0.95em;
  height: 0.95em;
  vertical-align: -0.16em;
  /* The sprite symbol is stroke-based with stroke="currentColor" and
     fill="none", so colour comes from `color`, never `fill`. */
  color: var(--primary);
}

.lore-close__mark {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.6rem;
  border: 2px solid var(--edge);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 3px 3px 0 var(--shadow);
}

@media (min-width: 40rem) {
  .lore-hero,
  .lore-voice,
  .lore-evidence__inner,
  .lore-faith__inner,
  .lore-close {
    padding-inline: 2rem;
  }

  .lore-voice__punch {
    padding: 2rem;
  }
}

@media (min-width: 48rem) {
  .lore-voice__intro,
  .lore-evidence__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 3rem;
  }

  .lore-faith__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 4rem;
  }

  .lore-faith__inner > .lore-copy:first-child {
    grid-column: 1 / -1;
    max-width: 56ch;
  }
}

@media (min-width: 64rem) {
  .lore-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    min-height: clamp(40rem, calc(100svh - 5rem), 56rem);
    padding: 3rem;
    gap: 0;
  }

  .lore-hero__art {
    width: 108%;
    max-width: none;
    margin-left: -8%;
  }

  .lore-voice,
  .lore-evidence__inner,
  .lore-faith__inner,
  .lore-close {
    padding: 5rem 3rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lore-hero__mascot {
    animation: lore-float 7s ease-in-out infinite;
  }

  @keyframes lore-float {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-6px);
    }
  }
}
