:root {
  --frame: #fbf4eb;        /* same as the page: no border */
  --paper: #fbf4eb;        /* soft warm cream */
  --ink: #3e2a24;          /* dark brown text */
  --muted: #9c8b82;        /* taupe secondary text */
  --rule: #e6dcd2;         /* thin dividers */
  --button: #4e3832;       /* dark brown pill */
  --button-ink: #fbf4eb;
  --soft: #f3e8d8;         /* light pill */
  --soft-edge: #e4d6c4;
  --lavender: #e3dafb;
  --sky: #c9defb;
  --butter: #f8df86;
  --mint: #cfe8d5;
  --brand: #4e3832;        /* the little bookmark mark */
  --radius: 28px;
  --column: 40rem;
}

* { box-sizing: border-box; }

html { background: var(--frame); }

body {
  margin: 0;
  padding: 10px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--frame);
  /* text in merriweather; headings in instrument serif (see h1, h2) */
  font-family: "Merriweather", Georgia, serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.paper {
  background: var(--paper);
  border-radius: var(--radius);
  min-height: calc(100vh - 20px);
  padding: 0 clamp(1rem, 4vw, 2.5rem) 2.5rem;
}

/* top bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
}
.logo svg { width: 18px; height: 22px; }
.bar nav { display: flex; gap: 1.4rem; }
.bar nav a { color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

main, .doc { max-width: var(--column); margin: 0 auto; }

/* headings on a highlight block */
.mark {
  display: inline;
  padding: 0.05em 0.25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: var(--lavender);
}
.mark.sky { background: var(--sky); }
.mark.butter { background: var(--butter); }
.mark.mint { background: var(--mint); }

h1, h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.3rem); }

.hero { padding: clamp(4rem, 14vh, 9rem) 0 3rem; }
.lede {
  margin: 1.3rem 0 2rem;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  max-width: 34rem;
}

/* pill buttons */
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill.dark { background: var(--button); color: var(--button-ink); }
.pill.dark:hover { background: #3f2c27; }
.pill.light { background: var(--soft); color: var(--ink); border-color: var(--soft-edge); }
.pill svg { width: 18px; height: 18px; }

section { padding: clamp(3.5rem, 10vh, 6rem) 0 0; }
section > h2 { margin-bottom: 1.6rem; }

/* big divided rows: strong first line, muted second */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li {
  padding: 1rem 0 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.rows li span { display: block; color: var(--muted); font-weight: 300; }
.rows code {
  font-family: inherit;
  background: var(--soft);
  border: 1px solid var(--soft-edge);
  border-radius: 0.4em;
  padding: 0 0.25em;
}

/* commands table */
.commands { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule); }
.commands td {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.commands td:first-child {
  width: 8rem;
  font-weight: 600;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88rem;
  padding-right: 1rem;
}
.commands td:last-child { color: var(--muted); }

.note { color: var(--muted); margin-top: 1.2rem; font-size: 0.92rem; }
.note a, .doc a, footer a { color: var(--ink); text-decoration-color: #6f9bf0; text-underline-offset: 3px; }

.closing { padding-top: clamp(4rem, 12vh, 7rem); }
.closing .actions { margin-top: 2rem; }

footer {
  max-width: var(--column);
  margin: clamp(4rem, 12vh, 7rem) auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}
footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* privacy / terms pages */
.doc { padding: clamp(3rem, 10vh, 6rem) 0 0; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.8rem; }
.doc .updated { color: var(--muted); margin-bottom: 2.5rem; }
.doc h3 {
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  margin: 2.4rem 0 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}
.doc p, .doc li { max-width: 40rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.35rem 0; }

@media (max-width: 560px) {
  body { padding: 6px; }
  .paper { border-radius: 20px; }
  .bar nav a.hide-small { display: none; }
  .pill { width: 100%; }
  .commands td:first-child { width: 6.5rem; }
}
