/* Mindful Repetitions — shared styles */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #2c2a26;
  --muted: #6b655c;
  --rule: #e6ded1;
  --accent: #8a6a43;
  --accent-soft: #f2ebe0;
  --max: 40rem;
}

:root:not([data-theme="light"]) {
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161513;
    --surface: #1f1d1a;
    --text: #e9e4da;
    --muted: #a49c8f;
    --rule: #33302b;
    --accent: #cfa871;
    --accent-soft: #262320;
  }
}

:root[data-theme="dark"] {
  --bg: #161513;
  --surface: #1f1d1a;
  --text: #e9e4da;
  --muted: #a49c8f;
  --rule: #33302b;
  --accent: #cfa871;
  --accent-soft: #262320;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
}

.wordmark {
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.125rem;
  font-size: 0.9375rem;
}

.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }

/* Type */

main { padding: 2.5rem 0 1rem; }

h1 {
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h2 {
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: 1.3125rem;
  font-weight: 600;
  margin: 2.5rem 0 0.625rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.75rem 0 0.375rem;
}

p { margin: 0 0 1rem; }

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

.lede {
  font-size: 1.1875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

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

ul { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.375rem; }

strong { font-weight: 600; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* Callout */

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.125rem;
  margin: 0 0 1.5rem;
}

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

/* Contact block */

.contact {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.25rem 1.375rem;
  margin: 0 0 2rem;
}

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

.contact a {
  font-weight: 600;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

/* Feature list */

.features { list-style: none; padding: 0; margin: 0 0 1.5rem; }

.features li {
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
  margin: 0;
}

.features li:last-child { border-bottom: 1px solid var(--rule); }

.features b { display: block; margin-bottom: 0.125rem; }

.features span { color: var(--muted); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
  padding: 1.75rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.125rem; }

/* Skip link */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.625rem 1rem;
  border-radius: 0 0 6px 0;
  z-index: 10;
}

.skip-link:focus { left: 0; }
