/* First page: one headline, one colour. Choosing a promise swaps the sentence below it; nothing else moves. */
:root { --paper: #f6f6f3; --ink: #17202b; --muted: #5a6470; --line: #dcdfdd; --pen: #ffd23e; --onpen: #17202b;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif; --serif: "Newsreader", Georgia, "Times New Roman", serif; --mono: "Geist Mono", Consolas, ui-monospace, monospace; 
  --side: max(20px, env(safe-area-inset-left, 0px), 5.2vw); --ease: cubic-bezier(.25,.7,.2,1); color-scheme: light; }
:root[data-mood="dark"] { --paper: #11161d; --ink: #eef1f2; --muted: #9da8b3; --line: #2c3541; --pen: #f5c52c; --onpen: #11161d; color-scheme: dark; }
* { box-sizing: border-box; }
html { font-size: clamp(1rem, min(1.02vw, 1.85vh), 1.375rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
p, h1, ul { margin: 0; padding: 0; } ul { list-style: none; } a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

.bar { display: flex; align-items: center; gap: 28px; padding: clamp(14px, 2.6vh, 28px) var(--side); font-size: .95rem; }
.name { font-size: 20px; letter-spacing: -.015em; font-weight: 600; text-decoration: none; margin-right: auto; white-space: nowrap; }
nav { display: flex; gap: 28px; } nav a { color: var(--muted); text-decoration: none; padding: 6px 0; } nav a:hover { color: var(--ink); }
#theme { color: var(--muted); display: grid; place-items: center; width: 32px; height: 32px; margin-right: -7px; } #theme:hover { color: var(--ink); }

main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px var(--side) clamp(28px, 9vh, 110px); }
.role, .lead { transition: opacity .35s; } .role strong { font-weight: 600; }
h1 { font-weight: 600; font-size: clamp(2.1rem, min(4.05vw, 10vh), 5.6rem); line-height: 1.12; letter-spacing: -.034em; margin: clamp(14px, 3.2vh, 36px) 0; }
h1 span { display: block; transition: color .35s; } .l2, .l3 { font: italic 400 1.075em/1.12 var(--serif); letter-spacing: -.022em; }
h1 a { text-decoration: none; cursor: pointer; padding: 0 .04em; margin: 0 -.04em; border-radius: 2px; background: linear-gradient(var(--pen), var(--pen)) 0 91%/100% .09em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .4s var(--ease), color .3s; animation: under .8s .5s var(--ease) backwards; }
h1 a:nth-of-type(2) { animation-delay: .65s; } .l3 a:nth-of-type(1) { animation-delay: .8s; }
@keyframes under { from { background-size: 0 .09em; } }
h1 a:hover, h1 a:focus-visible { background-size: 100% .16em; }
h1 a.on { background-size: 100% 1.02em; color: var(--onpen); animation: none; }
/* everything else steps back while a promise is being looked at */
.look h1 span, .look h1 a:not(.on) { color: color-mix(in srgb, var(--ink) 30%, var(--paper)); } .look h1 a:not(.on) { background-size: 100% 0; animation: none; } .look .role, .look .lead { opacity: .32; }
.nb { white-space: nowrap; } .lead p { max-width: 38em; color: var(--muted); font-size: 1.1rem; line-height: 1.55; text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(16px, 3.2vh, 34px); } .li { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; } .li:hover { color: var(--ink); text-decoration-color: currentColor; }
.big { display: inline-block; min-width: 11.5rem; text-align: center; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; padding: 13px 24px; border-radius: 8px; } .big:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }

/* a chosen promise: its sentence takes the intro's place, in the same space */
.look.open h1 a:not(.on) { color: var(--muted); background-size: 100% .09em; } .look.open h1 a:not(.on):hover, .look.open h1 a:not(.on):focus-visible { background-size: 100% .16em; } .look.open h1 span { color: color-mix(in srgb, var(--ink) 52%, var(--paper)); } .look.open .role, .look.open .lead { opacity: 1; }
.texts { display: grid; } .texts p { grid-area: 1 / 1; opacity: 0; visibility: hidden; } .texts .show { opacity: 1; visibility: visible; transition: opacity .35s; } .lead .texts p + p { max-width: 38em; } .texts strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.3rem; line-height: 1.3; letter-spacing: -.015em; margin-bottom: .2em; }

@media (max-width: 999px) {
  html { font-size: 100%; } .bar { gap: 20px; } nav { gap: 18px; }
  h1 { font-size: clamp(2.3rem, 10vw, 4rem); } h1 span { display: inline; }
}
@media (max-width: 560px) { .bar { flex-wrap: wrap; gap: 2px 18px; } nav { order: 3; flex-basis: 100%; } }
@media (min-width: 1000px) and (max-height: 640px) { .lead p { font-size: 1.02rem; max-width: 38em; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
