/* GentleLoop website: calm, readable, no scripts, no external requests. */
:root {
  --bg: #fbf9f8;
  --surface: #ffffff;
  --text: #1c1b1b;
  --muted: #5c5f5c;
  --sage: #8daa91;
  --sage-deep: #4f6f54;
  --sage-soft: #d3e5d6;
  --rose-soft: #f3d9e2;
  --blue-soft: #d4e3ef;
  --border: #e4e0de;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1c1a;
    --surface: #222522;
    --text: #ece9e8;
    --muted: #b4b8b4;
    --sage: #a6c4aa;
    --sage-deep: #a6c4aa;
    --sage-soft: #2d352e;
    --rose-soft: #3d2f36;
    --blue-soft: #2b333b;
    --border: #343834;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sage-deep);
  color: #fff;
  padding: .75rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

a { color: var(--sage-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
header.site .inner {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}
.brand {
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--sage-deep); font-weight: 500; }
nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
nav a { text-decoration: none; padding: .35rem .1rem; border-bottom: 2px solid transparent; color: var(--text); }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--sage); }

main { max-width: 62rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
main.narrow { max-width: 46rem; }

h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 300; line-height: 1.2; letter-spacing: .01em; margin: 1rem 0 1rem; }
h2 { font-size: 1.55rem; font-weight: 400; margin: 2.75rem 0 .75rem; color: var(--sage-deep); }
h3 { font-size: 1.15rem; font-weight: 600; margin: 1.75rem 0 .35rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .4rem; }

.lede { font-size: 1.25rem; color: var(--muted); max-width: 40rem; }

.hero {
  background: linear-gradient(160deg, var(--sage-soft), var(--blue-soft));
  border-radius: calc(var(--radius) * 1.4);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  margin-top: 1rem;
}
.hero h1 { margin-top: 0; }

.button {
  display: inline-block;
  background: var(--sage-deep);
  color: #fff;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
}
@media (prefers-color-scheme: dark) { .button { color: #1b351e; } }
.button:hover { filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--sage-deep); border: 2px solid var(--sage); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--muted); }

.callout {
  background: var(--sage-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout.rose { background: var(--rose-soft); }
.callout.blue { background: var(--blue-soft); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; }
.toc ul { margin: 0; padding-left: 1.2rem; }

table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: .98rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .75rem; border-bottom: 1px solid var(--border); }
th { font-weight: 600; background: var(--surface); }
.table-wrap { overflow-x: auto; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .75rem 1.1rem; margin-bottom: .75rem; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: .5rem; }

.meta { color: var(--muted); font-size: .95rem; }

footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: .95rem; }
footer.site .inner { max-width: 62rem; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
footer.site ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { header.site nav, footer.site, .skip-link { display: none; } body { font-size: 11pt; } }
