@font-face { font-family: "Caveat"; src: url("Caveat.ttf") format("truetype"); font-display: swap; }

:root {
  --paper: #f6f3ec; --paper-2: #efebe2; --ink: #1c1d21; --ink-2: #5d6068; --rule: #ddd8cc;
  --card: #fbfaf6; --accent: #1c1d21; --on-accent: #f6f3ec;
  --blue: #94c2ff; --green: #8ce0b3; --purple: #c2a8ff; --yellow: #ffd140; --orange: #fa9e73; --pink: #ff9ec2;
  --rail: #232429;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #15161a; --paper-2: #1c1d22; --ink: #ece8df; --ink-2: #a3a39d; --rule: #2c2d33;
          --card: #1d1e23; --accent: #ece8df; --on-accent: #15161a; --rail: #2c2d33; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
       font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
       -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

/* The app's own resting pill, docked to the right edge of the page. */
.rail { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); z-index: 5;
        display: flex; flex-direction: column; gap: 9px; padding: 11px 5px;
        background: var(--rail); border-radius: 999px; box-shadow: 0 6px 20px rgb(0 0 0 / .18); }
.rail i { display: block; width: 8px; height: 20px; border-radius: 4px; }
.rail i:nth-child(1) { background: var(--blue); }   .rail i:nth-child(2) { background: var(--green); }
.rail i:nth-child(3) { background: var(--purple); } .rail i:nth-child(4) { background: var(--yellow); }
.rail i:nth-child(5) { background: var(--orange); } .rail i:nth-child(6) { background: var(--pink); }
@media (max-width: 720px) { .rail { display: none; } }

header.top { display: flex; align-items: center; justify-content: space-between; padding-block: 26px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
nav a { margin-left: 22px; text-decoration: none; color: var(--ink-2); font-size: 15px; }
nav a:hover, nav a[aria-current] { color: var(--ink); }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 720; }
.hero p.lede { font-size: 19px; color: var(--ink-2); margin: 0 0 14px; max-width: 30em; }
.hand { font-family: "Caveat", "Bradley Hand", cursive; font-size: 29px; line-height: 1.2; color: var(--ink); margin: 6px 0 30px; }
.hero figure { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 0 var(--rule), 0 24px 60px -24px rgb(0 0 0 / .35); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; } }

.cta { display: inline-flex; flex-direction: column; gap: 2px; padding: 13px 22px; border-radius: 12px;
       background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; }
.cta small { font-weight: 450; opacity: .7; font-size: 13px; }
.meta { font-size: 14px; color: var(--ink-2); margin-top: 14px; }

.points { border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 48px 0 80px; }
.points h3 { font-size: 17px; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.points h3::before { content: ""; width: 7px; height: 18px; border-radius: 4px; background: var(--c); flex: none; }
.points p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; gap: 28px; } }

/* Text pages */
.page { max-width: 680px; padding: 24px 0 96px; }
.page h1 { font-size: 40px; letter-spacing: -.03em; line-height: 1.1; margin: 20px 0 10px; }
.page .sub { color: var(--ink-2); margin: 0 0 36px; }
.page h2 { font-size: 20px; letter-spacing: -.015em; margin: 44px 0 10px; }
.page p, .page li { color: var(--ink); }
.page ul, .page ol { padding-left: 1.2em; }
.page li { margin: 6px 0; }
.contact { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; margin: 8px 0 8px; }
.contact a { font-weight: 600; font-size: 19px; }
details { border-top: 1px solid var(--rule); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--ink-2); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 2px; color: var(--ink-2); }
kbd { font: 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper-2); border: 1px solid var(--rule);
      border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.updated { color: var(--ink-2); font-size: 15px; }

footer.bottom { border-top: 1px solid var(--rule); padding-block: 26px 40px; display: flex; justify-content: space-between;
                flex-wrap: wrap; gap: 12px; color: var(--ink-2); font-size: 14px; }
footer.bottom a { color: var(--ink-2); margin-right: 18px; text-decoration: none; }
footer.bottom a:hover { color: var(--ink); }

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  header.top { padding-block: 20px; }
  nav a { margin-left: 16px; }
  .brand img { width: 26px; height: 26px; }
  .hero h1 { font-size: 34px; }
  .cta { width: 100%; }
}
