:root {
  --paper: #f7f4ee;
  --card: #fdfbf7;
  --raised: #efe9df;
  --ink: #1f1b16;
  --ink-2: #5e554a;
  --muted: #7b7266;
  --line: rgba(31, 27, 22, .10);
  --olive: #3d3d2e;
  --olive-deep: #2b2b20;
  --yellow: #e8f087;
  --yellow-ink: #2b2b20;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Exo 2', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.top { border-bottom: 1px solid var(--line); }

.top-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top img { height: 36px; width: auto; }

.top-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s var(--ease);
}

.top-link:hover { color: var(--ink); }

.page { padding: 48px 0 32px; }

.kicker {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
  margin-bottom: 32px;
}

.date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.section { margin-top: 36px; }

.section h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}

.section h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 20px 0 6px;
}

p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 12px;
  max-width: 68ch;
}

p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--ink); }

ul.list {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

ul.list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

ul.list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--olive);
  border-bottom: 2px solid var(--olive);
  transform: rotate(-45deg);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.section .card + p { margin-top: 12px; }

.version {
  background: var(--yellow);
  color: var(--yellow-ink);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  display: grid;
  gap: 4px;
}

.version p {
  color: inherit;
  margin: 0;
  font-size: 14px;
}

.highlight {
  background: var(--raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
}

.highlight p {
  color: var(--ink-2);
  margin: 0 0 6px;
}

.highlight p:last-child { margin-bottom: 0; }

.faq { border-top: 1px solid var(--line); margin-top: 10px; }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
}

.faq details[open] summary::after { content: '-'; }

.faq .answer {
  padding: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 68ch;
}

.contact-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 6px 0;
}

.contact-row svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--olive);
  margin-top: 2px;
}

.contact-row a {
  color: var(--olive);
  text-decoration: none;
  font-weight: 500;
}

.contact-row a:hover { text-decoration: underline; }

.doc-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-footer a { text-decoration: none; }
.doc-footer a:hover { text-decoration: underline; }

/* When embedded in the site modal, the page keeps only its content. */
.embed .top { display: none; }
.embed .page { padding-top: 32px; }

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .top-inner { height: 56px; }
  .page { padding: 32px 0 24px; }
  h1 { font-size: 30px; }
  .doc-footer { flex-direction: column; gap: 6px; }
}
