/* Tansy — klooder.github.io/tansy-site
   Colors are the app's asset-catalog tokens: bg, surface, accent, chartRange.
   Contrast: text 17.9:1 / 15.9:1, links 5.6:1 / 6.3:1, borders 3.0:1 / 2.6:1. */

:root {
  --bg: #FBF6EF;
  --ink: #14120D;
  --muted: #5C534B;
  --accent: #A04931;
  --stroke: #9C8B7C;
  --surface: #FFFFFF;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1715;
    --ink: #F5EFE8;
    --muted: #C9BFB5;
    --accent: #E08A6B;
    --stroke: #6E6158;
    --surface: #272120;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

header {
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--stroke);
}

.site-name {
  font-weight: 600;
  font-size: 1.125rem;
}

h1 {
  font-size: 1.875rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2rem 0 0.5rem;
}

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

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.25rem;
}

/* Links are underlined, so their meaning never rests on color alone. */
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stroke);
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.small {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Long email addresses and URLs wrap instead of widening the page on a phone. */
main {
  overflow-wrap: anywhere;
}
