:root {
  color-scheme: light dark;
  --ink: #1a1a1a;
  --paper: #fbfaf7;
  --quiet: #5c5c5c;
  --rule: #e2ded6;
  --accent: #d9a02b;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece9e3;
    --paper: #161513;
    --quiet: #a09a90;
    --rule: #33302b;
    --accent: #e0b559;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 system-ui, sans-serif;
}
main { max-width: 34rem; margin: 0 auto; padding: 3rem 1.5rem 6rem; }
a { color: inherit; }
h1 { font-size: 2rem; line-height: 1.1; margin: 1.5rem 0; }
h2 { font-size: 1.1rem; margin: 2.5rem 0 0.75rem; }
ul { padding-left: 1.1rem; }
li { margin: 0.35rem 0; }
pre {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
}
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

body > nav {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
}
body > nav a { text-decoration: none; color: var(--quiet); }
body > nav a:hover, body > nav a[aria-current] { color: var(--ink); }
body > nav .home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  color: var(--ink);
  font-weight: 700;
}
body > nav .open, body > nav .open:hover { margin: 0; color: #1c1f1a; }
body > nav .home img { width: 1.75rem; height: 1.75rem; border-radius: 0.35rem; }

.mark {
  display: block;
  width: 8.5rem;
  height: 8.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 1.6rem;
}
.hero h1 { font-size: 2.5rem; margin: 0 0 0.5rem; text-align: center; }
.lede {
  font-size: 1.2rem;
  color: var(--quiet);
  margin: 0 0 2.5rem;
  text-align: center;
}
.center { text-align: center; }
.said {
  margin: 3rem 0;
  text-align: center;
}
.said blockquote {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.35;
  font-weight: 600;
}
.said figcaption {
  margin-top: 0.5rem;
  color: var(--quiet);
  font-size: 0.85rem;
}
.open {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  background: var(--accent);
  color: #1c1f1a;
  text-decoration: none;
  font-weight: 600;
}
.fine { color: var(--quiet); font-size: 0.95rem; }

#pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 1rem;
}
@media (max-width: 36rem) {
  #pricing { grid-template-columns: 1fr; }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.4rem 1.2rem;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}
.plan.best { border-color: var(--accent); }
.plan.wide { grid-column: 1 / -1; }
.tag {
  position: absolute;
  top: -0.7rem;
  left: 1.1rem;
  background: var(--accent);
  color: #1c1f1a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.plan h3 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--quiet);
}
.rate { display: flex; align-items: baseline; gap: 0.25rem; margin: 0; }
.rate b { font-size: 2.2rem; line-height: 1; font-weight: 700; }
.rate span { color: var(--quiet); font-size: 0.95rem; }
.billed {
  margin: 0.45rem 0 1.2rem;
  color: var(--quiet);
  font-size: 0.85rem;
}
.feature { margin: 0 0 1.2rem; font-size: 0.9rem; }
.buy {
  display: block;
  margin-top: auto;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.buy.strong { background: var(--ink); color: var(--paper); }

.notice { text-align: center; padding-top: 1.5rem; }
.notice .mark { width: 6rem; height: 6rem; border-radius: 1.2rem; }
.notice p { color: var(--quiet); }

main.wide { max-width: 72rem; }
.source .commit { color: var(--quiet); font-size: 0.9rem; margin: 0 0 0.5rem; }
.panes {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 1rem;
}
.panes .tree, .panes .file {
  height: 70vh;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.tree { padding: 0.5rem 0.25rem; font-size: 0.9rem; }
.tree ul { list-style: none; padding-left: 0.9rem; margin: 0; }
.tree > ul { padding-left: 0.25rem; }
.tree li { margin: 0; }
.tree button, .tree a {
  display: block;
  width: 100%;
  padding: 0.1rem 0.35rem;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.tree button::before { content: "▸ "; color: var(--quiet); }
.tree button[aria-expanded="true"]::before { content: "▾ "; }
.tree button:hover, .tree a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.tree a[aria-current] { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.file { display: flex; flex-direction: column; }
.pane-note { color: var(--quiet); text-align: center; padding: 1.5rem 1rem; margin: 0; }
.file h2 {
  margin: 0;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--rule);
  font: 600 0.9rem var(--mono);
}
.file pre {
  flex: 1;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre;
  overflow: visible;
}
@media (max-width: 48rem) {
  .panes { grid-template-columns: minmax(0, 1fr); }
  .panes .tree { height: 40vh; }
}

.posts { list-style: none; padding: 0; }
.posts li { margin: 0 0 1.5rem; }
.posts a { text-decoration: none; }
.posts h2 { margin: 0.1rem 0 0.25rem; }
.posts p { margin: 0; color: var(--quiet); }
time, .byline { color: var(--quiet); font-size: 0.9rem; }
.subtitle { color: var(--quiet); font-size: 1.15rem; margin-top: -0.75rem; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--quiet);
  font-size: 0.9rem;
  text-align: center;
}
.newsletter { margin-bottom: 2rem; }
.newsletter h3 { margin: 0 0 0.4rem; color: var(--ink); font-size: 1rem; }
.newsletter p { margin: 0 0 1rem; }
.newsletter form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter input[type="email"] {
  width: 100%;
  max-width: 16rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.newsletter button {
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #1c1f1a;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.newsletter .hp { position: absolute; left: -9999px; }
