:root {
  color-scheme: light dark;
  --canvas: #f7f4ee;
  --surface: #fffdf8;
  --text: #20211e;
  --muted: #60635b;
  --line: #d8d3c8;
  --accent: #78522e;
  --accent-strong: #5d3c1f;
  --focus: #2e6d7f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171815;
    --surface: #20211d;
    --text: #f4f1e9;
    --muted: #c5c4bc;
    --line: #494b43;
    --accent: #e2ae72;
    --accent-strong: #f0c894;
    --focus: #8cdbed;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: var(--accent-strong);
}

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

.page-shell {
  width: min(100% - 2rem, 40rem);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.site-header,
section,
footer {
  margin: 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.site-header {
  padding-top: 0;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.subtitle,
footer {
  color: var(--muted);
}

.provider + .provider {
  margin-top: 1.5rem;
}

.provider {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.tier-list {
  display: grid;
  gap: 0.75rem;
}

.tier {
  display: grid;
  gap: 0.2rem;
}

.tip-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fffdf8;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.tip-action[disabled] {
  cursor: not-allowed;
  border-color: var(--line);
  background: var(--canvas);
  color: var(--muted);
  opacity: 1;
}

.tier-note,
.provider-note {
  color: var(--muted);
  font-size: 0.875rem;
}

.provider-note {
  margin: 1rem 0 0;
}

.attribution-message {
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-weight: 700;
}

#project-list {
  display: grid;
  gap: 0.875rem;
}

.project-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card > p:last-of-type {
  margin-bottom: 1rem;
}

.project-emoji {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
}

.attribution-badge {
  margin-bottom: 0.75rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.project-link,
.all-projects-link {
  font-weight: 700;
}

.all-projects-link {
  display: inline-block;
  margin-top: 0.25rem;
}

footer {
  border-bottom: 0;
  font-size: 0.9375rem;
}

.no-script-fallback {
  width: min(100% - 2rem, 40rem);
  margin: 0 auto;
  padding: 0 0 3rem;
  border-bottom: 0;
}
