:root {
  --ink: #17151f;
  --muted: #6e6a7c;
  --line: #e2ddec;
  --bg: #fbfafd;
  --mho: #6c4ad6;
  --mho-deep: #4f33a8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* A very faint grain over the white, so it isn't flat. */
body { background-color: var(--bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }

.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(40px, 8vh, 72px); padding: 48px 20px; }

h1 {
  margin: 0;
  font-size: clamp(26px, 5.6vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 760;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  column-gap: 0.26em;
}

/* The slot machine: the window is one line tall; its width follows the word showing. */
.slot {
  position: relative;
  display: inline-block;
  transition: width 0.52s cubic-bezier(0.34, 1.3, 0.5, 1);
}
.window { display: block; height: 1.1em; overflow: hidden; margin: 0 -0.08em; padding: 0 0.08em; }
.reel { display: block; transform: translateY(0); }
.reel.spinning { transition: transform 0.52s cubic-bezier(0.5, -0.25, 0.3, 1.25); }
.word { display: block; height: 1.1em; line-height: 1.1; white-space: nowrap; text-align: center; }
.word { color: var(--mho); font-weight: 820; }
.word.measure { position: absolute; visibility: hidden; left: 0; top: 0; }

.rest { white-space: nowrap; }

.doors { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.door {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
  color: var(--mho-deep);
  border: 1.5px solid var(--line);
  background: #fff;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.door:hover { border-color: var(--mho); }
.door.primary { background: var(--mho); border-color: var(--mho); color: #fff; }
.door.primary:hover { background: var(--mho-deep); border-color: var(--mho-deep); }
.door:focus-visible { outline: 3px solid var(--mho); outline-offset: 3px; }

/* Header and footer share one content column, inset from the window edges. */
:root { --gutter: max(24px, calc((100% - 1120px) / 2)); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand svg { width: 30px; height: 30px; overflow: visible; }
.brand:focus-visible { outline: 2px solid var(--mho); outline-offset: 4px; border-radius: 6px; }
.links { display: flex; gap: 24px; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; }
.links a:hover { color: var(--mho-deep); }
.links a:focus-visible { outline: 2px solid var(--mho); outline-offset: 4px; border-radius: 4px; }

.page { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 40px 20px; }
.page h1 { display: block; text-align: left; font-size: clamp(30px, 5vw, 48px); margin-bottom: 16px; }
.page p { color: var(--muted); font-size: 17px; line-height: 1.55; }
.page p.lead { color: var(--ink); font-size: 19px; }
.page.centred { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 1040px; gap: 0; }
.page.centred p { margin: 0; text-wrap: pretty; }
.page.centred .statement { color: var(--ink); font-size: clamp(22px, 2.8vw, 32px); line-height: 1.35; font-weight: 420; letter-spacing: -0.015em; }
.page.centred .statement .mho { color: var(--mho); font-weight: 700; }
.page.centred .mail { font-size: clamp(26px, 3.6vw, 42px); font-weight: 780; letter-spacing: -0.03em; }
.page.centred .mail a { color: var(--mho); text-decoration: none; }
.page.centred .mail a:hover { color: var(--mho-deep); }

/* Quiet, in the bottom-left corner. */
.foot { padding: 14px 20px; color: #a6a2b3; font-size: 12px; text-align: left; }

@media (prefers-reduced-motion: reduce) {
  .slot, .reel.spinning { transition: none; }
}
