@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --mist: #e6ecec;
  --paper: #f4f7f6;
  --ink: #13232b;
  --ink-soft: #3d525b;
  --current: #2e5e6e;
  --willow: #5d7a3f;
  --wing: #bfd6da;
  --line: #c3d0d1;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(1rem, 5vw, 3rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mist: #0f1c22; --paper: #16272f; --ink: #e4ecec; --ink-soft: #a6b9be;
    --current: #8fc0cf; --willow: #a7c47e; --wing: #28434d; --line: #2b4048;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font: 1.125rem/1.65 var(--serif); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--current); }
:focus-visible { outline: 3px solid var(--current); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; background: var(--ink); color: var(--mist); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.bar { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem var(--gutter); max-width: 76rem; margin: 0 auto; font-family: var(--sans); }
.brand { display: inline-flex; border-radius: 6px; }
.brand img { display: block; height: 2.6rem; width: auto; }
@media (prefers-color-scheme: dark) {
  /* The wordmark is dark ink, so it sits on a light plate in dark mode. */
  :root:not([data-theme="light"]) .brand { background: #e6ecec; padding: .35rem .8rem; }
  :root:not([data-theme="light"]) .brand img { height: 2.1rem; }
}
.bar-link { font-size: .95rem; color: var(--ink); }

.hero { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); max-width: 76rem; margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(3rem, 8vw, 6rem); align-items: center; }
@media (min-width: 62rem) { .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; } }
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 300; margin-bottom: 1.5rem; }
.lede { font-size: 1.3rem; color: var(--ink-soft); max-width: 34em; }

.button {
  display: inline-block; font: 600 1rem var(--sans); background: var(--ink); color: var(--mist);
  border: 0; padding: .85rem 1.4rem; border-radius: 4px; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--current); }

/* The demo: one memorable thing */
.demo { margin: 0; }
.note {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.5rem 1.6rem 1.7rem; min-height: 15.5rem; position: relative;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(19, 35, 43, .45);
}
.note-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font: 500 .9rem var(--sans); color: var(--ink-soft); margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.timer { font-variant-numeric: tabular-nums; color: var(--willow); font-weight: 600; }
.note-body { font-size: 1.2rem; line-height: 1.7; margin: 0; }
.note-body .w { transition: opacity 1.1s ease, filter 1.1s ease; }
.note-body .w.gone { opacity: 0; filter: blur(5px); }
.note-gone { font-style: italic; color: var(--ink-soft); position: absolute; inset: 4.2rem 1.6rem auto; font-size: 1.2rem; }
.note.erased .timer { color: var(--ink-soft); }

.log { margin-top: 1rem; border-left: 3px solid var(--willow); padding: .2rem 0 .2rem 1rem; font: .95rem/1.5 var(--sans); min-height: 5.6rem; }
.log-empty { color: var(--ink-soft); margin: 0; }
.log-entry { margin: 0; }
.log-entry div { display: flex; gap: .75rem; }
.log-entry dt { font-weight: 600; min-width: 8.6rem; }
.log-entry dd { margin: 0; color: var(--ink-soft); }
.log-entry:not([hidden]) { animation: settle .5s ease both; }
@keyframes settle { from { opacity: 0; transform: translateY(4px); } }

figcaption { margin-top: 1rem; font: .9rem var(--sans); color: var(--ink-soft); }
.link { font: inherit; background: none; border: 0; padding: 0; margin-left: .4rem; color: var(--current); text-decoration: underline; cursor: pointer; }

.band, .commit, .signup { padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.band > *, .commit > *, .signup > * { max-width: 76rem; margin-inline: auto; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 300; margin-bottom: 2rem; }
h3 { font-size: 1.35rem; line-height: 1.25; font-weight: 500; margin-bottom: .6rem; }
.cols { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .cols { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.cols p { color: var(--ink-soft); max-width: 30em; }

.commit > * { max-width: 44rem; margin-inline: auto; }
.rules { list-style: none; padding: 0; margin: 0 0 2rem; }
.rules li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.fine { font-size: 1rem; color: var(--ink-soft); font-style: italic; }

.signup { background: var(--ink); color: var(--mist); }
.signup > * { max-width: 40rem; margin-inline: auto; }
.signup h2 { margin-bottom: 1rem; }
.signup p { color: var(--wing); }
.signup label { display: block; font: 600 .95rem var(--sans); margin-bottom: .4rem; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; }
.row input[type="email"] { flex: 1 1 15rem; font: 1rem var(--sans); padding: .85rem 1rem; border-radius: 4px; border: 1px solid var(--wing); background: var(--mist); color: #13232b; }
.signup .button { background: var(--wing); color: #13232b; }
.signup .button:hover { background: #fff; }
.signup :focus-visible { outline-color: var(--wing); }
.hp { position: absolute; left: -999px; }
.status { margin: .9rem 0 0; min-height: 1.6em; font: 1rem var(--sans); color: var(--mist) !important; }

footer { padding: 2rem var(--gutter); text-align: center; font: .9rem var(--sans); color: var(--ink-soft); }
footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .note-body .w { transition: none; }
  .log-entry:not([hidden]) { animation: none; }
}
