:root {
  color-scheme: dark;
  --background: #080f1e;
  --panel: #101b2d;
  --text: #f0f5ff;
  --muted: #abb9d0;
  --accent: #78caff;
  --line: #263650;
}

*, *::before, *::after { box-sizing: border-box; }

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  min-block-size: 100vh;
  min-block-size: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 94% 0%, #122547, transparent 58%), var(--background);
  color: var(--text);
  font-family: "Aptos", "Inter", system-ui, sans-serif;
  line-height: 1.55;
}

h1, p, blockquote, dl, dd { margin: 0; }
a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}

.shell { width: min(72rem, calc(100% - 2 * clamp(1.125rem, 5vw, 4rem))); margin-inline: auto; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}

.site-header { min-height: clamp(2.5rem, 8svh, 5.125rem); border-bottom: 1px solid var(--line); }
.wordmark, h1 { font-family: Arial, Helvetica, sans-serif; }
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .2rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.08em;
  text-decoration: none;
}
.wordmark span { width: .28rem; height: .28rem; background: var(--accent); border-radius: 50%; }
.header-link { color: var(--muted); font-size: .875rem; text-decoration: none; transition: color .2s; }
.header-link:hover { color: var(--accent); }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(.625rem, 4svh, 4rem);
}
.hero {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  align-items: stretch;
  gap: clamp(1.5rem, 6vw, 5.5rem);
}
.hero-copy { align-self: center; }
h1 {
  width: fit-content;
  font-size: clamp(3.6rem, min(11.7vw, 18.9svh), 11.025rem);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.11em;
}
h1 span { color: var(--accent); margin-inline-start: .025em; }
.tagline {
  margin-block-start: clamp(.45rem, 1.7svh, 1rem);
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(.95rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: .025em;
}
blockquote {
  max-width: 28rem;
  margin-block-start: clamp(.75rem, 4svh, 3.5rem);
  padding-inline-start: clamp(1rem, 2.4vw, 1.5rem);
  border-inline-start: 2px solid var(--accent);
  font-size: clamp(.954rem, 1.62vw, 1.2375rem);
  color: var(--muted);
}
blockquote strong { color: var(--text); font-weight: 650; }

.hero-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: clamp(10rem, 46svh, 28rem);
  padding: clamp(1rem, 3svh, 3rem);
  border: 1px solid #35517d;
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse at 65% 70%, #2465a454, transparent 61%),
    radial-gradient(ellipse at 15% 2%, #2d5b8f60, transparent 60%),
    linear-gradient(#96caff12 1px, transparent 1px) center / 2rem 2rem,
    linear-gradient(90deg, #96caff12 1px, transparent 1px) center / 2rem 2rem,
    #0e1c34;
  box-shadow: inset 0 1px #a5cfff1f, 0 1.25rem 4rem #03081040;
}

.compass {
  position: relative;
  width: min(100%, 34svh, 17rem);
  aspect-ratio: 1;
  border: 1px solid #9bcfff67;
  border-radius: 50%;
  box-shadow: 0 0 0 1rem #83c6ff0a, 0 0 0 1.06rem #83c6ff20, inset 0 0 2.25rem #72a8e51a;
}
.compass-ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: repeating-conic-gradient(#a8d1ff87 0deg .75deg, transparent .75deg 7.5deg);
  mask: radial-gradient(transparent 65%, #000 66% 70%, transparent 71%);
  animation: compass-ring-sway 18s ease-in-out infinite alternate;
}
@keyframes compass-ring-sway {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}
.compass::before, .compass::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: 1px solid #92bfff42;
  border-radius: 50%;
}
.compass::after { inset: 29%; border-color: #92bfff2c; }
.bearing {
  position: absolute;
  color: #b5d0ef;
  font-family: ui-monospace, monospace;
  font-size: .875rem;
  line-height: 1;
}
.north { top: 3.5%; left: 50%; translate: -50% 0; color: #e2f2ff; }
.east { right: 4.5%; top: 50%; translate: 0 -50%; }
.south { bottom: 3.5%; left: 50%; translate: -50% 0; }
.west { left: 4.5%; top: 50%; translate: 0 -50%; }
.needle {
  position: absolute;
  inset: 21% 43%;
  rotate: 37deg;
  filter: drop-shadow(0 0 .875rem #64c3ff70);
  animation: drift 7s ease-in-out infinite;
  transition: filter .45s ease, scale .45s ease;
}
@media (hover: hover) {
  .hero-art:hover .needle {
    filter: hue-rotate(58deg) saturate(1.65) brightness(1.24) drop-shadow(0 0 1rem #a290ff);
    scale: 1.08;
  }
}
.needle::before, .needle::after { content: ""; position: absolute; inset: 0; }
.needle::before {
  clip-path: polygon(50% 0, 100% 50%, 50% 58%, 0 50%);
  background: linear-gradient(90deg, #c9eeff 50%, #72c9ff 50%);
}
.needle::after {
  clip-path: polygon(0 50%, 50% 42%, 100% 50%, 50% 100%);
  background: linear-gradient(90deg, #4d86c7 50%, #244e85 50%);
}
.pivot {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 5%;
  aspect-ratio: 1;
  border: 2px solid #c7e8ff;
  border-radius: 50%;
  background: #183459;
}
@keyframes drift {
  0%, 100% { rotate: 37deg; }
  50% { rotate: 32deg; }
}

.elapsed {
  display: grid;
  grid-template-columns: minmax(14rem, .8fr) minmax(0, 1.35fr);
  align-items: center;
  gap: .625rem clamp(.875rem, 4vw, 3rem);
  margin-block-start: clamp(.625rem, 4svh, 3rem);
  padding: clamp(.625rem, 2.9svh, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(115deg, #142238, var(--panel));
}
.start-date { color: var(--accent); font-size: .875rem; font-weight: 650; }
.timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.375rem, 1.5vw, .75rem); }
.timer-unit {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .35rem;
  min-height: clamp(3rem, 10svh, 5.375rem);
  padding: .375rem .125rem;
  border: 1px solid #2b3c58;
  border-radius: .75rem;
  background: #0b1425;
}
.timer-unit dt { grid-row: 2; color: var(--muted); font-size: .875rem; }
.timer-unit dd {
  grid-row: 1;
  font-family: ui-monospace, "Consolas", monospace;
  font-size: clamp(1.25rem, 3.1vw, 2.375rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.05em;
}
.site-footer { min-height: clamp(2rem, 6svh, 4.25rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

@media (max-width: 50rem) {
  .elapsed { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) and (orientation: portrait) {
  main { padding-block: clamp(.625rem, 2svh, 1.5rem); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: clamp(.625rem, 2svh, 1.5rem); }
  .hero-art { min-height: 0; padding: 1rem; }
  .compass { width: min(100%, 20svh, 12.5rem); }
  blockquote { margin-block-start: clamp(.625rem, 2svh, 1.5rem); line-height: 1.35; }
  .elapsed { margin-block-start: clamp(.625rem, 2svh, 1.5rem); padding: .75rem; }
  .timer-unit { min-height: clamp(3rem, 8svh, 4.5rem); }
}
@media (max-width: 23rem) {
  .shell { width: calc(100% - 1.5rem); }
  blockquote { font-size: .9rem; }
  .timer-unit dt { font-size: .75rem; }
}
@media (max-height: 31rem) and (orientation: landscape) {
  .site-header { min-height: 2.25rem; }
  .site-footer { min-height: 1.75rem; }
  main { padding-block: .375rem; }
  .hero { gap: 1rem; }
  h1 { font-size: clamp(2.475rem, 13.5svh, 4.5rem); }
  blockquote { margin-block-start: .625rem; font-size: .9rem; line-height: 1.3; }
  .hero-art { min-height: 0; }
  .elapsed {
    grid-template-columns: minmax(11.5rem, .8fr) minmax(0, 1.2fr);
    column-gap: .625rem;
    margin-block-start: .5rem;
  }
  .timer-unit { gap: .2rem; }
  .timer-unit dd { font-size: clamp(1rem, 6svh, 1.75rem); }
  .timer-unit dt { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
