/* Dough Nuts. Colors are the app's own (Sources/Theme.swift): dnAccent, dnBackground, dnText, dnHeader, each with a light and a dark value. */
:root {
  --bg: #f6ecdd;
  --text: #2e1d10;
  --heading: #7e4a1e;
  --secondary: #6f5a47;
  --accent: #9a4f17;
  --rule: #e9dcc8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b130d;
    --text: #f6ebdd;
    --heading: #ddb27e;
    --secondary: #c8b49c;
    --accent: #e9a75c;
    --rule: #3a2c21;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1rem; }

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

.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: 0.5rem 1rem; z-index: 1; }
.skip:focus { left: 0; }

header.site { border-bottom: 1px solid var(--rule); }
header.site nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; padding-block: 1rem; }
header.site a { text-decoration: none; color: var(--text); font-weight: 600; }
header.site a:hover { color: var(--accent); }
header.site a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

.title-row { display: flex; align-items: center; gap: 1rem; margin: 2.5rem 0 1.5rem; }
.title-row img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
h1 { margin: 0; font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.15; color: var(--heading); }
h2 { margin: 2.25rem 0 0.5rem; font-size: 1.4rem; line-height: 1.25; color: var(--heading); }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.4rem; }
li { margin-bottom: 0.5rem; }
.lead { font-size: 1.35rem; line-height: 1.45; }

footer.site { margin: 3rem 0 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--secondary); }
footer.site p { margin: 0; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
