/* In The Rhythm - static site styles
   No web fonts, no JS, no third-party requests. The site sets no cookies
   and loads nothing from another origin. Keep it that way. */

:root {
  --paper: #f7f4ec;
  --ink: #14120e;
  --muted: #5c5850;
  --rule: #ddd7c8;
  --accent: #2e5a50;
  --accent-hover: #1e3d36;
  --notice-bg: #efe9d8;
  --max-line: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16150f;
    --ink: #f2efe6;
    --muted: #a8a294;
    --rule: #35322a;
    --accent: #8fc4b6;
    --accent-hover: #b3d9ce;
    --notice-bg: #23211a;
  }
}

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

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

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.wrap {
  max-width: var(--max-line);
  margin: 0 auto;
}

/* Skip link: visible only when focused */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 0;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
}

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

.brand {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  color: var(--accent-hover);
}

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

h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 650;
  margin: 2.5rem 0 0.5rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  margin: 1.75rem 0 0.25rem;
}

p,
ul,
ol {
  margin: 0 0 1.15rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}
a:hover {
  color: var(--accent-hover);
}

/* Always-visible keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.lede {
  font-size: 1.1875rem;
  color: var(--ink);
}

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

.notice {
  background: var(--notice-bg);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.15rem;
  margin: 0 0 2rem;
}
.notice p:last-child {
  margin-bottom: 0;
}

.contact {
  font-size: 1.0625rem;
  font-weight: 600;
}

footer.site {
  max-width: var(--max-line);
  margin: 4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer.site nav {
  margin-bottom: 0.75rem;
}

footer.site nav a {
  display: inline-block;
  margin: 0 1.25rem 0.4rem 0;
}

@media (min-width: 40rem) {
  body {
    font-size: 1.125rem;
    padding: 0 2rem 6rem;
  }
  h1 {
    font-size: 2.25rem;
  }
}
