/* Betony — betonyapp.com
   Colors are the app's asset-catalog tokens:
   bg, accent, stroke, surface; text is wellbeingInk (light) / onAccent (dark).
   Contrast: text 17.4:1 / 16.6:1, links 5.2:1 / 9.5:1, borders 3.2:1 / 3.5:1. */

:root {
  --bg: #FAF6F0;
  --ink: #14120D;
  --accent: #4E6F52;
  --stroke: #948A7B;
  --surface: #FFFFFF;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181611;
    --ink: #F2F6F1;
    --accent: #A3C4A5;
    --stroke: #756D5E;
    --surface: #242119;
  }
}

*,
*::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;
  margin: 0 0 1rem;
}

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

p {
  margin: 0 0 1rem;
}

/* 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;
}

.note {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
}

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;
  padding: 0;
}

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