/* Paper + ink, matching the app's tokens (mock/ideas/shared/tokens.js). */
:root {
  --paper: #faf7f0;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-faint: #8a8a8a;
  --line: #e2ddd2;
  --accent: #c8794f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16150f;
    --ink: #f2eee4;
    --ink-soft: #c4bfb2;
    --ink-faint: #8a8578;
    --line: #322f26;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

header {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
}

header .brand {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}

nav a {
  color: var(--ink-faint);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.9rem;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

h1 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--ink);
  margin: 2.5rem 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  color: var(--ink);
  margin: 2.5rem 0 0.5rem;
}

.updated {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

a {
  color: var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

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

/* Tables of data recipients are wide; never let the page itself scroll sideways. */
.scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

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

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

footer {
  max-width: 44rem;
  margin: 4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
}

code {
  font-size: 0.9em;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* The full logo (mark + wordmark) stands in for the home page's title. */
h1.logo {
  margin: 8px 0 24px;
  line-height: 0;
}
h1.logo img {
  max-width: 100%;
  height: auto;
}
