:root {
  --paper: #F4F1EA; --ink: #1C1B19; --muted: #5F5E5A; --faint: #8A867C; --hair: #D3D1C7; --red: #A32D2D;
  --serif: 'IBM Plex Serif', Georgia, serif; --sans: 'IBM Plex Sans', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.7, 0, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.faint { color: var(--faint); font-size: 12px; }

.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 28px 40px 24px; }
.top { display: flex; justify-content: space-between; align-items: baseline; }
.wordmark { font-family: var(--serif); font-size: 20px; letter-spacing: -.01em; }

.door { flex: 1; width: min(560px, 100%); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 64px 0; }
.label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.line { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6vw, 68px); line-height: 1.06; letter-spacing: -.02em; margin-top: 18px; }
.line span { display: block; }
.line .soft { color: var(--faint); font-style: italic; }

/* entrance: everything arrives slowly, in order */
.arrive { opacity: 0; transform: translateY(10px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.arrive.in { opacity: 1; transform: none; }

/* the redacted fragment */
.fragment { margin-top: 56px; padding-left: 20px; border-left: 1px solid var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.fragment figcaption { font-size: 11px; color: var(--faint); margin-bottom: 10px; }
.fragment p + p { margin-top: 10px; }
[data-r] {
  display: inline-block; white-space: nowrap; cursor: default; color: transparent;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat left center / 100% 68%;
  transition: background-size .55s var(--ease), color .3s;
}
[data-r].show { color: var(--ink); background-position: right center; background-size: 0% 68%; }
[data-r].lit { color: var(--red); }
.hint { font-size: 11px; color: var(--faint); margin-top: 16px; transition: opacity .6s; }

.ask { margin-top: 48px; align-self: flex-start; background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 6px 0; font-size: 16px; font-weight: 500; cursor: pointer; transition: opacity .3s; }
.ask span { display: inline-block; transition: transform .3s var(--ease); }
.ask:hover span { transform: translateX(4px); }

.register { margin-top: 40px; border: 1px solid var(--ink); padding: 22px 24px 20px; animation: unfold .7s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(8px); } }
.reg-head { font-size: 11px; color: var(--faint); margin-bottom: 6px; }
.register label { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--hair); padding: 14px 0 8px; }
.register label span { width: 76px; flex: none; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.register input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-family: var(--serif); font-size: 19px; padding: 2px 0; }
.register input::placeholder { color: #C9C3B5; }
.register label:focus-within { border-color: var(--ink); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.err { color: var(--red); font-size: 13px; margin-top: 14px; }
.send { margin-top: 20px; background: var(--ink); color: var(--paper); border: 0; padding: 12px 22px; font-size: 14px; font-weight: 500; cursor: pointer; }
.send:disabled { opacity: .5; cursor: default; }

.received { margin-top: 40px; animation: unfold .9s var(--ease); }
.received .line { font-size: clamp(32px, 4.4vw, 48px); }

.bottom { display: flex; justify-content: center; }

@media (max-width: 760px) {
  .page { padding: 20px 16px; }
  .door { padding: 40px 0; }
  .fragment { font-size: 17px; margin-top: 40px; }
  .register { padding: 16px 16px 18px; }
  .register label span { width: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .arrive { transition: none; opacity: 1; transform: none; }
  [data-r]::after { transition: none; }
}

/* rounded corners on every box */
.register { border-radius: 14px; }
.send { border-radius: 10px; }
[data-r] { border-radius: 3px; }
