:root {
  color-scheme: dark;
  --ink: #f3f0e8;
  --muted: #9b9e98;
  --faint: #656c69;
  --background: #10171b;
  --panel: #182125;
  --line: rgba(230, 235, 220, 0.12);
  --sun: #f2b467;
  --mint: #9ec8ae;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 79% 10%, rgba(69, 93, 79, 0.14), transparent 31rem),
    var(--background);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: min(100% - 64px, 1080px);
  margin: 0 auto;
}

.eyebrow,
.coordinate-label,
.coordinate-hint,
.timestamp-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hero {
  position: relative;
  min-height: 365px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 62%;
  padding: 60px 0 68px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--sun);
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

h1 em {
  color: var(--sun);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 420px;
  margin: 25px 0 0;
  color: #aeb2ac;
  font-size: 14px;
  line-height: 1.75;
}

.term-link {
  color: var(--sun);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(242, 180, 103, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.term-link:hover,
.term-link:focus-visible {
  text-decoration-color: var(--sun);
}

.solar-art {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 345px;
  height: 345px;
  transform: translateY(-50%);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(222, 205, 166, 0.19);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-outer {
  width: 310px;
  height: 310px;
}

.orbit-inner {
  width: 218px;
  height: 218px;
  border-color: rgba(222, 205, 166, 0.28);
}

.sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #ffe0a5, #f0aa5f 65%, #d58347);
  box-shadow: 0 0 36px rgba(239, 170, 94, 0.24), 0 0 100px rgba(239, 170, 94, 0.12);
  transform: translate(-50%, -50%);
}

.sun::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(55, 44, 34, 0.42);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.location-panel {
  padding: 39px 0 0;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading .eyebrow {
  margin-bottom: 11px;
  color: var(--muted);
}

h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.coordinates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 25px;
}

.coordinate-card {
  min-height: 179px;
  padding: 21px 24px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 65%), var(--panel);
}

.distance-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.distance-card:hover:not(:disabled),
.distance-card:focus-visible {
  border-color: rgba(242, 180, 103, 0.4);
}

.distance-card:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

.distance-card:disabled {
  cursor: progress;
}

.coordinate-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.coordinate-marker {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
}

.longitude-marker {
  background: var(--mint);
}

.distance-marker {
  background: var(--ink);
}

.coordinate-value {
  display: block;
  min-height: 60px;
  margin: 13px 0 1px;
  font-size: clamp(30px, 3.9vw, 46px);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1;
  white-space: nowrap;
}

.coordinate-value.is-text {
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.03em;
  line-height: 46px;
  color: var(--muted);
}

.coordinate-value .unit {
  margin-left: 4px;
  color: var(--sun);
  font-size: 0.58em;
  vertical-align: top;
}

.coordinate-hint {
  display: block;
  margin: 0;
  color: var(--faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 24px;
  border: 1px solid rgba(242, 180, 103, 0.4);
  color: var(--sun);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.map-link:hover,
.map-link:focus-visible {
  border-color: var(--sun);
  background: rgba(242, 180, 103, 0.08);
}

.map-link:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

.map-link-arrow {
  font-size: 18px;
}

.timestamp-row {
  padding: 22px 0 25px;
  border-bottom: 1px solid var(--line);
}

.timestamp-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timestamp-label {
  color: var(--faint);
}

.timestamp-item time {
  color: #dfe2d9;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.page-footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--faint);
  font-size: 11px;
}

.page-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .coordinates {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .coordinate-value {
    font-size: 56px;
  }

  .coordinate-value.is-text {
    font-size: 26px;
    line-height: 56px;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 40px, 540px);
  }

  .hero {
    min-height: 330px;
  }

  .hero-copy {
    width: 100%;
    padding: 55px 0;
  }

  .intro {
    max-width: 350px;
    font-size: 13px;
  }

  .solar-art {
    right: -195px;
    opacity: 0.26;
  }

  .coordinate-card {
    min-height: 157px;
    padding: 19px 20px 16px;
  }

  .coordinate-value {
    font-size: 48px;
  }

  .coordinate-value.is-text {
    font-size: 24px;
    line-height: 48px;
  }

  .page-footer {
    min-height: 78px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .page-shell {
    width: calc(100% - 32px);
  }

  .panel-heading {
    align-items: center;
  }

  .timestamp-item time {
    font-size: 10px;
  }

  .coordinate-value {
    font-size: 40px;
  }

  .coordinate-value.is-text {
    font-size: 22px;
    line-height: 40px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sun {
    animation: glow 5s ease-in-out infinite alternate;
  }

  @keyframes glow {
    from { box-shadow: 0 0 30px rgba(239, 170, 94, 0.2), 0 0 85px rgba(239, 170, 94, 0.09); }
    to { box-shadow: 0 0 45px rgba(239, 170, 94, 0.3), 0 0 110px rgba(239, 170, 94, 0.15); }
  }
}
