/* enact.life: the app's own palette, "the hour before sunrise". */
:root {
  --bg: #EDF0F6; --surface: #FFFFFF; --ink: #18213A; --muted: #5A6582; --line: #DCE1EC;
  --sun: #D95F25; --dawn: #3A4EA0; --dawn-soft: #E3E7F7;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1322; --surface: #171E33; --ink: #E7EBF5; --muted: #99A3BF; --line: #28314F;
    --sun: #F08A55; --dawn: #94A4EC; --dawn-soft: #232C4E;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: var(--dawn); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 2px; }

.bar { max-width: 760px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 22px; }
.bar nav { display: flex; gap: 18px; font-size: 15px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }

/* Home: the sun on the horizon is the page. */
.hero { max-width: 760px; margin: 0 auto; padding: clamp(64px, 14vh, 140px) 20px 48px; }
.hero h1 { font: 700 clamp(44px, 9vw, 84px)/0.98 var(--display); letter-spacing: -0.04em; margin: 0 0 18px; max-width: 11ch; }
.hero p { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 0; }
.horizon { position: relative; height: 150px; margin: 0 auto; max-width: 760px; overflow: hidden; }
.horizon .sun { position: absolute; left: 20px; bottom: -110px; width: 220px; height: 220px; border-radius: 50%; background: var(--sun);
  animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
.horizon .line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); }
@keyframes rise { from { transform: translateY(70px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .horizon .sun { animation: none; } }

.how { max-width: 760px; margin: 0 auto; padding: 56px 20px 24px; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.how li { list-style: none; counter-increment: step; }
.how li::before { content: counter(step); display: block; font: 700 40px/1 var(--display); color: var(--sun); margin-bottom: 8px; }
.how h2 { font: 700 21px/1.2 var(--display); margin: 0 0 6px; letter-spacing: -0.01em; }
.how p { margin: 0; color: var(--muted); font-size: 16px; }
.note { max-width: 760px; margin: 0 auto; padding: 24px 20px 72px; color: var(--muted); font-size: 16px; }
@media (max-width: 640px) { .how { grid-template-columns: 1fr; } }

/* Legal pages: one readable column. */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 20px 88px; }
.doc h1 { font: 700 clamp(34px, 6vw, 48px)/1.05 var(--display); letter-spacing: -0.03em; margin: 28px 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.doc .short { background: var(--dawn-soft); border-radius: 14px; padding: 18px 20px; margin: 0 0 36px; }
.doc .short p { margin: 0; }
.doc h2 { font: 700 24px/1.25 var(--display); letter-spacing: -0.015em; margin: 44px 0 10px; }
.doc h3 { font: 600 18px/1.3 var(--body); margin: 28px 0 6px; }
.doc p, .doc li { max-width: 68ch; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin: 0 0 8px; }
.table { overflow-x: auto; margin: 14px 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--bg); }
tr:last-child td { border-bottom: 0; }
footer { border-top: 1px solid var(--line); }
footer .bar { font-size: 14px; color: var(--muted); }

/* On a phone, each table row becomes a small stacked block instead of three squeezed columns. */
@media (max-width: 560px) {
  .table thead { display: none; }
  .table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { display: block; padding: 0; border: 0; }
  .table td:first-child { font-weight: 600; margin-bottom: 6px; }
  .table td + td { color: var(--muted); margin-top: 4px; }
  .table td[data-label]::before { content: attr(data-label) ": "; color: var(--ink); font-weight: 600; }
}
