:root {
  --grape: #6750A4;
  --grape-dark: #4A3480;
  --coral: #FF6F61;
  --ink: #29252E;
  --muted: #6B6570;
  --paper: #FFFBF5;
  --panel: #F4EFE8;
  --tape: #FFE89B;
  --line: #E6DFD5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grape: #D0BCFF;
    --grape-dark: #B69DF8;
    --coral: #FFB4AB;
    --ink: #EDE7EE;
    --muted: #B3ABB6;
    --paper: #1C191F;
    --panel: #272329;
    --tape: #4C4428;
    --line: #3A353D;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  padding-inline: 20px;
}

a { color: var(--grape); }
a:hover { color: var(--grape-dark); }

.wrap { max-width: 760px; margin: 0 auto; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grape);
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
}

.brand-mark svg { width: 20px; height: 20px; }

nav.site { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
nav.site a { text-decoration: none; color: var(--muted); }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }

main { padding-block: 40px 56px; }

h1 {
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin-bottom: 12px;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
  margin-top: 36px;
  margin-bottom: 10px;
  font-weight: 800;
}

h3 { font-size: 18px; margin-top: 22px; margin-bottom: 6px; }

p, ul, ol { margin-bottom: 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }
.updated { font-size: 14px; color: var(--muted); }

.paper {
  position: relative;
  background: var(--panel);
  border-radius: 14px;
  padding: 22px 22px 18px;
  margin-block: 26px;
}

.paper::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 84px;
  height: 20px;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--tape);
  border-radius: 3px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-block: 30px;
}

.features .paper { margin: 0; }
.features h3 { margin-top: 4px; }

.cta {
  display: inline-block;
  background: var(--grape);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
  margin-top: 8px;
}

.cta:hover { background: var(--grape-dark); color: var(--paper); }

.danger { border-left: 4px solid var(--coral); }

footer.site {
  border-top: 1px solid var(--line);
  padding-block: 24px 36px;
  font-size: 14px;
  color: var(--muted);
}

footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
footer.site a { color: var(--muted); }
