/* Brown Logic — one stylesheet. System fonts, no images, no imports. */

:root {
  --ground: #f5efe6;   /* warm off-white, unbleached paper */
  --ink:    #2a1c12;   /* dark brown */
  --accent: #7a4a22;   /* the one brown */
  --muted:  #6a5747;   /* quieter brown for small text */
  --rule:   #d9ccbb;   /* hairline */
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1b1511;
    --ink:    #ece2d3;
    --accent: #d4a06a;
    --muted:  #b3a08c;
    --rule:   #3a2e25;
  }
}

* { box-sizing: border-box; }

html {
  background: var(--ground);
  color: var(--ink);
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
  font-size: 112.5%;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1.25rem;
}

header, main, footer {
  max-width: 33em;
  margin: 0 auto;
}

header {
  padding: 4rem 0 2rem;
}

h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.tagline {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-style: italic;
}

section {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

p, li { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

b { font-weight: 700; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pair {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
@media (min-width: 40em) {
  .pair { grid-template-columns: 1fr 1fr; }
}

footer {
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
footer p { font-size: 0.85rem; }

@media print {
  :root { --ground: #fff; --ink: #000; --accent: #000; --muted: #333; --rule: #999; }
  html { font-size: 11pt; }
  header { padding-top: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.9em; }
  footer { page-break-inside: avoid; }
}
