:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1d1b1a;
  --muted: #6f6965;
  --line: #ebe6e2;
  --accent: #b3391f;
  --accent-soft: #fff0ea;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1d1b1a;
    --text: #f0ece8;
    --muted: #a39c96;
    --line: #302c29;
    --accent: #ff8c73;
    --accent-soft: #3a1d15;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.top, .foot {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px max(16px, 4vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
}
.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}
.mark img { width: 100%; height: 100%; display: block; }
.foot { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Holding page */
.hero {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 8vh max(16px, 4vw) 12vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pill {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 14ch;
}
.hero p {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 36px;
}
.contact {
  align-self: flex-start;
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
}
.contact:hover { opacity: 0.88; }

/* Long-form pages */
.doc {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px max(16px, 4vw) 80px;
}
.doc h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.025em; line-height: 1.15; margin: 16px 0 12px; }
.doc h2 { font-size: 21px; letter-spacing: -0.01em; margin: 44px 0 10px; }
.doc h3, .doc h4 { font-size: 17px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.doc .meta { color: var(--muted); font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14px; background: var(--surface); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; background: var(--bg); }
.doc tr:last-child td { border-bottom: 0; }
