:root {
  color-scheme: light;
  --paper: #ebe7dd;
  --ink: #14130f;
  --muted: #6c685e;
  --line: rgba(20, 19, 15, 0.2);
  --signal: #e84a2a;
  --serif: "Iowan Old Style", "Baskerville", "Noto Serif SC", "Songti SC", serif;
  --sans: "Avenir Next", "Futura", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100svh;
  margin: 0;
  padding: 28px clamp(22px, 4vw, 64px) 24px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.68), transparent 24rem),
    linear-gradient(125deg, rgba(255, 255, 255, 0.14), transparent 42%);
  font-family: var(--sans);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

a {
  color: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.23;
  mix-blend-mode: multiply;
  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='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.masthead,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.masthead {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.wordmark span {
  color: var(--signal);
}

.status,
.eyebrow,
.label,
.note,
footer {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(232, 74, 42, 0.12);
  animation: pulse 2.6s ease-in-out infinite;
}

main {
  align-self: center;
  width: 100%;
  max-width: 1440px;
  margin: clamp(56px, 8vh, 110px) auto;
}

.hero {
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 clamp(34px, 5vw, 74px);
  color: var(--muted);
}

.eyebrow span {
  margin-inline: 0.5em;
  color: var(--signal);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.7fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: center;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 7.4vw, 8.6rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.07em;
}

h1 span {
  display: block;
  opacity: 0;
  transform: translateY(0.35em);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

h1 span:nth-child(2) {
  margin-left: clamp(20px, 7vw, 120px);
  animation-delay: 0.11s;
}

h1 span:nth-child(3) {
  animation-delay: 0.22s;
}

h1 .accent {
  color: var(--signal);
  font-style: italic;
}

.lede {
  max-width: 37rem;
  margin: clamp(34px, 5vw, 64px) 0 clamp(44px, 6vw, 86px);
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.8;
}

.lede strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.86em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mark {
  position: relative;
  width: min(32vw, 390px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  inset: 5%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
}

.orbit-one {
  animation: orbit 18s linear infinite;
}

.orbit-two {
  inset: 18%;
  border-style: dashed;
  animation: orbit 24s linear infinite reverse;
}

.monogram {
  width: 48%;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.8;
  text-align: center;
  transform: rotate(-5deg);
}

.monogram span:nth-child(2),
.monogram span:nth-child(3) {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

.coordinate {
  position: absolute;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
}

.coordinate-top {
  top: 0;
  right: 12%;
}

.coordinate-bottom {
  bottom: 0;
  left: 12%;
}

.ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ledger-row {
  min-height: 110px;
  padding: 24px 26px 20px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  border-right: 1px solid var(--line);
}

.ledger-row:not(:first-child) {
  padding-left: 26px;
}

.ledger-row:last-child {
  border-right: 0;
  padding-right: 0;
}

.label,
.note {
  color: var(--muted);
}

.value {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.note {
  grid-column: 2;
  grid-row: 1;
}

footer {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  margin: 0;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  body {
    padding: 20px 18px;
  }

  main {
    margin: 56px auto 42px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 5.7rem);
  }

  h1 span:nth-child(2) {
    margin-left: 7vw;
  }

  .mark {
    width: min(82vw, 350px);
    margin-bottom: 48px;
  }

  .ledger {
    grid-template-columns: 1fr;
  }

  .ledger-row,
  .ledger-row:not(:first-child) {
    min-height: 96px;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ledger-row:last-child {
    border-bottom: 0;
  }

  footer p:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
