:root {
  --sky-top: #7ec4f2;
  --sky-bottom: #d9f0ff;
  --sun: #ffd45c;
  --sun-top: 18%;
  --page: #eef4f8;
  --card: #ffffff;
  --text: #1f2d3a;
  --muted: #5a6b7a;
  --accent: #2f6f9f;
  --accent-text: #ffffff;
  --line: #dbe5ec;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--page);
}

[data-sky="sunset"] {
  --sky-top: #f2786b;
  --sky-bottom: #ffd6a0;
  --sun: #ff9f43;
  --sun-top: 58%;
}

[data-sky="night"] {
  --sky-top: #0d1b2f;
  --sky-bottom: #2b3f63;
  --sun: #f4f1de;
  --sun-top: 14%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #121a22;
    --card: #1b2631;
    --text: #e6edf3;
    --muted: #a3b1bd;
    --accent: #6cb2e6;
    --accent-text: #0e1720;
    --line: #2c3a47;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  background: var(--page);
}

.card {
  width: min(100%, 40rem);
  background: var(--card);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgb(15 35 55 / 0.15);
  padding-bottom: 1.75rem;
}

.hero {
  position: relative;
  margin: 0;
  aspect-ratio: 640 / 280;
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
  transition: background 0.8s ease;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.sun {
  position: absolute;
  left: 70%;
  top: var(--sun-top);
  width: 3.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 2.5rem var(--sun);
  transition: top 0.8s ease, background 0.8s ease, box-shadow 0.8s ease;
}

h1,
.lead,
.files,
.status,
button {
  margin-inline: 1.75rem;
}

h1 {
  margin-block: 1.5rem 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.01em;
}

.lead {
  margin-block: 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}

.files {
  list-style: none;
  padding: 0;
  margin-block: 0 1.5rem;
  border-top: 1px solid var(--line);
}

.files li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.files span {
  color: var(--muted);
  text-align: right;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

button {
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.status {
  margin-block: 0.75rem 0;
  color: var(--muted);
}

footer {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .sun {
    transition: none;
  }
}
