/* Roy Lapin. One stylesheet for every page. Plain CSS, no build step.
   Change --accent and the whole site changes. */

:root {
  --ground: #F6F6F3;
  --surface: #FFFFFF;
  --ink: #131614;
  --muted: #606662;
  --rule: #E1E3DE;
  --accent: #0E6B58;
  --accent-soft: #E1EDE9;
  --shadow: 0 1px 2px rgba(19, 22, 20, .04), 0 12px 32px -22px rgba(19, 22, 20, .5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E100F;
    --surface: #161917;
    --ink: #E9EBE6;
    --muted: #969C97;
    --rule: #262A27;
    --accent: #58D3AE;
    --accent-soft: #14261F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -22px rgba(0, 0, 0, .9);
  }
}
:root[data-theme="dark"] {
  --ground: #0E100F;
  --surface: #161917;
  --ink: #E9EBE6;
  --muted: #969C97;
  --rule: #262A27;
  --accent: #58D3AE;
  --accent-soft: #14261F;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -22px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 680px; }

h1, h2, h3, .display {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}

.label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px;
  color: var(--muted); text-decoration: none; padding-bottom: 2px;
}
.nav ul a:hover { color: var(--ink); }
.nav ul a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--accent); }
@media (max-width: 560px) {
  .nav .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav ul { gap: 16px; flex-wrap: wrap; }
}

/* ---------- page head ---------- */
.page-head { padding: 72px 0 44px; display: flex; flex-direction: column; gap: 18px; }
.page-head h1 { font-size: clamp(33px, 6vw, 50px); }
.page-head .sub { color: var(--muted); font-size: 18.5px; max-width: 58ch; margin: 0; }
.page-head .sub b { color: var(--ink); font-weight: 500; }

/* ---------- sections ---------- */
section { padding: 60px 0; border-top: 1px solid var(--rule); }
section.first { border-top: 0; padding-top: 0; }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(24px, 4.4vw, 32px); }
.sec-head p { margin: 0; color: var(--muted); max-width: 62ch; }

p { max-width: 66ch; }

/* ---------- buttons ---------- */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.btn {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: .04em;
  text-decoration: none; padding: 11px 18px; border-radius: 3px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--ground);
  transition: opacity .15s ease, border-color .15s ease;
}
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); opacity: 1; }

/* ---------- the two-column claim ---------- */
.claim { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
@media (max-width: 640px) { .claim { grid-template-columns: 1fr; } }
.claim > div { background: var(--surface); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.claim h3 { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.claim p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: none; }
.claim ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- lists of things ---------- */
.rows { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-top: 1px solid var(--rule); }
.row:first-child { border-top: 0; padding-top: 0; }
.row .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row h3 { font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
.row h3 a { text-decoration: none; }
.row h3 a:hover { color: var(--accent); }
.row p { margin: 0; color: var(--muted); font-size: 15.5px; }

.tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 3px 7px; border-radius: 3px; white-space: nowrap;
}
.tag.draft { color: var(--muted); background: transparent; border: 1px solid var(--rule); }

/* ---------- tips ---------- */
.tip { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow); }
.tip .meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tip h3 { font-size: 20px; font-weight: 500; letter-spacing: -.015em; margin-bottom: 14px; }
.tip dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tip dt { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.tip dd { margin: 0; font-size: 16px; }

/* ---------- tools ---------- */
.tool { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--rule); }
.tool:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 640px) { .tool { grid-template-columns: 1fr; gap: 10px; } }
.tool .name { display: flex; flex-direction: column; gap: 6px; }
.tool .name h3 { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.tool .name .cost { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.tool .body p { margin: 0; font-size: 15.5px; }
.tool .body p + p { margin-top: 10px; color: var(--muted); }
.tool .body b { font-weight: 500; }

/* ---------- callout ---------- */
.callout { background: var(--accent-soft); border-radius: 4px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; margin: 30px 0; }
.callout p { margin: 0; font-size: 15.5px; }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.fact .big { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact .cap { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- form ---------- */
form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
input[type="email"] {
  flex: 1 1 260px; min-width: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 15px;
  padding: 11px 14px; border-radius: 3px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
}
input[type="email"]::placeholder { color: var(--muted); }
button[type="submit"] {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: .04em;
  padding: 11px 18px; border-radius: 3px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--ground); cursor: pointer;
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: baseline; }
footer a { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
