/* PlainBlur marketing site. Tokens and composition: DESIGN.md */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --field: #12110e;
  --paper: #f4f1ea;
  --ink: #1c1915;
  --muted: #5c564c;
  --muted-field: #c4baad;
  --rule: rgba(244, 241, 234, 0.2);
  --rule-paper: #d9d1c3;
  --signal: #1f6b4a;
  --signal-field: #22724f;
  --signal-press: #174e38;
  --sage: #7d9a84;
  --amber: #e0b07a;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;
  --wrap: 1120px;
  --header: 4.5rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--field);
  color: var(--paper);
  font: 400 17px/1.5 var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--sage); text-underline-offset: 0.2em; }
a:visited { color: var(--sage); }

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

::selection {
  background: var(--signal);
  color: var(--paper);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  text-wrap: balance;
  hyphens: manual;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-140%);
  z-index: 20;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  text-decoration: none;
}

.skip:focus { transform: none; top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--field);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand cta" "nav nav";
  align-items: center;
  gap: 4px 16px;
  min-height: 0;
  padding: 12px 0 8px;
}

.brand {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 520;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
  font-optical-sizing: auto;
}

.brand:visited { color: var(--paper); }

.mark { width: 22px; height: 22px; flex: none; }

nav { grid-area: nav; display: flex; gap: 20px; }

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted-field);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 450;
  padding: 10px 0;
}

nav a:hover,
nav a:focus-visible {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

.header-cta { grid-area: cta; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--signal-field);
  border-radius: 0;
  background: var(--signal-field);
  color: var(--paper);
  text-decoration: none;
  font: 560 0.9375rem/1 var(--sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.button:visited { color: var(--paper); }
.button:hover { background: var(--signal-press); border-color: var(--signal-press); }
.button:active { background: #123c2c; border-color: #123c2c; }

/* Running headers and annotations */

.running {
  display: flex;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-field);
}

.running p { margin: 0; }

.slate-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
}

.pip {
  width: 8px;
  height: 8px;
  background: var(--signal-field);
  flex: none;
}

.annotation {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 46rem);
  gap: 8px 20px;
  align-items: start;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted-field);
  font-size: 0.9rem;
  line-height: 1.5;
}

.annotation p { margin: 0; }

.note-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--paper);
  overflow-wrap: anywhere;
}

/* Hero */

.hero { padding: 18px 0 72px; }

.hero-frame {
  border: 1px solid var(--rule);
  padding: 22px 18px 18px;
}

.hero h1 {
  margin: 8px 0 0;
  max-width: 12em;
  font-size: clamp(2.55rem, 6.2vw, 5.35rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero h1 .line { display: inline; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 22px 28px;
  margin-top: 26px;
}

.lede {
  margin: 0;
  max-width: 36em;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--paper);
}

.controls { margin-top: 22px; }

.controls ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.controls li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  margin: 0;
  padding: 16px 20px 16px 0;
}

.controls li + li {
  border-left: 1px solid var(--rule);
  padding-left: 18px;
}

.control-no {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sage);
  padding-top: 0.35rem;
}

.control-name {
  display: block;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.control-do {
  display: block;
  margin-top: 4px;
  color: var(--muted-field);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* How it works — the page being shown */

.stage {
  background: var(--paper);
  color: var(--ink);
  padding: 72px 0 80px;
}

.stage :focus-visible { outline-color: var(--signal); }

.stage .running {
  border-bottom-color: var(--rule-paper);
  color: var(--muted);
}

.stage h2 {
  margin: 0 0 8px;
  max-width: 14em;
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.02;
  color: var(--ink);
}

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.step {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 10px 16px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--rule-paper);
}

.step-no {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--signal);
  padding-top: 3px;
}

.step-body {
  display: grid;
  gap: 18px 32px;
  align-items: start;
  min-width: 0;
}

.shot { margin: 0; min-width: 0; justify-self: start; }

.shot figcaption {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.frame {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding: 12px;
  background: var(--field);
  border: 1px solid var(--field);
}

.frame img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.step-result .frame img { width: min(556px, 100%); }

.step-copy h3 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  font-weight: 520;
  color: var(--ink);
}

.step-copy p {
  margin: 0;
  max-width: 38em;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.keys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 8px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--rule-paper);
}

.keys div { min-width: 0; }

.keys dt {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
}

.keys dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

kbd {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
}

/* Pricing */

.pricing { padding: 88px 0 12px; }

.pricing h2 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(2.2rem, 4.4vw, 3.45rem);
  font-weight: 500;
  line-height: 1.04;
}

.rates { margin-top: 36px; }

.rates-legend,
.rate {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.85fr) minmax(8.5rem, 0.8fr) minmax(0, 1.7fr);
  column-gap: 28px;
  align-items: start;
}

.rates-legend {
  padding-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-field);
}

.rate {
  padding: 26px 0 24px;
  border-top: 1px solid var(--rule);
}

.rate:last-of-type { border-bottom: 1px solid var(--rule); }

.rate h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.15rem);
  font-weight: 520;
  line-height: 1;
}

.dollars {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 480;
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-variant-numeric: lining-nums tabular-nums;
}

.cadence {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--muted-field);
}

.rate ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rate li {
  position: relative;
  margin: 0 0 7px;
  padding-left: 14px;
  color: var(--paper);
  font-size: 0.98rem;
  line-height: 1.45;
}

.rate li:last-child { margin-bottom: 0; }

.rate li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--sage);
}

.price-note { max-width: 48em; }

.limit { padding: 36px 0 28px; }

.limit-note { border-top-color: var(--amber); }

.limit .note-label { color: var(--amber); }

.disclaimer { max-width: 48em; color: var(--muted-field); }

/* Footer */

.site-footer { padding: 12px 0 36px; }

.footer-grid {
  display: grid;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.footer-name {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.55rem;
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1;
}

.copy, .legal-note {
  margin: 0;
  color: var(--muted-field);
  font-size: 0.84rem;
  line-height: 1.45;
}

.legal-note + .legal-note { margin-top: 4px; }

.site-footer a,
.site-footer a:visited {
  color: var(--paper);
}

.site-footer a:hover { color: var(--paper); }

/* Legal sheets */

.legal {
  width: min(760px, calc(100% - 32px));
  margin: 36px auto 72px;
  padding: 40px 22px 48px;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

#content:focus,
.legal:focus { outline: none; }

.legal :focus-visible { outline-color: var(--signal); }

.legal h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 0.98;
  color: var(--ink);
}

.legal h2 {
  margin: 2.3rem 0 0.65rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-paper);
  font-size: 1.65rem;
  font-weight: 520;
  line-height: 1.15;
  color: var(--ink);
}

.legal p,
.legal li {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
}

.legal p { margin: 0 0 0.9rem; }

.legal ul {
  margin: 0 0 0.9rem;
  padding-left: 1.15rem;
}

.legal li { margin: 0.35rem 0; }

.legal li::marker { color: var(--signal); }

.legal a,
.legal a:visited {
  color: var(--signal);
}

.legal a:hover { color: var(--signal-press); }

/* Wider layouts */

@media (min-width: 800px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav cta";
    min-height: var(--header);
    padding: 0;
    gap: 24px;
  }

  nav { justify-self: end; }

  .hero { padding: 28px 0 96px; }

  .hero-frame { padding: 28px 36px 22px; }

  .stage { padding: 96px 0 104px; }

  .footer-grid {
    grid-template-columns: auto minmax(0, 34rem);
    align-items: end;
    justify-content: space-between;
  }

  .footer-meta { text-align: right; }

  .legal {
    margin-top: 48px;
    padding: 64px 72px 72px;
  }
}

@media (min-width: 800px) {
  .hero h1 .line { display: block; }
}

@media (min-width: 860px) {
  .step-body { grid-template-columns: auto minmax(0, 1fr); }
  .step:not(.step-result) .frame { width: max-content; }
  .step:not(.step-result) .frame img { max-width: none; }
  .step-result .step-body { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 960px) {
  .step-result { align-items: center; }
  .step-result .step-no { padding-top: 0; }

  .step-result .step-body {
    grid-template-columns: auto minmax(220px, 1fr);
    align-items: center;
  }

  .step-result .step-copy h3 { margin-top: 0; }
}

@media (max-width: 860px) {
  .keys { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .controls ol { grid-template-columns: 1fr; }

  .controls li,
  .controls li + li {
    border-left: 0;
    padding: 14px 0;
    border-top: 1px solid var(--rule);
  }

  .controls li:first-child { border-top: 0; padding-top: 14px; }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }

  .annotation,
  .rates-legend,
  .rate { grid-template-columns: 1fr; }

  .rates-legend { display: none; }

  .rate { row-gap: 10px; padding: 22px 0 20px; }

  .hero h1 { max-width: none; }

  .legal { width: min(760px, calc(100% - 28px)); }
}

@media (max-width: 420px) {
  .keys { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .button,
  .hero-frame,
  .frame,
  .rate,
  .step { border-color: ButtonText; }

  .pip { background: ButtonText; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .stage, .legal, .hero-frame { background: #fff; color: #000; }
  .button { background: #fff; color: #000; border-color: #000; }
  .frame { background: #fff; border-color: #000; }
  a { color: #000; }
}
