:root {
  --accent-dim: rgba(var(--accent-rgb), 0.25);
}

body {
  background-image:
    radial-gradient(circle at 20% 10%, rgba(var(--overlay-rgb), 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(var(--accent-rgb), 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  line-height: 1.6;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  animation: fadeIn 1.2s ease-out;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rule {
  width: 3rem;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem auto;
  opacity: 0.6;
}

.intro {
  border: 1px solid var(--accent-dim);
  padding: 1.5rem 1.75rem;
  font-style: italic;
  color: var(--intro-fg);
  margin-bottom: 3rem;
}

.intro strong {
  color: var(--accent);
  font-style: normal;
  font-weight: 400;
}

h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3rem 0 1.25rem;
}

ul.items {
  list-style: none;
}

.item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid rgba(var(--overlay-rgb), 0.06);
  transition: opacity 0.3s ease;
}

.item.claimed .item-name {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(var(--accent-rgb), 0.4);
  text-decoration-thickness: 1px;
}

.item-main { flex: 1; }

.item-name { font-size: 1.05rem; }

.item-note {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.item-count {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  color: rgba(var(--accent-rgb), 0.75);
  margin-top: 0.3rem;
}

.item-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-link {
  color: rgba(var(--accent-rgb), 0.7);
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-dim);
  white-space: nowrap;
}

.item-link:hover { color: var(--accent); }

button {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--accent-dim);
  color: rgba(var(--accent-rgb), 0.8);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

button:disabled { cursor: default; }

.claimed-tag {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.claimed-tag .heart { color: rgba(var(--accent-rgb), 0.6); }

.claim-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.claim-form input {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  background: rgba(var(--overlay-rgb), 0.04);
  border: 1px solid rgba(var(--overlay-rgb), 0.12);
  color: var(--fg);
  padding: 0.45rem 0.6rem;
  width: 11rem;
}

.claim-form input:focus {
  outline: none;
  border-color: var(--accent-dim);
}

.cancel-btn { border-color: transparent; color: var(--muted); }

.charity {
  border: 1px solid rgba(var(--overlay-rgb), 0.08);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.charity a {
  color: var(--fg);
  text-decoration: none;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--accent-dim);
}

.charity a:hover { color: var(--accent); }

.charity p {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.status {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 2rem 0;
}

.back {
  display: block;
  text-align: center;
  margin-top: 4rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--accent-rgb), 0.45);
  text-decoration: none;
}

.back:hover { color: var(--accent); }
