:root {
  --ink: #060914;
  --ink-2: #0c1424;
  --fog: #9eb0c8;
  --paper: #e8eef7;
  --ember: #ffc27a;
  --ember-hot: #ff8f4a;
  --teal: #6fe0c8;
  --line: rgba(158, 176, 200, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

body {
  position: relative;
  overflow-x: hidden;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.shell {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8vh 0 4rem;
}

.hero {
  max-width: 38rem;
  animation: rise 0.9s ease-out both;
}

.brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(120deg, var(--paper) 20%, var(--ember) 55%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lede {
  margin: 0 0 1.6rem;
  color: var(--fog);
  font-size: 1.05rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta,
.ghost,
.city-form input {
  font: inherit;
}

.cta {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  background: linear-gradient(135deg, var(--ember-hot), var(--ember));
  color: #1a1008;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 143, 74, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(255, 143, 74, 0.38);
}

.cta:active {
  transform: translateY(0);
}

.city-form {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.25rem 0.25rem 0.25rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 20, 36, 0.72);
  backdrop-filter: blur(10px);
}

.city-form input {
  width: min(14rem, 42vw);
  border: 0;
  background: transparent;
  color: var(--paper);
  outline: none;
}

.city-form input::placeholder {
  color: rgba(158, 176, 200, 0.65);
}

.ghost {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  background: rgba(111, 224, 200, 0.12);
  color: var(--teal);
  font-weight: 600;
  cursor: pointer;
}

.status {
  min-height: 1.4rem;
  margin: 0.9rem 0 0;
  color: var(--fog);
  font-size: 0.92rem;
}

.panel {
  margin-top: 3.2rem;
  animation: rise 0.7s ease-out both;
}

.panel[hidden] {
  display: none !important;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

.place {
  margin: 0;
  color: var(--teal);
  font-weight: 500;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.2rem 1.25rem 1.3rem;
  background: linear-gradient(160deg, rgba(16, 26, 46, 0.88), rgba(8, 13, 24, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card.glow {
  border-color: rgba(255, 194, 122, 0.28);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 143, 74, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(22, 28, 42, 0.92), rgba(8, 13, 24, 0.82));
}

.card.span-2 {
  grid-column: 1 / -1;
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
}

.big {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
  font-weight: 500;
}

.fine {
  margin: 0.55rem 0 0;
  color: var(--fog);
  font-size: 0.9rem;
}

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.facts li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.facts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.facts strong {
  color: var(--ember);
  font-weight: 600;
  font-size: 0.86rem;
}

.compass-wrap {
  display: grid;
  place-items: center;
  margin: 0.2rem 0 0.4rem;
}

.eclipse {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
  align-items: center;
  overflow: hidden;
}

.eclipse-copy p {
  margin: 0 0 0.9rem;
  color: var(--fog);
}

.safe-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--paper);
  display: grid;
  gap: 0.45rem;
}

.safe-list strong,
.safe-list em {
  color: var(--ember);
  font-style: normal;
}

.eclipse-aside {
  display: grid;
  place-items: center;
  min-height: 10rem;
}

.sun-disk {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4c8, #ffb347 45%, #ff7a2f 80%);
  box-shadow: 0 0 40px rgba(255, 170, 70, 0.45);
  animation: pulse 4.5s ease-in-out infinite;
}

.moon-disk {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #060914;
  transform: translate(-28%, -8%);
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.35);
  animation: slide 7s ease-in-out infinite alternate;
}

.receipt {
  margin: 1.25rem 0 0;
  color: rgba(158, 176, 200, 0.75);
  font-size: 0.82rem;
}

.foot {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: 0.92rem;
}

.foot p {
  margin: 0 0 0.55rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@keyframes pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

@keyframes slide {
  from {
    transform: translate(-42%, -10%);
  }
  to {
    transform: translate(-12%, -4%);
  }
}

@media (max-width: 760px) {
  .shell {
    padding-top: 6vh;
  }

  .grid,
  .eclipse {
    grid-template-columns: 1fr;
  }

  .facts li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .city-form {
    width: 100%;
  }

  .city-form input {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
