/* The Happiness Project — warm, playful, philosophical. System fonts only. */

:root {
  --cream: #faf5e9;
  --cream-deep: #f4ecda;
  --card: #fffdf6;
  --ink: #2a2318;
  --ink-soft: #6b5f4c;
  --amber: #d97706;
  --amber-deep: #b45309;
  --gold-soft: #f6e3b4;
  --line: #e8dcc0;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 1.05rem;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- header ---------- */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1.3;
}

.brand-sub {
  font-size: 0.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
}

.site-nav a {
  margin-left: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--amber-deep);
}

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 3.5rem 0 2rem;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.subhead {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.4rem;
  min-width: 9rem;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.stat-value {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--amber-deep);
}

/* ---------- cards & sections ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 1.5rem 0;
}

.card h2 {
  font-family: Georgia, "Times New Roman", serif;
  margin-top: 0;
}

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

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

.steps li:last-child {
  margin-bottom: 0;
}

/* ---------- gift zone ---------- */

.honesty {
  background: var(--cream-deep);
  border-left: 4px solid var(--amber);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem;
}

.honesty p {
  margin: 0;
  font-size: 0.98rem;
}

.ack {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.ack input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--amber-deep);
  cursor: pointer;
}

.gate-note {
  color: var(--amber-deep);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0.25rem 0 0;
}

.btn-row {
  margin: 1.25rem 0 0.75rem;
}

.btn {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.85rem 2.4rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--amber-deep);
}

.btn.is-disabled {
  background: #c9c2b2;
  cursor: not-allowed;
}

.btn.is-disabled:hover {
  background: #c9c2b2;
}

.fineprint {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}

/* ---------- ledger ---------- */

.accounting-rule {
  background: var(--gold-soft);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-size: 0.98rem;
}

table.ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.25rem 0;
}

.ledger th,
.ledger td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.ledger thead th {
  background: var(--cream-deep);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ledger tbody tr:last-child td {
  border-bottom: none;
}

.ledger td.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- reports ---------- */

.lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.empty {
  background: var(--card);
  border: 1px dashed var(--amber);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

.report-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.25rem 0;
}

.report-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0.25rem 0 1rem;
}

.report-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.report-card h2 a:hover {
  color: var(--amber-deep);
}

.report-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0;
}

.report-facts {
  display: grid;
  gap: 0.5rem;
  background: var(--cream-deep);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}

.report-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.report-facts dt {
  font-weight: 600;
}

.report-facts dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.read-more {
  color: var(--amber-deep);
  font-weight: 700;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.reflection {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  border-left: 3px solid var(--gold-soft);
  padding-left: 1rem;
  margin-left: 0;
}

/* ---------- faq ---------- */

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1.1rem 0;
}

.faq-item h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}

.faq-item p {
  margin: 0.4rem 0;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .stat {
    flex: 1 1 40%;
    min-width: 0;
    padding: 0.8rem 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .site-nav a {
    margin-left: 0.75rem;
  }

  .hero {
    padding-top: 2.5rem;
  }
}
