@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/BarlowSemiCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/BarlowSemiCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/BarlowSemiCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

.landing-page {
  --bunker: #222935;
  --rule: #596477;
  --oxide: #633740;
  --gold: #efa8a4;
  --ochre: #dda09b;
  --white: #eff1f2;
  --muted: #bec7d3;
  --well: #252e3a;
  --control-bg: #364154;
  --corner: 3px;
  --display: "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --reader-font: var(--display);
  --draft-grid: repeating-linear-gradient(0deg, transparent 0 23px, #c1cada13 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, #c1cada13 23px 24px);
  display: block;
  background: var(--bunker);
  color: var(--white);
  font: 1rem/1.55 var(--reader-font);
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
}

.landing-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #101a20 url("/assets/atomic-crt-poster.webp") center / cover no-repeat;
}

.landing-backdrop__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-backdrop::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(7 15 18 / .44), rgb(7 15 18 / .18) 48%, rgb(7 15 18 / .58));
  content: "";
}

.landing-mirrors {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  column-gap: .85rem;
  margin-block: .5rem 0;
  padding-inline: clamp(.65rem, 2vw, 1.1rem);
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  background: var(--well);
  font: .875rem/1.4 var(--reader-font);
}

.landing-mirrors__item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 36px;
  padding-block: .18rem;
  color: var(--white);
}

.landing-mirrors__item .atomic-icon { flex-shrink: 0; color: var(--gold); }
.landing-mirrors__status { margin-inline-start: .35rem; color: var(--muted); }
.landing-mirrors a { color: var(--gold); text-underline-offset: .22em; }

.landing-main {
  display: grid;
  justify-items: center;
  gap: clamp(.75rem, 2vh, 1.4rem);
  padding-block: clamp(1.25rem, 4vh, 2.5rem) 1.5rem;
  text-align: center;
}

.landing-main h1 {
  margin: 0;
  color: var(--white);
  font: 650 clamp(2rem, 6vw, 3.6rem)/1.1 var(--display);
  letter-spacing: .055em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #080d12;
}

.landing-instrument {
  display: grid;
  justify-items: center;
  gap: .65rem;
  width: min(100%, max(24rem, calc(100svh - 18rem)), 38rem);
}

.landing-trefoil {
  width: 100%;
}

.trefoil {
  display: block;
  width: 100%;
  height: auto;
}

.trefoil__dial {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.5;
  pointer-events: none;
}

.trefoil__plate {
  fill: rgb(40 92 79 / .42);
  stroke: #a2c7b8;
  stroke-width: 10;
}

.trefoil__rim {
  stroke: #79a697;
  stroke-width: 2;
}

.trefoil__target {
  fill: #423745;
  stroke: var(--ochre);
  stroke-width: 2.5;
}

.trefoil__link--hub .trefoil__target {
  fill: #553945;
  stroke: var(--gold);
}

.trefoil__link--resist .trefoil__target { fill: #3f394a; }

.trefoil__reserved {
  fill: none;
  stroke: var(--rule);
  stroke-width: 2;
  stroke-dasharray: 7 6;
  pointer-events: none;
}

.trefoil__link { cursor: pointer; }

.trefoil__link text {
  fill: var(--white);
  font: 625 29px var(--display);
  pointer-events: none;
}

.trefoil__icon {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  pointer-events: none;
}

.trefoil__link:is(:hover, :focus-visible) .trefoil__target {
  fill: var(--oxide);
  stroke: var(--white);
  stroke-width: 4;
}

.trefoil__link:focus-visible { outline: none; }

.landing-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.landing-control {
  min-height: 44px;
  padding: .35rem .8rem;
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  background: var(--well);
  color: var(--white);
  font: .875rem/1.3 var(--reader-font);
  cursor: pointer;
}

.landing-control:hover { background: var(--control-bg); }
.landing-control:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.trefoil__rotor { transform-origin: 300px 300px; }
.trefoil__label { transform-origin: 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .landing-page[data-trefoil-motion] .trefoil__rotor { animation: trefoil-turn 36s linear infinite; }
  .landing-page[data-trefoil-motion] .trefoil__label { animation: trefoil-turn 36s linear infinite reverse; }
  .landing-page[data-trefoil-motion="paused"] :is(.trefoil__rotor, .trefoil__label),
  .landing-trefoil:focus-within :is(.trefoil__rotor, .trefoil__label) {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .landing-trefoil:hover :is(.trefoil__rotor, .trefoil__label) { animation-play-state: paused; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-motion { display: none; }
}

@keyframes trefoil-turn { to { transform: rotate(1turn); } }

.landing-page::after { content: none; }

.landing-page .frame {
  width: min(92rem, calc(100% - clamp(1.75rem, 4vw, 4rem)));
  margin-inline: auto;
}

.landing-page .ownership-notice {
  padding-block: .4rem;
  background: #262c39;
}

.landing-page .ownership-notice__link {
  padding: .42rem clamp(.65rem, 2vw, 1.1rem);
  border: 1px solid var(--ochre);
  border-inline-start-width: 3px;
  background: #412d35;
  box-shadow: none;
  font: inherit;
}

.landing-page .ownership-notice__link::before {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgb(239 168 164 / 32%);
}

.landing-page .ownership-notice__link strong {
  font: 620 clamp(1.08rem, 1.5vw, 1.5rem)/1.15 var(--display);
}

.landing-page :is(.ownership-notice__mark, .ownership-notice__arrow) { color: var(--gold); }

.landing-page .ownership-notice__link:is(:hover, :focus-visible) {
  background: var(--gold);
  color: var(--bunker);
}

.landing-page .ownership-notice__link:is(:hover, :focus-visible) svg { color: inherit; }

.landing-mirrors .atomic-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
