:root {
  --bg: #000000;
  --accent: #ea3323;
  --accent-60: rgba(234, 51, 35, 0.6);
}

* {
  box-sizing: border-box;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
}

body {
  background: var(--bg);
  color: var(--accent);
  font-family: "Elstob", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.intro-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 64px));
  text-align: center;
}

.intro-kicker {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--accent-60);
}

.rule-line {
  width: 0;
  height: 1px;
  background: var(--accent-60);
  margin: 6px auto 0;
}

.rule-line.in {
  animation: draw-rule 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-copy {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--accent);
  min-height: 32px;
}

.intro-copy .char {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.intro-copy .char.visible {
  opacity: 1;
}

.intro-meta {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  font-style: italic;
  font-weight: 600;
  color: var(--accent-60);
}

.footer-nav {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 36px;
}

.footer-link {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--accent-60);
  text-decoration: none;
}

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

@media (max-width: 700px) {
  .intro-block {
    width: calc(100vw - 40px);
    top: 44%;
  }

  .intro-kicker {
    font-size: 14px;
    line-height: 20px;
  }

  .intro-copy {
    font-size: 20px;
    line-height: 28px;
    min-height: 28px;
    text-wrap: balance;
  }

  .intro-copy .responsive-break {
    display: none;
  }

  .intro-meta {
    font-size: 14px;
    line-height: 20px;
  }

  .footer-nav {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
    gap: 24px;
  }

  .footer-link {
    font-size: 15px;
    line-height: 22px;
  }
}

@media (max-width: 420px) {
  .intro-block {
    width: calc(100vw - 32px);
    top: 43%;
  }

  .intro-copy {
    font-size: 18px;
    line-height: 26px;
    min-height: 26px;
  }

  .footer-nav {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 44px);
    gap: 18px;
  }
}

/* --- Reveal animation --- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.in {
  animation: fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw-rule {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .rule-line {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .rule-line {
    width: 60px;
  }
  .intro-copy .char {
    opacity: 1;
    transition: none;
  }
}
