@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #faf8f4;
  --ink: #1f1f1f;
  --muted: #68665f;
  --rule: #dedbd4;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 Inter, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; text-decoration-color: #aaa79e; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid #526342; outline-offset: 6px; border-radius: 2px; }
p, h1, h2, figure { margin: 0; }
.page { max-width: 1600px; min-height: 100svh; margin: auto; padding: 0 48px; display: flex; flex-direction: column; }
.landing-page { height: 100dvh; min-height: 0; }
.landing-page > .masthead, .landing-page > footer { flex: none; }
.landing-page > main { min-height: 0; overflow-y: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; font-size: 29px; font-weight: 400; letter-spacing: -1.4px; }
.brand img { display: block; width: 43px; height: auto; }
/* Align the visible letterforms with the mark, accounting for Inter's metrics. */
.brand span { transform: translateY(-0.06em); }
main { flex: 1; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 8px 0 48px; }
.intro { container-type: inline-size; width: 100%; max-width: 960px; text-align: center; }
h1 { font: 400 min(8.5cqi, 64px)/1.08 var(--serif); letter-spacing: -0.035em; white-space: nowrap; }
.description { margin-top: 14px; color: #56544f; font: 400 min(3cqi, 22px)/1.6 var(--serif); white-space: nowrap; }
.privacy-policy { max-width: 640px; margin: 0 auto; padding: 32px 0 64px; font: 400 18px/1.7 var(--serif); overflow-wrap: anywhere; }
.privacy-policy h1 { font: 400 clamp(36px, 7vw, 48px)/1.15 var(--serif); letter-spacing: -0.035em; white-space: normal; }
.privacy-policy .policy-date { margin-top: 12px; color: var(--muted); font: 12px/1.5 Inter, sans-serif; }
.privacy-policy p { margin-top: 18px; }
.privacy-policy h2 { margin-top: 32px; font: 400 24px/1.3 var(--serif); letter-spacing: -0.02em; }
.privacy-policy h2 + p { margin-top: 12px; }
.register-button { flex: none; min-height: 49px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: #fffdfa; white-space: nowrap; font: 12px Inter, sans-serif; }
.register-button:disabled { opacity: 1; -webkit-text-fill-color: currentColor; cursor: not-allowed; }
.register-button:not(:disabled) { cursor: pointer; }
.register-button:focus-visible { outline: 2px solid #526342; outline-offset: 4px; }
.register-dialog { width: min(480px, calc(100% - 40px)); max-height: calc(100svh - 40px); margin: auto; padding: 44px 32px 32px; overflow-y: auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); }
.register-dialog::backdrop { background: rgb(31 31 31 / 28%); }
.register-dialog h2 { font: 400 32px/1.15 var(--serif); letter-spacing: -0.025em; }
.dialog-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font: 24px/1 Inter, sans-serif; cursor: pointer; }
.dialog-close:hover { color: var(--ink); }
.dialog-close:focus-visible { outline: 2px solid #526342; outline-offset: -6px; border-radius: 6px; }
.dialog-description { margin-top: 16px; color: #56544f; font: 400 18px/1.6 var(--serif); }
.register-form { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.register-form[hidden] { display: none; }
.register-status { margin-top: 24px; color: var(--ink); font-size: 14px; line-height: 1.6; }
.register-form input { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 5px; background: #fffdfa; color: var(--ink); font: 16px/1.5 Inter, sans-serif; }
.register-form input::placeholder { color: var(--muted); opacity: 1; }
.register-form input:focus-visible { outline: 2px solid #526342; outline-offset: 2px; }
.keep-posted { align-self: flex-start; min-height: 46px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: #fffdfa; font: 13px Inter, sans-serif; }
.keep-posted:disabled { opacity: 0.65; -webkit-text-fill-color: currentColor; cursor: not-allowed; }
.keep-posted:not(:disabled) { cursor: pointer; }
.keep-posted:focus-visible { outline: 2px solid #526342; outline-offset: 4px; }
.dialog-note { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.writing-preview { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; }
.preview-caption { margin-top: 12px; color: var(--muted); font-size: 14px; text-align: center; }
.preview-frame { position: relative; display: flex; min-width: 0; max-width: 100%; }
.preview-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: var(--paper); color: var(--ink); font: 20px/1 Inter, sans-serif; cursor: pointer; opacity: 0.7; transition: opacity 160ms ease; }
.preview-arrow:hover { background: #fffdfa; opacity: 1; }
.preview-arrow:focus-visible { outline: 2px solid #526342; outline-offset: 3px; opacity: 1; }
.preview-previous { left: 12px; }
.preview-next { right: 12px; }
.preview-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Reserve space for the header, intro, caption and footer; allow small images in short windows. */
.writing-preview img { display: block; width: auto; height: auto; max-width: 100%; max-height: max(0px, calc(100dvh - 420px)); border: 1px solid var(--rule); border-radius: 6px; }
footer { padding: 24px 0; color: var(--muted); font-size: 12px; text-align: center; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.skip-link { position: absolute; top: 10px; left: 10px; padding: 8px 12px; background: var(--paper); z-index: 1; }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (hover: hover) and (pointer: fine) {
  .preview-frame:not(:hover):not(:focus-within) .preview-arrow { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .preview-arrow { transition: none; }
}

@media (max-width: 760px) {
  .page { padding: 0 20px; }
  .masthead { gap: 12px; padding: 24px 0 28px; }
  .brand { font-size: 22px; gap: 9px; letter-spacing: -1px; }
  .brand img { width: 32px; }
  .hero { gap: 24px; padding-bottom: 32px; }
  .writing-preview img { max-height: max(0px, calc(100dvh - 320px)); }
  .description { margin-top: 10px; }
  .register-button { min-height: 44px; padding: 0 12px; font-size: 11px; }
}

@media (forced-colors: active) {
  .register-button:disabled { border-color: GrayText; color: GrayText; }
  .keep-posted:disabled { border-color: GrayText; color: GrayText; opacity: 1; }
}
