:root {
  --page: #eaf6ff;
  --card: #ffffff;
  --line: #cfe3f5;
  --ink: #14163a;
  --muted: #4a5577;
  --accent: #1d4fc9;
  --accent-wash: #fff4c7;
  --gold: #ffd23f;
  --sky: #2fa8ff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0c1030;
    --card: #161b45;
    --line: #262d63;
    --ink: #eef1ff;
    --muted: #aab3dc;
    --accent: #8fb4ff;
    --accent-wash: #2b2a17;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site { padding: 22px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav.site a { margin-left: 18px; font-weight: 700; text-decoration: none; color: var(--muted); }
nav.site a:first-child { margin-left: 0; }
nav.site a[aria-current="page"] { color: var(--ink); }

main { padding-bottom: 64px; }

h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; margin: 24px 0 12px; letter-spacing: -0.01em; text-wrap: balance; font-weight: 900; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 36px 0 8px; font-weight: 800; }
h3 { font-size: 1.1rem; margin: 0 0 4px; }
p { margin: 0 0 14px; text-wrap: pretty; }
ul { margin: 0 0 14px; padding-left: 1.3em; }
li { margin-bottom: 6px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  margin: 14px 0;
}

/* The dice shown once on the home page */
.dice { display: flex; gap: 14px; margin: 28px 0 8px; }
.die {
  width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 4px solid #14163a;
  box-shadow: 0 6px 0 #14163a; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: 8px; transform: rotate(-6deg);
}
.die + .die { transform: rotate(8deg); }
.die i { width: 11px; height: 11px; border-radius: 50%; background: #14163a; place-self: center; }
.die i.off { visibility: hidden; }

.points { display: grid; gap: 4px; margin: 8px 0; }

.promise { background: var(--accent-wash); border-color: transparent; }

details { border-top: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 10px; }

.email { font-size: 1.25rem; font-weight: 700; word-break: break-all; }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 0.92rem; }
footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  nav.site a { margin-left: 14px; }
  .die { width: 54px; height: 54px; padding: 6px; }
  .die i { width: 9px; height: 9px; }
}
