/* The public site for actionitems.biz. It shares the app's look: paper and
   ink, one green, and highlighter colours that mark what kind of item a
   passage became. */
/* The typefaces are served from this site, so a visit asks nobody else for anything. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader.woff2) format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/instrument-sans.woff2) format('woff2');
}

:root {
  --paper: #f3f5f1;
  --surface: #ffffff;
  --sunken: #e8ece6;
  --ink: #17211e;
  --muted: #586560;
  --line: #d5dcd4;
  --brand: #1d5648;
  --on-brand: #ffffff;
  --hl-action: #ffe066;
  --hl-discussion: #b9d6ff;
  --hl-decision: #abe7b7;
  --font-ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-doc: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111614;
    --surface: #18201d;
    --sunken: #222c28;
    --ink: #e6ece8;
    --muted: #9aa8a1;
    --line: #2d3934;
    --brand: #7fd0b8;
    --on-brand: #0c1a16;
    --hl-action: #6a5708;
    --hl-discussion: #1f4170;
    --hl-decision: #1d5a2c;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-ui);
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}
.wrap {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 19px/1 var(--font-ui);
}
.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--on-brand);
  font: italic 600 18px/1 var(--font-doc);
}
.top nav {
  display: flex;
  gap: 22px;
  font-size: 15.5px;
}
.top nav a {
  color: var(--ink);
  text-decoration: none;
}
.top nav a:hover,
.top nav a[aria-current='page'] {
  text-decoration: underline;
}

/* Home: headline, then a note being worked */
.lead {
  padding-block: 44px 34px;
}
.lead > * {
  max-width: 760px;
}
h1 {
  margin: 0 0 18px;
  font: 500 clamp(38px, 6vw, 64px) / 1.04 var(--font-doc);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lead p {
  margin: 0;
  max-width: 60ch;
  font-size: 19px;
  color: var(--muted);
}
.desk {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 64px;
}
.note {
  margin: 0;
  padding: 30px 34px 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.note figcaption {
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.note h2 {
  margin: 0 0 14px;
  font: 600 26px/1.15 var(--font-doc);
}
.note p {
  margin: 0 0 10px;
  font: 400 18.5px/1.6 var(--font-doc);
}
.note p:last-child {
  margin-bottom: 0;
}
mark {
  padding: 2px 1px;
  border-radius: 2px;
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
mark.action {
  background: var(--hl-action);
}
mark.decision {
  background: var(--hl-decision);
}
mark.discussion {
  background: var(--hl-discussion);
}
.items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.items li {
  padding: 14px 16px 15px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  background: var(--surface);
}
.items .action {
  border-left-color: var(--hl-action);
}
.items .decision {
  border-left-color: var(--hl-decision);
}
.items .discussion {
  border-left-color: var(--hl-discussion);
}
.kind {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.action .kind {
  background: var(--hl-action);
}
.decision .kind {
  background: var(--hl-decision);
}
.discussion .kind {
  background: var(--hl-discussion);
}
.items strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 16.5px;
  line-height: 1.3;
}
.items span.where {
  font-size: 14px;
  color: var(--muted);
}

/* How it works: three plain columns of prose */
.how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding-block: 54px;
  border-top: 1px solid var(--line);
}
.how h2 {
  margin: 0 0 8px;
  font: 600 23px/1.2 var(--font-doc);
}
.how p {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
}

.status {
  background: var(--brand);
  color: var(--on-brand);
}
.status .wrap {
  padding-block: 42px;
}
.status h2 {
  margin: 0 0 8px;
  font: 500 30px/1.15 var(--font-doc);
}
.status p {
  margin: 0;
  max-width: 62ch;
}
.status a {
  color: inherit;
}

/* Privacy and Support: a readable column */
.doc {
  padding-block: 34px 70px;
}
.doc > * {
  max-width: 700px;
}
.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 10px;
}
.doc .dated {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 15px;
}
.doc h2 {
  margin: 38px 0 8px;
  font: 600 24px/1.2 var(--font-doc);
  scroll-margin-top: 20px;
}
.doc p,
.doc li {
  font-size: 17px;
}
.doc p {
  margin: 0 0 12px;
}
.doc ul {
  margin: 0 0 12px;
  padding-left: 22px;
}
.doc li {
  margin-bottom: 6px;
}
.doc table {
  width: 100%;
  margin: 0 0 14px;
  border-collapse: collapse;
  font-size: 16px;
}
.doc th,
.doc td {
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc th {
  font-weight: 600;
}
.doc td:first-child {
  width: 42%;
}

footer {
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px 30px;
}
footer nav {
  display: flex;
  gap: 18px;
}

@media (max-width: 820px) {
  .wrap {
    width: min(1080px, 100% - 36px);
  }
  .lead {
    padding-block: 26px 26px;
  }
  .desk,
  .how {
    grid-template-columns: 1fr;
  }
  .how {
    gap: 26px;
    padding-block: 40px;
  }
  .note {
    padding: 22px 20px 24px;
  }
  .note p {
    font-size: 17.5px;
  }
}

/* ── Coming soon ───────────────────────────────────────────────────────── */
body.soon {
  --ground: #0f2f27;
  --ground-ink: #eef3ee;
  --ground-muted: #a9bdb4;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ground-ink);
}
.soon-main {
  flex: 1;
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding-block: 48px;
}
.soon-brand {
  margin: 0 0 44px;
  color: var(--ground-ink);
}
.soon-brand .mark {
  background: var(--ground-ink);
  color: var(--ground);
}
.soon h1 {
  margin: 0 0 16px;
  font: 500 clamp(52px, 8.5vw, 104px) / 0.98 var(--font-doc);
  letter-spacing: -0.025em;
}
.soon-lede {
  margin: 0 0 34px;
  max-width: 36ch;
  font-size: 19px;
  color: var(--ground-muted);
}
.beta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 12px;
  max-width: 480px;
}
.beta-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.beta-field label {
  font-size: 13.5px;
  color: var(--ground-muted);
}
.beta-form input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ffffff33;
  border-radius: 8px;
  background: #ffffff12;
  color: var(--ground-ink);
  font: 400 16px/1.3 var(--font-ui);
}
.beta-form input:focus-visible,
.beta-form button:focus-visible {
  outline: 2px solid var(--hl-action);
  outline-offset: 2px;
}
.beta-form button {
  grid-column: 1 / -1;
  padding: 13px 16px;
  border: 0;
  border-radius: 8px;
  background: #ffe066;
  color: #1b1a05;
  font: 600 16.5px/1.2 var(--font-ui);
  cursor: pointer;
}
.beta-form button:hover {
  background: #ffe98c;
}
.beta-form button:disabled {
  opacity: 0.6;
  cursor: default;
}
.beta-message,
.beta-small {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
}
.beta-message:empty {
  display: none;
}
.beta-message {
  color: #ffd0c2;
}
.beta-small {
  color: var(--ground-muted);
}
.soon a {
  color: var(--ground-ink);
}
.beta-done h2 {
  margin: 0 0 6px;
  font: 500 34px/1.1 var(--font-doc);
}
.beta-done p {
  margin: 0;
  color: var(--ground-muted);
}
.beta-done strong {
  color: var(--ground-ink);
  font-weight: 600;
}

/* The page of notes. Grey bars stand in for writing; three passages get marked. */
.sheet {
  justify-self: end;
  width: min(430px, 100%);
  padding: 44px 40px 52px;
  border-radius: 6px;
  background: #fbfcf9;
  box-shadow: 0 30px 60px -20px #00000080;
  transform: rotate(2.2deg);
}
.sheet .l {
  position: relative;
  display: block;
  height: 11px;
  margin-top: 15px;
  border-radius: 3px;
  background: #d9dfd8;
}
.sheet .l.title {
  height: 18px;
  margin: 0 0 26px;
  background: #b9c2ba;
}
.sheet .l.gap {
  margin-top: 34px;
}
.sheet .w40 { width: 40%; }
.sheet .w45 { width: 45%; }
.sheet .w60 { width: 60%; }
.sheet .w66 { width: 66%; }
.sheet .w70 { width: 70%; }
.sheet .w78 { width: 78%; }
.sheet .w85 { width: 85%; }
.sheet .w88 { width: 88%; }
.sheet .w90 { width: 90%; }
.sheet .w92 { width: 92%; }
.sheet .w93 { width: 93%; }
.sheet .w95 { width: 95%; }
.sheet .w97 { width: 97%; }
.sheet .hl {
  position: absolute;
  top: -7px;
  bottom: -7px;
  left: var(--from);
  right: calc(100% - var(--to));
  border-radius: 3px;
  mix-blend-mode: multiply;
  transform-origin: left center;
  animation: mark 0.55s cubic-bezier(0.3, 0.7, 0.2, 1) var(--d) both;
}
.sheet .hl.y { background: #ffe066; }
.sheet .hl.g { background: #abe7b7; }
.sheet .hl.b { background: #b9d6ff; }
@keyframes mark {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .sheet .hl { animation: none; }
}
.soon-foot {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 26px;
  border-top: 1px solid #ffffff1f;
  font-size: 14px;
  color: var(--ground-muted);
}
.soon-foot nav {
  display: flex;
  gap: 18px;
}
@media (max-width: 860px) {
  .soon-main {
    grid-template-columns: 1fr;
    gap: 40px;
    width: min(1120px, 100% - 40px);
    padding-block: 28px 40px;
  }
  .soon-brand {
    margin-bottom: 30px;
  }
  .sheet {
    justify-self: center;
    width: min(360px, 88%);
    padding: 30px 28px 36px;
    transform: rotate(1.6deg);
  }
  .beta-form {
    grid-template-columns: 1fr;
  }
}
