:root {
  --yellow: #FFD21F;
  --ink: #16130C;
  --paper: #FFFFFF;
  --soft: #FFF4C2;
  --muted: #4A4330;
  --on-ink: #E8E3D3;
  --error: #9B1C1C;
  --display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --body: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--yellow); }
body {
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 760px; margin: 0 auto; padding-block: 28px 72px; display: flex; flex-direction: column; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; align-self: flex-start; }
.intro { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.eyebrow { margin: 0; font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 10vw, 80px); line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance; }
h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 5vw, 34px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: 20px; max-width: 40ch; }
.muted { color: var(--muted); font-size: 15px; }

.panel { background: var(--paper); border-radius: 28px; padding: clamp(20px, 5vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 16px; }
input[type=text], input[type=password], textarea {
  font: inherit; font-weight: 400; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%;
}
textarea { resize: vertical; }
.ansa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.task { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 14px; cursor: pointer; line-height: 1.35; font-weight: 400; }
.task:has(input:checked) { background: var(--soft); }
.task span { display: flex; flex-direction: column; gap: 2px; }
.task small { color: var(--muted); font-size: 14px; }
input[type=checkbox] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ink); }
.check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
button, .btn { font: inherit; font-weight: 700; font-size: 18px; min-height: 56px; padding: 0 32px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); cursor: pointer; }
button:disabled { opacity: 0.6; cursor: wait; }
.error { color: var(--error); font-weight: 600; }

.thanks { background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(26px, 6vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.thanks .big { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: var(--yellow); }
.thanks p { color: var(--on-ink); }
.btn-light { align-self: flex-start; background: var(--yellow); color: var(--ink); font-weight: 700; padding: 14px 24px; border-radius: 999px; text-decoration: none; }

.foot { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: var(--muted); }
.foot a { font-weight: 600; }

/* Hyvä sanoma */
.step { background: var(--paper); border-radius: 24px; padding: clamp(22px, 5vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.num { width: 44px; height: 44px; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
blockquote { margin: 0; background: var(--soft); border-radius: 16px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
cite { font-style: normal; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
blockquote p { font-style: italic; font-size: 17px; }
.prayer { background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(26px, 6vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.prayer .lead2 { color: var(--on-ink); }
.prayer .words { font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(21px, 4.4vw, 27px); line-height: 1.4; color: var(--yellow); }
ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

.callout { margin: 0; padding-block: clamp(12px, 4vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.big-verse { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 7vw, 52px); line-height: 1.03; letter-spacing: -0.03em; text-wrap: balance; }
.callout figcaption { font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Ylläpito */
.table-box { overflow-x: auto; background: var(--paper); border-radius: 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid #E5DFC8; }
th { font-weight: 700; background: var(--soft); white-space: nowrap; }
td.when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row label { flex: 1 1 240px; }
.btn-outline { font: inherit; font-weight: 700; font-size: 16px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
