@font-face {
  font-family: "Noto Serif SC";
  src: url("dial-serif.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Black";
  src: url("wordmark.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6eddf;
  --ink: #221e1a;
  --ivory: #fff5e4;
  --amber: #f4b168;
  --oxide: #a83d20;
  --hairline: #a79a87;
  --serif: "Noto Serif SC", "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
button { color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid var(--oxide); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: #f4b168; color: #231d17; }

.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.station {
  --mast-height: clamp(4.125rem, 5.32vw, 6.2rem);
  --deck-height: clamp(4.6rem, 6.05vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 124rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding-inline: clamp(.8rem, 1.56vw, 2rem);
}

.masthead, .brand, .utilities, .launch-status, .receiver, .readout, .instruments, .sound {
  display: flex;
  align-items: center;
}

.masthead {
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--mast-height);
  padding-inline: .35vw;
}
.brand { gap: clamp(.65rem, 1.15vw, 1.4rem); }
.brand-mark { width: clamp(2rem, 3.42vw, 4rem); height: auto; }
.wordmark {
  font: 400 clamp(1.55rem, 2.94vw, 3.4rem)/1 "Archivo Black", "Arial Black", var(--sans);
  letter-spacing: -.021em;
}
.station-name, .language, .launch-status, .call, .readout-label, .reply, .sound {
  font-family: var(--serif);
}
.station-name {
  margin-inline-start: .65vw;
  padding-inline-start: 1.75vw;
  border-inline-start: 1px solid currentColor;
  font-size: clamp(1.18rem, 2.12vw, 2.5rem);
  font-weight: 740;
  line-height: 1.14;
  white-space: nowrap;
}
.utilities { gap: clamp(.8rem, 1.9vw, 2.25rem); }
.launch-status {
  gap: .65em;
  font-size: clamp(.93rem, 1.38vw, 1.55rem);
  font-weight: 600;
  white-space: nowrap;
}
.launch-status i { width: .64em; height: .64em; border-radius: 50%; background: #ce7e19; }
.compact-status { display: none; }
.language {
  position: relative;
  padding: .4em .12em .4em clamp(.9rem, 1.9vw, 2.25rem);
  min-height: 44px;
  border: 0;
  background: none;
  font-size: clamp(1rem, 1.38vw, 1.55rem);
  font-weight: 650;
  line-height: 1;
}
.language::before {
  content: "";
  position: absolute;
  inset: 20% auto 20% 0;
  border-inline-start: 1px solid var(--hairline);
}

.plate {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(max(27.5rem, 33vw), calc(100vh - var(--mast-height) - var(--deck-height)), 53vw);
  min-height: clamp(max(27.5rem, 33vw), calc(100svh - var(--mast-height) - var(--deck-height)), 53vw);
  background: #161c2a;
  color: var(--ivory);
  overflow: hidden;
}
.viewfinder {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
}
.film {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  width: max(100%, 215.205cqh);
  aspect-ratio: 1840 / 855;
  transform: translate(-50%, -50%);
}
.landscape { display: block; width: 100%; height: auto; }
.message {
  width: max-content;
  max-width: 89%;
  margin-inline-start: 5.7%;
  padding-block: clamp(2.5rem, 4.25vw, 5rem);
  transform: translateY(-5%);
}
h1 {
  margin: 0;
  font: 660 clamp(3.65rem, 7.76vw, 9.15rem)/1.075 var(--serif);
  letter-spacing: -.045em;
}
h1 span, .introduction span { display: block; }
h1 span { white-space: nowrap; }
.introduction {
  margin: clamp(1.1rem, 1.75vw, 2rem) 0 0 .08em;
  font-size: clamp(1rem, 1.57vw, 1.8rem);
  line-height: 1.56;
  font-weight: 400;
  letter-spacing: .035em;
}
.call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-width: 8.9em;
  min-height: 46px;
  margin: clamp(1.45rem, 2.28vw, 2.9rem) 0 0 .08em;
  padding: .34em 1.03em .39em;
  border: 1px solid #ffc884;
  border-radius: 2px;
  background: var(--amber);
  color: #271b12;
  font-size: clamp(1.1rem, 1.9vw, 2.15rem);
  font-weight: 740;
  letter-spacing: .035em;
  line-height: 1.25;
  transition: background .18s, transform .18s;
}
.call:focus-visible { outline-color: var(--ivory); }
.call:active { transform: translateY(1px); }
.call[aria-disabled="true"] { cursor: progress; }
.radio-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  flex: none;
}
.radio-icon::before, .radio-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border: max(1.5px, .076em) solid currentColor;
  border-block-color: transparent;
  border-radius: 50%;
}
.radio-icon::after { inset: 20%; }
.radio-icon i { width: 18%; height: 18%; background: currentColor; border-radius: 50%; }

/* The emitter is pinned to the feed horn in each photographic composition. */
.signal, .echo-star { position: absolute; pointer-events: none; }
.signal { left: 67.8%; top: 14.4%; width: 0; height: 0; color: #ffe1a3; }
.signal i {
  position: absolute;
  width: clamp(8rem, 18vw, 20rem);
  aspect-ratio: 1;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.04);
}
.station[data-phase="calling"] .signal i { animation: transmit 1.25s ease-out both; }
.station[data-phase="calling"] .signal i:nth-child(2) { animation-delay: .22s; }
.station[data-phase="calling"] .signal i:nth-child(3) { animation-delay: .44s; }
@keyframes transmit {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.04); }
  10% { opacity: .9; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}
.echo-star {
  left: 55%;
  top: 11%;
  width: clamp(.85rem, 1.5vw, 1.7rem);
  aspect-ratio: 1;
  background: #fff4cf;
  clip-path: polygon(50% 0, 57% 42%, 100% 50%, 57% 57%, 50% 100%, 43% 58%, 0 50%, 43% 42%);
  opacity: 0;
}
.station[data-phase="echo"] .echo-star { animation: glint 2.2s ease-out both; }
@keyframes glint {
  0% { opacity: 0; transform: scale(.1); }
  20% { opacity: 1; transform: scale(1.15); }
  65% { opacity: .6; }
  100% { opacity: 0; transform: scale(.2); }
}

.receiver {
  gap: clamp(.9rem, 2.4vw, 2.75rem);
  min-height: var(--deck-height);
  font-size: clamp(.88rem, 1.25vw, 1.4rem);
}
.readout { flex: none; gap: clamp(.7rem, 1.5vw, 1.7rem); }
.trace { display: block; width: clamp(5rem, 16.5vw, 19rem); height: 2.35em; margin-inline-end: .9vw; }
.readout-label { font-weight: 580; white-space: nowrap; }
.reply {
  border-inline-start: 1px solid var(--hairline);
  padding-inline-start: clamp(.7rem, 1.5vw, 1.7rem);
  font-weight: 720;
  font-size: 1.15em;
  line-height: 1.35;
}
.station[data-phase="calling"] .reply, .station[data-phase="echo"] .reply { color: var(--oxide); }
.rule { height: 1px; min-width: .5rem; background: var(--hairline); flex: 1; }
.instruments { margin-inline-start: auto; gap: 1.9vw; flex: none; }
.sound {
  min-height: 44px;
  gap: .65em;
  border: 0;
  padding: .35em 0;
  background: none;
  font-weight: 600;
  white-space: nowrap;
}
.speaker-icon { position: relative; width: 1.65em; height: 1.5em; }
.speaker-icon i {
  position: absolute; inset: 16% 44% 16% 0; background: currentColor;
  clip-path: polygon(0 30%, 36% 30%, 100% 0, 100% 100%, 36% 70%, 0 70%);
}
.speaker-icon::after, .speaker-icon::before {
  content: "";
  position: absolute;
  inset: 20% 20% 20% 32%;
  border: 1.6px solid transparent;
  border-right-color: currentColor;
  border-radius: 50%;
}
.speaker-icon::before { inset: 1% 0 1% 21%; }
.switch-track {
  display: inline-flex;
  align-items: center;
  width: 2.3em;
  height: 1.25em;
  padding-inline: .11em;
  border: 1px solid #847865;
  border-radius: 1em;
  background: #d8cdbc;
  transition: background .2s;
}
.switch-track::after {
  content: ""; width: .91em; height: .91em; border-radius: 50%;
  background: #fff9ed; box-shadow: 0 1px 2px #35241466;
  transition: transform .2s;
}
.sound[aria-checked="true"] .switch-track { border-color: #ad6620; background: #dc922e; }
.sound[aria-checked="true"] .switch-track::after { transform: translateX(1.02em); }
.clock {
  border-inline-start: 1px solid var(--hairline);
  padding-inline-start: 1.72vw;
  font: 500 1em/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.clock span { margin-inline-end: .3em; }
:lang(en) h1 { font-size: clamp(3.45rem, 7.05vw, 8.5rem); line-height: 1.02; letter-spacing: -.052em; }
:lang(en) .introduction { letter-spacing: 0; }
:lang(en) .call { letter-spacing: 0; }

@media (hover: hover) {
  .language:hover, .sound:hover { color: var(--oxide); }
  .call:hover:not([aria-disabled="true"]) { background: #ffca86; transform: translateY(-2px); }
}
@media (min-width: 701px) and (max-width: 1050px) {
  .trace { width: 9vw; }
  .receiver { gap: 1.1vw; }
  .readout { gap: .8vw; }
}
@media (max-aspect-ratio: 7/5) {
  .plate {
    min-height: max(28rem, calc(100vh - var(--mast-height) - var(--deck-height)));
    min-height: max(28rem, calc(100svh - var(--mast-height) - var(--deck-height)));
  }
  .film { left: auto; right: 0; width: 100%; width: max(100%, 133.334cqh); aspect-ratio: 4 / 3; transform: translateY(-50%); }
  .signal { left: 66.7%; top: 30.8%; }
  .echo-star { left: 51%; top: 20%; }
}

@media (max-width: 700px), (max-width: 1024px) and (max-aspect-ratio: 4/5) {
  .station { --mast-height: clamp(4rem, 9vw, 5rem); --deck-height: 7.15rem; }
  .masthead { gap: .45rem; padding-inline: 0; }
  .brand { gap: .44rem; }
  .brand-mark { width: clamp(1.65rem, 7vw, 2.85rem); }
  .wordmark { font-size: clamp(1.22rem, 5.15vw, 2.25rem); }
  .station-name { margin: 0 0 0 .2rem; padding-inline-start: .65rem; font-size: clamp(.9rem, 3.5vw, 1.5rem); }
  .utilities { gap: clamp(.35rem, 1.6vw, 1rem); }
  .launch-status { gap: .32em; font-size: clamp(.82rem, 2.85vw, 1rem); }
  .language { padding-inline: clamp(.6rem, 2.25vw, .9rem) .1rem; font-size: 1rem; }
  .plate {
    align-items: start;
    min-height: max(33rem, calc(100vh - var(--mast-height) - var(--deck-height)));
    min-height: max(33rem, calc(100svh - var(--mast-height) - var(--deck-height)));
  }
  .film { inset: auto 0 0 auto; width: 100%; width: max(100%, 66.667cqh); aspect-ratio: 2 / 3; transform: none; }
  .message { margin-inline-start: 6.2%; max-width: 88%; padding: clamp(2rem, 8vw, 5.5rem) 0 2rem; transform: none; }
  h1 { font-size: clamp(2.42rem, 12.15vw, 5.65rem); line-height: 1.12; }
  .introduction { font-size: clamp(1rem, 3.95vw, 1.45rem); margin-top: 1rem; line-height: 1.55; }
  .call { min-width: 0; font-size: clamp(1.03rem, 3.85vw, 1.45rem); margin-top: 1.25rem; padding: .48em .94em; }
  .signal { left: 60.4%; top: 56.5%; }
  .signal i { width: 7rem; }
  .echo-star { left: 74%; top: 37%; }
  .receiver { flex-wrap: wrap; align-content: center; column-gap: 0; row-gap: 0; padding-block: .25rem; }
  .readout { width: 100%; min-height: 3.05rem; gap: .75rem; }
  .trace { width: clamp(3.5rem, 18vw, 7.5rem); margin-inline-end: .2rem; }
  .readout-label, .sound { font-size: .91rem; }
  .reply { font-size: 1rem; padding-inline-start: .75rem; }
  .rule { display: none; }
  .instruments { justify-content: space-between; width: 100%; border-top: 1px solid var(--hairline); }
  .clock { font-size: .875rem; border: none; padding: 0; }
  :lang(en) h1 { font-size: clamp(2.45rem, 10.15vw, 5.2rem); line-height: 1.05; }
  :lang(en) .introduction { font-size: clamp(.98rem, 3.6vw, 1.4rem); }
}
@media (max-width: 370px) {
  .station { padding-inline: .6rem; }
  .station-name { padding-inline-start: .4rem; font-size: .8rem; }
  .utilities { gap: .25rem; }
  .language { padding-inline-start: .45rem; }
  .launch-status [data-copy="launch"] { display: none; }
  .compact-status { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .call:hover:not([aria-disabled="true"]), .call:active { transform: none; }
  .station[data-phase="echo"] .echo-star { opacity: .9; }
}
