/* Duetling legal pages.
   Palette follows the app: paper ground, amber accent, ink text. */

:root {
  --paper: #f5f0e8;
  --card: #fbf8f3;
  --ink: #2b2621;
  --muted: #6f665c;
  --faint: #9c9287;
  --amber: #c0673f;
  --hairline: #e2d9cc;
  --sleep: #5c6b8a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14110e;
    --card: #1c1815;
    --ink: #ece3d6;
    --muted: #a89b8b;
    --faint: #7d7264;
    --amber: #d98a5e;
    --hairline: #2e2822;
    --sleep: #8fa0c0;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

header.site {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 36px;
}

header.site a.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

header.site .tag { color: var(--faint); font-size: 15px; margin-top: 4px; }

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  margin: 44px 0 10px;
  letter-spacing: -0.01em;
}

h3 { font-size: 17px; margin: 28px 0 6px; }

p, li { color: var(--ink); }
li { margin-bottom: 6px; }
ul { padding-left: 22px; }

a { color: var(--amber); }
a:hover { text-decoration: none; }

.dates {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 32px;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 22px 0;
}

.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.callout {
  border-left: 3px solid var(--amber);
  background: var(--card);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 16px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

th { color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; }

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

.nav-cards { display: grid; gap: 14px; margin: 28px 0; }

a.nav-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
}

a.nav-card:hover { border-color: var(--amber); }
a.nav-card strong { display: block; font-size: 18px; margin-bottom: 3px; }
a.nav-card span { color: var(--muted); font-size: 15px; }

footer.site {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  color: var(--faint);
  font-size: 15px;
}

footer.site a { color: var(--muted); }

code {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 15px;
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 21px; }
}
