/* The pages for Why? and What's the Latin on That?: buy pages (index.html, latin.html), the
   thank-you page (thanks.html) and manage.html (a yearly plan's Stripe page).
   Helvetica, green-white paper with a little grain, one dark pill button. */
:root {
  --paper: #f5f9f5;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #55595e;
  --soft: #7a7f85;
  --line: #e2e8e2;
  --pill: rgba(128, 128, 128, .08);
  --pill-line: rgba(128, 128, 128, .35);
  --ok: #2e7d4f;
  --ok-soft: #e3f2e8;
  --warn: #9a5b00;
  --warn-soft: #fbf0dc;
  --shadow: 0 1px 2px rgba(20, 40, 25, .05), 0 12px 32px rgba(20, 40, 25, .07);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101512;
    --card: #1b211d;
    --ink: #f3f5f3;
    --muted: #b4bab5;
    --soft: #8d948f;
    --line: #2c342e;
    --ok: #7fd3a0;
    --ok-soft: #1f3a2a;
    --warn: #f0c27a;
    --warn-soft: #3a2f1c;
    --shadow: none;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  /* a faint grain, so the paper isn't flat */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
.wrap {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px 32px;
}
.mark {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 0 22px; padding: 6px 16px;
  border: 1px solid var(--pill-line); border-radius: 999px; background: var(--pill);
  font-weight: 700; font-size: 15px; letter-spacing: 0; text-decoration: none; color: var(--ink);
}
.card {
  width: min(100%, 34rem);
  padding: 32px clamp(18px, 5vw, 40px) 28px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); box-shadow: var(--shadow);
  text-align: center;
}
h1 { font-size: clamp(1.6rem, 5vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.lead { margin: 12px auto 0; max-width: 28rem; color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; margin-top: 22px; padding: 0 26px;
  border: none; border-radius: 999px; background: var(--ink); color: var(--card);
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--pill-line); }
.small { margin-top: 10px; font-size: 13.5px; color: var(--soft); }
.steps { list-style: none; margin: 26px auto 0; padding-top: 22px; border-top: 1px solid var(--line); max-width: 24rem; text-align: left; display: grid; gap: 10px; counter-reset: s; }
.steps li { position: relative; padding-left: 38px; min-height: 26px; color: var(--muted); counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; line-height: 1; background: var(--ink); color: var(--card);
}
.ui { font-weight: 600; color: var(--ink); white-space: nowrap; }
.sign { margin-top: 24px; font-weight: 600; }
.sign span { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 400; color: var(--soft); }
.sign.quiet { margin-top: 26px; font-size: 13.5px; font-weight: 400; color: var(--soft); } /* a small credit line, not a signature */
.fine { margin: 18px auto 0; max-width: 30rem; font-size: 12px; color: var(--soft); text-align: center; text-wrap: balance; }
.fine a { color: var(--soft); }

/* Plans on a buy page: two side by side, stacked on a phone */
.card--wide { width: min(100%, 44rem); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 14px; margin: 26px auto 0; text-align: left; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
}
.plan--pick { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ok) 35%, transparent); }
.plan-name { font-weight: 700; font-size: 1.05rem; }
.plan-tag {
  position: absolute; top: -11px; right: 14px; padding: 2px 10px; border-radius: 999px;
  background: var(--ok); color: var(--card); font-size: 12.5px; font-weight: 700;
}
.plan-tag[hidden] { display: none; }
.plan-price { margin-top: 8px; font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan-price span { font-size: .95rem; font-weight: 400; letter-spacing: 0; color: var(--soft); }
.plan-price s { margin-left: 6px; font-size: 1.05rem; font-weight: 400; letter-spacing: 0; color: var(--soft); }
.plan-note { margin-top: 10px; color: var(--muted); font-size: 14.5px; flex: 1; }
.plan-note strong { color: var(--ink); }
.plan .btn { width: 100%; margin-top: 16px; }
.left { margin-top: 8px; font-size: 13px; color: var(--ok); font-weight: 600; }
.left:empty { display: none; }
