:root {
  color-scheme: light dark;
  --background: #ffffff;
  --foreground: #000000;
  --muted: #71717a;
  --surface: #f4f4f5;
  --border: #e4e4e7;
  --primary: #ff355d;
  --primary-hover: #e72d52;
  --primary-foreground: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--foreground);
  background: var(--background);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 18rem;
  margin: 0;
  background: var(--background);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--background) 78%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-button,
.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-button:hover,
.nav-button:focus-visible,
.button:hover,
.button:focus-visible {
  background: var(--surface);
}

.primary,
.primary:hover,
.primary:focus-visible {
  border-color: var(--primary);
  color: var(--primary-foreground);
  background: var(--primary);
}

.primary:hover,
.primary:focus-visible {
  background: var(--primary-hover);
}

.main-content {
  width: min(100% - 2.5rem, 42rem);
  margin: 2rem auto 0;
  padding: clamp(2.5rem, 9vh, 6rem) 0 5rem;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 35rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.actions .button,
.actions .retry-button {
  margin: 0;
}

.meta,
.note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.note {
  max-width: 35rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.release-details {
  max-width: 35rem;
  margin: 2rem 0 0;
  border-top: 1px solid var(--border);
}

.release-details div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.release-details dt {
  color: var(--muted);
}

.release-details dd {
  margin: 0;
  font-weight: 700;
}

.retry-button {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 0;
  color: var(--primary);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --foreground: #ffffff;
    --muted: #a1a1aa;
    --surface: #27272a;
    --border: #3f3f46;
  }
}

@media (max-width: 34rem) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .brand span {
    display: none;
  }

  .nav-button {
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.875rem;
  }

  .main-content {
    width: min(100% - 2rem, 42rem);
    margin-top: 1rem;
    padding-top: 3rem;
  }

  .release-details div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
