/* BrainDump's public pages. The app's paper and night stock
   (BrainDumpDesignTokens.V2 light / night), set in the reader's serif.
   No web fonts, no scripts, nothing loaded from anywhere else. */

:root {
  color-scheme: light dark;
  --canvas: #F7F5F1;
  --surface: #FFFFFF;
  --ink: #1F1D19;
  --secondary: #5E5A51;
  --hairline: rgba(28, 27, 24, 0.12);
  --ember: #B8650F;
  --marker: rgba(233, 178, 66, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #14110F;
    --surface: #201C17;
    --ink: #E9E4D8;
    --secondary: #A39C8E;
    --hairline: rgba(233, 228, 216, 0.12);
    --ember: #E9A04A;
    --marker: rgba(233, 178, 66, 0.2);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  color: inherit;
  text-decoration: none;
}

.masthead img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
}

.masthead span {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 2.75rem 0 0.75rem;
  font-weight: 600;
}

h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
  font-weight: 600;
}

p, ul, ol { margin: 0 0 1rem; }

ul, ol { padding-left: 1.25rem; }

li { margin-bottom: 0.4rem; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--ember); }

strong { font-weight: 600; }

.meta {
  color: var(--secondary);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.summary {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 0.5rem;
  margin: 0 0 1rem;
}

.summary ul { padding-left: 1.1rem; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96875rem;
  line-height: 1.5;
}

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

tr:last-child td { border-bottom: 0; }

th {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--secondary);
}

.path {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95em;
  background: var(--marker);
  border-radius: 0.3em;
  padding: 0.05em 0.3em;
  white-space: nowrap;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  color: var(--secondary);
  font-size: 0.9375rem;
}

footer a { margin-right: 1.25rem; }

@media (max-width: 30rem) {
  body { font-size: 1.0625rem; }
  .page { padding: 1.75rem 1rem 3rem; }
  h1 { font-size: 1.875rem; }
  .path { white-space: normal; }
}
