/*
SPDX-FileCopyrightText: 2026 Johan Thorén and the Every Drop contributors
SPDX-License-Identifier: AGPL-3.0-only WITH AdditionRef-EveryDrop-store-permission
Terms: LICENSE and LICENSE-STORE-PERMISSION.md at the repository root.
*/

:root {
  --accent: #c8102e;
  --accent-deep: #9e0c24;
  --page: #f6f3ee;
  --surface: #ffffff;
  --ink: #1d1a17;
  --muted: #5c554e;
  --line: #e4ddd3;
  --hero-ink: #ffffff;
  --hero-muted: #ffe3e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #151312;
    --surface: #1f1c1a;
    --ink: #f3eee8;
    --muted: #b7aea5;
    --line: #34302c;
    --hero-muted: #ffd5da;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
}

a {
  color: inherit;
}

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

.hero {
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--hero-ink);
  padding: 3.5rem 0 3rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 2rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  filter: drop-shadow(0 1px 0 rgb(255 255 255 / 0.6)) brightness(0) invert(1);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  font-size: 1.2rem;
  color: var(--hero-muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.18);
  font-size: 0.95rem;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ffd166;
}

main section {
  padding-top: 2.75rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

p {
  margin: 0 0 1rem;
}

.plea {
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-size: 1.15rem;
  color: var(--muted);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0 0 1rem;
  padding-left: 2.75rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards li {
  padding: 1.1rem 1.2rem 0.4rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0.6rem;
  background: var(--surface);
}

.cards p {
  color: var(--muted);
}

footer {
  margin-top: 3.5rem;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

footer p:first-child {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 600;
}

.missing {
  padding-top: 4rem;
}

.missing h1 {
  color: var(--ink);
}
