:root {
  --night: #07080d;
  --navy: #121a38;
  --gold: #f3d58a;
  --ivory: #ebe8df;
  --muted: #959bb0;
  --line: rgba(243, 213, 138, 0.22);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(ellipse at 78% 12%, var(--navy) 0, transparent 55%), var(--night);
  color: var(--ivory);
  font: 400 1rem/1.65 "DM Sans", system-ui, sans-serif;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
}

.top, main, footer { width: min(1080px, 100% - 3rem); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; }
.brand { font: 600 1.6rem "Cormorant Garamond", Georgia, serif; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 1.5rem; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.top nav a:not(.btn):hover { color: var(--ivory); }

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--night);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn.small { padding: 0.45rem 1.1rem; }
.btn.ghost { background: transparent; color: var(--gold); }
.btn:hover { filter: brightness(1.08); }
.btn:not([href]) { opacity: 0.5; pointer-events: none; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 4rem 0 5rem;
}
.hero h1 { max-width: 12ch; font-size: clamp(2.8rem, 6.5vw, 4.8rem); }
.hero p { max-width: 46ch; margin: 1.5rem 0 2rem; color: var(--muted); font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.eclipse { position: relative; width: min(420px, 80vw); aspect-ratio: 1; justify-self: center; }
.corona, .moon { position: absolute; border-radius: 50%; }
.corona {
  inset: 0;
  background: radial-gradient(circle, #fff3cf 0, #fff3cf 30%, rgba(243, 213, 138, 0.9) 31%, rgba(243, 213, 138, 0.25) 45%, transparent 68%);
}
.moon {
  inset: 18.5%;
  background: var(--night);
  box-shadow: 0 0 0 2px rgba(255, 236, 190, 0.9), 0 0 60px 8px rgba(243, 213, 138, 0.3);
  animation: cover 2.6s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}
@keyframes cover { from { transform: translateX(-48%); } to { transform: none; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding: 3rem 0 5rem; }
.features article { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.features h3 { margin-bottom: 0.6rem; font-size: 1.6rem; }
.features p { margin: 0; color: var(--muted); }

.commands h2, .support h2 { margin-bottom: 1.5rem; font-size: 2.4rem; }
.group { margin-bottom: 2.5rem; }
.group h3 { margin-bottom: 0.75rem; color: var(--gold); font-size: 1.5rem; }
.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 2.5rem; }
.row { display: flex; flex-direction: column; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.row code { color: var(--ivory); font-size: 0.95rem; font-weight: 500; }
.row span { color: var(--muted); font-size: 0.95rem; }

.support { padding: 3rem 0 5rem; }
.support p { max-width: 52ch; margin: 0 0 1.75rem; color: var(--muted); }

footer { padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer p { margin: 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .features { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .moon { animation: none; }
}