  :root {
    --paper: #F2F5F9;
    --paper-deep: #E6ECF3;
    --card: #FFFFFF;
    --ink: #13233A;
    --ink-soft: #42506A;
    --muted: #7C879A;
    --rule: #DAE1EA;
    --pine: #26553F;
    --bubble-them: #E9EDF2;
    --bubble-me: #2F6FE4;
    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
         font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
  .wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding-inline: 28px; }
  header { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; }
  .brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
  .brand img { width: 36px; height: 36px; } .brand span { font: 500 22px/1 var(--serif); }
  main { flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding-top: 9vh; padding-bottom: 72px; }
  h1 { margin: 0 0 20px; font: 400 clamp(46px, 6.4vw, 76px)/1.0 var(--serif); letter-spacing: -0.025em; }
  h1 em { font-style: italic; color: var(--pine); }
  .stat { margin: -4px 0 22px; font-size: 14px; color: var(--muted); }
  .stat a { color: inherit; text-underline-offset: 3px; }
  .body { margin: 0 0 34px; max-width: 30rem; color: var(--ink-soft); font-size: 18px; }
  .door { max-width: 25rem; }
  .door label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
  .field { display: flex; padding: 5px; border: 1px solid var(--rule); border-radius: 14px; background: var(--card);
           box-shadow: 0 1px 2px rgba(19,35,58,.04), 0 8px 24px rgba(19,35,58,.05); }
  .field:focus-within { border-color: #AFC0D6; }
  .door input { flex: 1; min-width: 0; padding: 11px 12px; border: 0; background: transparent; color: var(--ink); outline: none;
                font: 400 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
  .door input::placeholder { color: var(--muted); font-family: var(--sans); letter-spacing: 0; }
  .door button, .button { border: 0; border-radius: 10px; padding: 0 18px; background: var(--ink); color: #fff; font: 500 15px/1 var(--sans); cursor: pointer; }
  .door button:hover, .button:hover { background: #1E3554; }
  .door-error { min-height: 20px; margin: 6px 0 0; font-size: 14px; color: #B4473A; }
  .request { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
  .request a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(19,35,58,.3); }
  .cta .button, .accept .button { position: relative; display: inline-block; padding: 4px 2px 16px; background: none; color: var(--ink);
                                   border-radius: 0; font: 500 21px/1.2 var(--sans); text-decoration: none; }
  .cta .button::after, .accept .button::after { content: ""; position: absolute; left: -6px; right: -10px; bottom: 0; height: 15px;
                                   background: url("chalk.svg") no-repeat center / 100% 100%; transition: transform .3s ease; transform-origin: left; }
  .cta .button:hover, .accept .button:hover { background: none; }
  .cta .button:hover::after, .accept .button:hover::after { transform: scaleX(1.04) rotate(-0.6deg); }
  .cta .request, .accept .request { margin-top: 18px; max-width: 26rem; }
  .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-soft); }
  .kept { margin: 44px 0 0; max-width: 27rem; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
  .kept a { color: var(--ink); white-space: nowrap; text-underline-offset: 3px; text-decoration-color: rgba(19,35,58,.3); }
  .art { display: flex; justify-content: center; }
  .art img { width: 100%; max-width: 420px; aspect-ratio: 1; opacity: .92; transform: rotate(-2deg); }
  footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 28px;
           border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
  footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  footer a { color: var(--muted); } footer a:hover, .kept a:hover { color: var(--ink); }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
  .invite-only { display: none; }
  body.invited .invite-only { display: block; }
  body.invited .public-only { display: none; }
  @media (max-width: 860px) {
    main { grid-template-columns: 1fr; gap: 48px; padding-top: 6vh; }
    .art { display: none; }
  }
  @media (max-width: 600px) {
    .wrap { padding-inline: 16px; }
    header { padding-top: 18px; }
    .body { font-size: 17px; }
  }
