@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600&family=Inter:wght@400;500;600&display=swap");

:root {
  --brand: #dc3c00;
  --brand-dark: #a52d00;
  --ink: #1d1d1f;
  --muted: #6b6b72;
  --rule: #e2dedd;
  --bg: #f5f3f3;
  --surface: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px 72px; }

.site-header {
  display: flex; align-items: center; gap: 10px;
  max-width: 820px; margin: 0 auto; padding: 20px;
}
.site-header a.brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink);
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 600; font-size: 18px; letter-spacing: -0.03em;
}
.site-header img { width: 30px; height: 30px; border-radius: 8px; }
.beta {
  background: rgba(220, 60, 0, 0.1); color: var(--brand-dark);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  border-radius: 999px; padding: 3px 9px;
}

.meta {
  color: var(--muted); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-top: 1px solid var(--rule); padding-top: 12px;
}

h1 {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 38px; line-height: 1.05; letter-spacing: -0.035em;
  font-weight: 600; margin: 14px 0 6px;
}
h2 {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 21px; font-weight: 600; letter-spacing: -0.02em;
  margin: 40px 0 10px; padding-top: 14px; border-top: 1px solid var(--rule);
}
h3 {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: -0.015em;
  margin: 26px 0 6px;
}

p, li { font-size: 15px; }
ul, ol { padding-left: 20px; }
li { margin-bottom: 6px; }
ul.tight li { margin-bottom: 3px; }

a { color: var(--brand-dark); text-underline-offset: 3px; }

code {
  background: #ebe8e7; border-radius: 5px;
  padding: 1px 5px; font-size: 0.9em;
}

.lede { font-size: 17px; line-height: 1.6; color: var(--ink); }

.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 16px; padding: 18px 22px; margin: 22px 0;
}
.card p:first-child { margin-top: 0; }
.card ul:last-child, .card p:last-child { margin-bottom: 0; }

.note {
  border-left: 3px solid var(--brand);
  padding: 2px 0 2px 16px; margin: 20px 0;
  color: var(--muted); font-size: 14px;
}

/* Tables scroll rather than forcing the page sideways on a phone. */
table {
  width: 100%; border-collapse: collapse;
  margin: 18px 0; font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--rule); border-radius: 12px;
  overflow: hidden;
}
th, td {
  text-align: left; vertical-align: top;
  padding: 10px 14px; border-bottom: 1px solid var(--rule);
}
th { font-weight: 600; background: #efecec; font-size: 13px; }
tr:last-child td { border-bottom: 0; }

.table-scroll { overflow-x: auto; }

footer.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 56px; padding-top: 20px;
  font-size: 13px; color: var(--muted);
}
footer.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }

@media (max-width: 600px) {
  h1 { font-size: 30px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  th, td { white-space: normal; min-width: 130px; }
}
