:root {
  --espresso: #090403;
  --deep-roast: #160a06;
  --amber: #c86a1a;
  --copper: #9f4510;
  --ivory: #f4ebdd;
  --sand: #cbbba6;
  --muted: #9f8d79;
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--espresso);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--espresso);
  color: var(--ivory);
  font-family: var(--ui);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--amber);
  color: var(--espresso);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ivory);
  color: var(--espresso);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #050201;
}

.hero__visual,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__visual {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  animation: slow-breathe 14s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 2, 1, 0.7) 0%, rgba(6, 2, 1, 0.02) 32%, rgba(6, 2, 1, 0.16) 52%, rgba(6, 2, 1, 0.96) 100%),
    linear-gradient(90deg, rgba(6, 2, 1, 0.72) 0%, transparent 54%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem clamp(1.5rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(244, 235, 221, 0.18);
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: reveal 620ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-header__category,
.site-header__status {
  margin: 0;
}

.site-header__status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-header__status span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(200, 106, 26, 0.16);
  animation: pulse 2.8s ease-in-out infinite;
}

.hero__content {
  position: absolute;
  left: clamp(1.5rem, 6.5vw, 7rem);
  right: clamp(1.5rem, 6.5vw, 7rem);
  bottom: clamp(3.5rem, 7vh, 6.5rem);
  max-width: 50rem;
}

.eyebrow,
.section-index {
  margin: 0 0 1.2rem;
  color: var(--sand);
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__content .eyebrow {
  animation: reveal 620ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  max-width: 49rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6.2vw, 6.75rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
  animation: reveal 720ms 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 em,
.manifesto h2 em {
  color: var(--sand);
  font-weight: 400;
}

.hero__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 48rem;
  margin-top: 1.8rem;
  color: var(--sand);
  animation: reveal 620ms 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__footer p {
  max-width: 24rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(244, 235, 221, 0.55);
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.hero__index {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4.5rem);
  bottom: 2.15rem;
  margin: 0;
  color: rgba(244, 235, 221, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(13rem, 0.72fr) minmax(0, 1.7fr);
  gap: clamp(4rem, 10vw, 10rem);
  padding: clamp(6rem, 12vw, 11rem) clamp(1.5rem, 7vw, 8rem);
  background:
    radial-gradient(circle at 92% 8%, rgba(168, 77, 18, 0.2), transparent 32rem),
    var(--espresso);
}

.manifesto__aside {
  position: sticky;
  top: 3rem;
  align-self: start;
}

.manifesto__rule {
  width: 100%;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, var(--amber), rgba(200, 106, 26, 0.08));
}

.manifesto__note {
  max-width: 14rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.08rem;
  line-height: 1.4;
}

.manifesto__copy {
  max-width: 54rem;
}

.manifesto h2 {
  margin: 0 0 clamp(4rem, 8vw, 7rem);
  font-family: var(--display);
  font-size: clamp(3.2rem, 6.7vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.manifesto__copy > p {
  max-width: 42rem;
  margin: 0 0 3.6rem;
  color: var(--sand);
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.65vw, 2.55rem);
  line-height: 1.24;
  letter-spacing: -0.022em;
}

.manifesto__cadence span {
  display: block;
}

.manifesto__cadence--soft {
  color: var(--muted) !important;
}

.manifesto blockquote {
  position: relative;
  margin: clamp(6rem, 12vw, 11rem) 0 0;
  padding: clamp(2.5rem, 6vw, 5rem) 0 0;
  border-top: 1px solid rgba(244, 235, 221, 0.22);
  font-family: var(--display);
}

.manifesto blockquote::before {
  content: "";
  position: absolute;
  top: -0.35rem;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--amber);
}

.manifesto blockquote span,
.manifesto blockquote strong {
  display: block;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.manifesto blockquote span {
  color: var(--muted);
  font-size: clamp(2rem, 4vw, 4.5rem);
}

.manifesto blockquote strong {
  max-width: 48rem;
  margin-top: 0.45rem;
  color: var(--ivory);
  font-size: clamp(3rem, 7.2vw, 7.5rem);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 4vw, 4.5rem);
  border-top: 1px solid rgba(244, 235, 221, 0.16);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ivory);
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}

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

@keyframes slow-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
    background:
      radial-gradient(circle at 62% 31%, rgba(133, 55, 12, 0.22), transparent 17rem),
      #050201;
  }

  .hero__visual {
    inset: auto;
    top: 3.55rem;
    left: 0;
    width: 100%;
    height: clamp(18rem, 84vw, 22rem);
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: none;
    animation: none;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(5, 2, 1, 0.58) 0%, rgba(5, 2, 1, 0.02) 15%, rgba(5, 2, 1, 0.08) 42%, rgba(5, 2, 1, 0.94) 58%, #050201 72%),
      linear-gradient(90deg, rgba(5, 2, 1, 0.16), rgba(5, 2, 1, 0.16));
  }

  .site-header {
    padding: 1.3rem 1.25rem;
    font-size: 0.62rem;
  }

  .hero__content {
    left: 1.25rem;
    right: 1.25rem;
    bottom: clamp(2.25rem, 5.5vh, 3.2rem);
  }

  .hero h1 {
    max-width: 22rem;
    font-size: clamp(2.8rem, 12vw, 3.65rem);
    line-height: 0.94;
  }

  .hero__footer {
    display: block;
    margin-top: 1.4rem;
  }

  .hero__footer p {
    margin-bottom: 1.5rem;
  }

  .hero__index {
    display: none;
  }

  .manifesto {
    display: block;
    padding: 6rem 1.25rem 7rem;
  }

  .manifesto__aside {
    position: static;
    margin-bottom: 4rem;
  }

  .manifesto__note {
    max-width: none;
  }

  .manifesto h2 {
    margin-bottom: 4.5rem;
  }

  .manifesto__copy > p {
    margin-bottom: 2.8rem;
  }

  .manifesto blockquote {
    margin-top: 6rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 760px) and (max-height: 720px) {
  .hero__visual {
    top: 3.55rem;
    width: 100%;
    height: clamp(14rem, 64vw, 16rem);
  }

  .hero h1 {
    font-size: clamp(2.65rem, 11vw, 3.2rem);
  }

  .hero__footer p {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
