/* Plain Apps - base.css
   Own identity: warm paper, ink, one clay accent. No web fonts, no external requests. */

:root {
  --bg:        #F4EFE4;
  --bg-2:      #EDE6D6;
  --surface:   #FBF8F0;
  --line:      #DDD4C0;
  --line-strong: #C9BEA5;
  --text:      #211F1A;
  --text-dim:  #5E594E;
  --text-faint:#8A8372;
  --accent:    #A63F1B;       /* clay */
  --accent-ink:#FFF8F2;
  --accent-soft:#EBD3C4;
  --sage:      #4B6654;
  --sage-soft: #DCE4D6;
  --shadow:    0 1px 2px rgba(60, 40, 10, .06), 0 8px 24px rgba(60, 40, 10, .08);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --page: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #16130F;
    --bg-2:      #1D1913;
    --surface:   #1F1B15;
    --line:      #352F25;
    --line-strong:#4A4234;
    --text:      #EEE8DA;
    --text-dim:  #B0A998;
    --text-faint:#867F6F;
    --accent:    #E58B5F;
    --accent-ink:#1C0E06;
    --accent-soft:#3A2418;
    --sage:      #9DBBA6;
    --sage-soft: #26302A;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; color: var(--text); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
