/* Linked as site.css?v=N from each page: raise N there with each change here, so a browser that kept the old file (10 minutes) fetches this one. */
/* The pages beside the home page (privacy, terms, beta): the home page's paper, grid and type, set for reading. */
:root {
  --paper: #ede0c8;
  --grid: rgba(120, 90, 50, 0.13);
  --grid-major: rgba(120, 90, 50, 0.24);
  --ink: #2b2118;
  --ink-soft: #5e4f3f;
  --leaf: #16a34a;
  --leaf-deep: #166534;
  --card: rgba(255, 252, 244, 0.9);
  --line: rgba(80, 60, 30, 0.18);
  --field: #fffdf7;
  --warn: #9a3412;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d1913; --grid: rgba(237, 224, 200, 0.06); --grid-major: rgba(237, 224, 200, 0.12);
    --ink: #f1e8d6; --ink-soft: #c2b49c; --leaf: #22c55e; --leaf-deep: #86efac;
    --card: rgba(43, 37, 29, 0.92); --line: rgba(237, 224, 200, 0.14); --field: #2a241c; --warn: #fdba74;
  }
}
:root[data-theme="dark"] {
  --paper: #1d1913; --grid: rgba(237, 224, 200, 0.06); --grid-major: rgba(237, 224, 200, 0.12);
  --ink: #f1e8d6; --ink-soft: #c2b49c; --leaf: #22c55e; --leaf-deep: #86efac;
  --card: rgba(43, 37, 29, 0.92); --line: rgba(237, 224, 200, 0.14); --field: #2a241c; --warn: #fdba74;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 17px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 28px 20px 48px; }
header { display: flex; align-items: center; gap: 10px; }
header a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.mark { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.word { font: 650 22px/1 Fraunces, Georgia, serif; letter-spacing: -0.01em; }
main { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 32px 32px; }
h1 { font: 500 clamp(32px, 5vw, 44px)/1.1 Fraunces, Georgia, serif; letter-spacing: -0.02em; margin: 0 0 10px; }
h2 { font: 600 20px/1.3 Inter, sans-serif; margin: 32px 0 8px; }
p, li { color: var(--ink); }
.lede { color: var(--ink-soft); margin: 0 0 8px; }
.effective { font-size: 15px; color: var(--ink-soft); margin: 0 0 20px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
a { color: var(--leaf-deep); font-weight: 600; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 640px) {
  .wrap { padding: 20px 16px 36px; }
  main { padding: 20px 18px 24px; border-radius: 14px; }
  body { font-size: 16.5px; }
}

/* The home page's hero picture, across the card under the lede (people come to the beta page straight from links). */
.hero-shot { display: block; width: 100%; height: auto; margin: 18px 0 6px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(60, 40, 10, 0.18); }

/* How it works: three of the app's screens in a row, the plan wide and the two phone screens beside it, at one
   height; on a phone, the plan across the top and the two screens side by side under it. */
.how { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; grid-template-columns: 2.3fr 1fr 1fr; gap: 14px; align-items: start; }
.how li { margin: 0; display: grid; gap: 8px; min-width: 0; }
.how a { display: block; border-radius: 10px; }
.how img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(60, 40, 10, 0.12); }
.how p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.how b { color: var(--ink); }
@media (max-width: 640px) {
  .how { grid-template-columns: 1fr 1fr; }
  .how li:first-child { grid-column: 1 / -1; }
}

/* The beta sign-up form */
form { display: grid; gap: 18px; margin-top: 20px; }
label, legend { font-weight: 600; font-size: 15.5px; }
.optional { font-weight: 400; color: var(--ink-soft); }
/* 16px at least: smaller, and iPhones zoom in on the field. */
input[type=text], input[type=email], textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; min-height: 46px;
  font: 400 16px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 10px;
}
.message:empty { padding: 0; border: 0; }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.choices label, .check { font-weight: 400; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.choices input, .check input { width: 20px; height: 20px; accent-color: var(--leaf-deep); }
.hint { font-size: 14px; color: var(--ink-soft); font-weight: 400; margin: 4px 0 0; }
label[for] { display: block; }
button[type=submit] {
  justify-self: start; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  font: 600 16px/1 Inter, sans-serif; color: #fff; background: #0f766e; cursor: pointer;
}
button[type=submit][disabled] { opacity: 0.6; cursor: default; }
.message { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.message.warn { color: var(--warn); }
.message.done { border-left: 4px solid var(--leaf); }
/* Cloudflare Turnstile's check: its room kept while it loads, so the button doesn't move. */
.human-check { min-height: 65px; }
/* Left empty by people; filled only by bots that fill every field. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
