/* The CaseStudio download page: the brand's navy, turquoise and white. */
:root {
  --bg: #eef6fb;
  --card: #ffffff;
  --fg: #0d1735;
  --muted: #475569;
  --border: #d5e3ec;
  --accent: #2dd4bf;
  --accent-pressed: #14b8a6;
  --on-accent: #0d1735;
  --link: #0369a1;
  --notice: #b42318;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --card: #131d33;
    --fg: #f1f5f9;
    --muted: #cbd5e1;
    --border: rgba(255, 255, 255, 0.1);
    --on-accent: #04201c;
    --link: #2dd4bf;
    --notice: #f87171;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.top,
main,
footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.top {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 1.5rem;
}

.wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

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

main {
  flex: 1;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2.5rem 0 0.75rem;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 2rem;
  max-width: 36rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.button:hover,
.button:active {
  background: var(--accent-pressed);
}

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

.button[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

.meta {
  color: var(--muted);
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
}

.notice {
  color: var(--notice);
  margin: 0.75rem 0 0;
}

.checksum {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.checksum summary {
  cursor: pointer;
}

.checksum code {
  display: block;
  margin-top: 0.5rem;
  word-break: break-all;
}

.steps {
  margin: 0;
  padding-left: 1.4rem;
}

.steps li {
  margin-bottom: 0.9rem;
}

.steps strong {
  display: block;
}

code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.92em;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

a {
  color: var(--link);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
