/* Plim's about page: the shared look (tokens, mono labels, hairline rules, square corners), sized up for a landing page. */
:root {
  --bg: #fbfbfa; --fg: #1a1a19; --muted: #6b6b66; --faint: #b4b4ae; --soft: #4a4a46;
  --rule: #ececea; --rule2: #d9d9d4; --track: #e6e6e2; --hover: #f3f3f1;
  --focus: #3d6fd6; --good: #2f7d3b; --warn: #b0322a;
  --tile: #1a1a19; --tile-fg: #fbfbfa;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 28px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413; --fg: #e8e8e3; --muted: #9a9a93; --faint: #5c5c57; --soft: #b9b9b2;
    --rule: #262624; --rule2: #34342f; --track: #2c2c29; --hover: #1c1c1a;
    --focus: #7aa2f7; --good: #6cc27a; --warn: #e0695e;
    --tile: #e8e8e3; --tile-fg: #141413;
  }
}
@media (max-width: 760px) { :root { --pad: 16px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--sans); }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
code { font: 0.9em var(--mono); }
.head b, dd, .btn, nav a, .kicker, .term { font-variant-numeric: tabular-nums; }

/* bar */
.bar {
  position: sticky; top: 0; z-index: 10; background: var(--bg);
  border-bottom: 1px solid var(--fg); padding-top: env(safe-area-inset-top);
}
.bar-in, main, .foot-in { max-width: 1120px; margin: 0 auto; padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right)); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; }
.brand svg { width: 24px; height: 24px; }
.brand .tile { fill: var(--tile); }
.brand .pi { stroke: var(--tile-fg); }
nav { display: flex; align-items: center; gap: 18px; font: 12px var(--mono); }
nav > a:not(.btn) { color: var(--muted); text-decoration: none; }
nav > a:not(.btn):hover { color: var(--fg); text-decoration: underline; }
@media (max-width: 640px) { nav > a:not(.btn) { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px;
  border: 1px solid var(--rule2); font: 13px var(--mono); text-decoration: none; background: var(--bg);
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
.btn.primary:hover { background: var(--soft); border-color: var(--soft); }
.btn.small { min-height: 30px; padding: 0 12px; font-size: 12px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* hero */
.hero { padding: 88px 0 48px; max-width: 820px; }
.kicker { font: 12px var(--mono); color: var(--muted); margin: 0 0 18px; }
h1 { font-size: clamp(36px, 6.4vw, 64px); line-height: 1.05; letter-spacing: -0.025em; margin: 0; font-weight: 650; }
h1 span { color: var(--muted); }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--soft); max-width: 640px; margin: 24px 0 0; }
.figures { display: flex; flex-wrap: wrap; gap: 0; margin: 44px 0 0; border-top: 1px solid var(--rule2); }
.figures div { padding: 12px 28px 0 0; }
.figures dt { font: 11px var(--mono); color: var(--muted); }
.figures dd { margin: 0; font: 600 20px var(--mono); }

/* screenshots */
.shots { position: relative; margin: 24px 0 0; padding-bottom: 6%; }
.shots .desk { width: 88%; }
.shots .phone {
  position: absolute; right: 0; bottom: 0; width: 22%;
  border: 1px solid var(--fg); background: #141413;
}
figcaption { font: 12px var(--mono); color: var(--muted); margin-top: 8px; text-align: center; }

/* sections */
section { padding: 96px 0 0; }
.head { font: 11px var(--mono); color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--rule2); padding-bottom: 8px; margin: 0 0 28px; text-transform: lowercase; }
.head b { color: var(--fg); margin-left: 8px; }
.intro { font-size: 20px; max-width: 640px; margin: 0 0 32px; color: var(--soft); }
.big { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 20px; font-weight: 650; }
.split > div > p { color: var(--soft); max-width: 560px; }
.split .btn { margin-top: 12px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
.grid article { border-top: 1px solid var(--rule); padding: 20px 0 24px; }
.grid h3 { font-size: 16px; margin: 0 0 6px; }
.grid p { margin: 0; color: var(--soft); font-size: 15px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split > .head { grid-column: 1 / -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* the key chain */
.keys { padding-top: 40px; }
.keys ol { list-style: none; margin: 0 0 32px; padding: 0; }
.keys li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 0 12px 20px; border-left: 1px solid var(--fg); position: relative; font: 13px var(--mono); }
.keys li::before { content: ""; position: absolute; left: -4px; top: 18px; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--fg); }
.keys li em { font-style: normal; color: var(--muted); font-size: 12px; text-align: right; }
.keys li.out { border-left-style: dashed; }
.keys li.out::before { background: var(--fg); }
.keys table { width: 100%; border-collapse: collapse; font: 13px var(--mono); }
.keys th { font-weight: 400; color: var(--muted); font-size: 11px; text-align: left; border-bottom: 1px solid var(--rule2); padding: 6px 0; }
.keys td { border-bottom: 1px solid var(--rule); padding: 8px 0; }
.keys td.y { color: var(--good); }
.keys td.n { color: var(--muted); }
.keys th:not(:first-child), .keys td:not(:first-child) { width: 72px; }

/* terminal-ish panels */
.term {
  margin: 40px 0 0; padding: 20px 22px; border: 1px solid var(--fg); background: var(--hover);
  font: 13px/1.7 var(--mono); overflow-x: auto;
}
pre.term code { font: inherit; }
.term .c { color: var(--muted); }
.term .p { color: var(--good); }
div.term p { margin: 0 0 14px; }
div.term p:last-child { margin-bottom: 0; }
div.term .who { font-size: 11px; color: var(--muted); margin: 0 0 2px; }
.badge { display: inline-block; border: 1px solid var(--good); color: var(--good); font-size: 10px; padding: 0 6px; margin-left: 6px; }

/* closer */
.closer { text-align: center; padding: 120px 0 112px; }
.closer h2 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -0.02em; line-height: 1.1; margin: 0; font-weight: 650; }
.closer p { color: var(--muted); margin: 14px 0 0; }
.closer .cta { justify-content: center; }

footer { border-top: 1px solid var(--rule2); padding-bottom: env(safe-area-inset-bottom); }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 18px; font: 12px var(--mono); color: var(--muted); }
.foot-in span:first-child { color: var(--fg); font-weight: 600; }
.foot-in a { margin-left: auto; }
