/* The public pages, on the Studio's tokens and type (studio.css, loaded first). Layout only: every colour is a token. */
body.site { min-height: 100dvh; display: flex; flex-direction: column; font-size: 15.5px; line-height: 1.6; }
.site main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; flex: 1; }
.site a { color: rgb(var(--accent)); }
.site a.btn { text-decoration: none; }
.site a.logo { color: rgb(var(--ink)); }
.site a.btn.primary, .site a.btn.primary:hover { color: rgb(var(--page)); }
.site .btn { padding: 11px 16px; }
.site .btn.sm { padding: 7px 11px; }

.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; width: 100%; margin: 0 auto; padding: 24px 24px 8px; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a:not(.btn) { color: rgb(var(--muted)); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: rgb(var(--ink)); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgb(var(--accent)); margin-bottom: 12px; }
.lede { font-size: 17px; color: rgb(var(--muted)); max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 14px; }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.04; font-weight: 600; letter-spacing: -0.04em; margin-bottom: 18px; }

.trail { margin: 0; padding: 22px 24px; }
.trail ol { list-style: none; margin: 12px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line-strong); display: grid; gap: 18px; }
.trail li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: baseline; }
.trail li::before { content: ""; position: absolute; left: -25px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--raised)); border: 2px solid rgb(var(--muted)); }
.trail time { font-size: 12.5px; color: rgb(var(--faint)); font-variant-numeric: tabular-nums; }
.trail p, .trail .by { grid-column: 1 / -1; }
.trail p { color: rgb(var(--ink)); }
.kind { justify-self: start; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: rgb(var(--block)); }
.kind.learnt { color: var(--m-learnt); }
.kind.decided { color: rgb(var(--accent)); }
.kind.changed { color: var(--m-changed); }
.trail li:has(.changed)::before { border-color: var(--m-changed); }
.trail li:has(.learnt)::before { border-color: var(--m-learnt); }

.site section { padding: 40px 0; }
.site section > h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps h3 { font-family: var(--display); font-size: 17px; text-transform: none; letter-spacing: -0.02em; color: rgb(var(--ink)); margin: 10px 0 6px; }
.steps p { color: rgb(var(--muted)); font-size: 14.5px; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgb(var(--block)); color: rgb(var(--ink)); font-weight: 600; font-size: 13.5px; }

.diff .lede { margin-bottom: 20px; }
.pillars { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pillars dt { font-family: var(--display); font-weight: 600; font-size: 17px; color: rgb(var(--ink)); margin-bottom: 6px; }
.pillars dd { margin: 0; color: rgb(var(--muted)); font-size: 14.5px; }

.cta { margin: 32px 0 56px; text-align: center; padding: 40px 24px; }
.cta .actions { justify-content: center; margin-bottom: 0; }

.site-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1080px; width: 100%; margin: 0 auto; padding: 24px; border-top: 1px solid var(--line); }
.site-foot .logo { height: 18px; width: 48px; color: rgb(var(--faint)); }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: rgb(var(--muted)); text-decoration: none; font-size: 14px; }
.site-foot a:hover, .site-foot a[aria-current] { color: rgb(var(--ink)); }

.site main.legal { max-width: 720px; padding-top: 48px; padding-bottom: 64px; }
.legal h1 { font-size: 40px; font-weight: 600; margin-bottom: 6px; }
.legal h2 { margin-top: 32px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: rgb(var(--ink)); font-weight: 600; }

.site main.missing { display: flex; flex-direction: column; justify-content: center; max-width: 720px; padding-top: 96px; padding-bottom: 96px; }
.missing h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 600; margin-bottom: 10px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 24px; }
  .steps, .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .site main, .site-head, .site-foot { padding-left: 16px; padding-right: 16px; }
  .steps, .pillars { grid-template-columns: 1fr; }
  .site-nav { gap: 12px; }
}
