/* closedloopmedia.net. Colors from the "Two Rings" logo (CLM Inc/Logo/README.txt).
   No web fonts, scripts, cookies or third-party requests: the system font stack keeps the
   site as private as the app. */

:root {
  --ink: #34495b;
  --muted: #5b6f80;
  --accent: #4a6378;
  --ring: #9db2c4;
  --ground: #f1f3f5;
  --card: #ffffff;
  --line: #d9dfe5;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6ecf1;
    --muted: #a9b8c5;
    --accent: #b9cad8;
    --ring: #7f98ad;
    --ground: #1e2832;
    --card: #26323d;
    --line: #34424f;
  }
}

* { box-sizing: border-box; }

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

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

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

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { padding: 28px 0 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: auto; display: block; }
.brand span { font-weight: 600; letter-spacing: 0.18em; font-size: 1.125rem; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--muted); padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Home */
.hero { padding: 72px 0 40px; text-align: center; }
.hero img { width: min(240px, 60vw); height: auto; display: block; margin: 0 auto 36px; }
.hero h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.25; font-weight: 500; margin: 0 auto 18px; max-width: 18em; }
.hero p { color: var(--muted); margin: 0 auto; max-width: 32em; }
.hero .badge {
  display: inline-block; margin-top: 28px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 0.95rem;
}

.points { list-style: none; padding: 0; margin: 24px 0 72px; display: grid; gap: 16px;
          grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.points li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.points h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
.points p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Inner pages */
main.page { padding-top: 56px; padding-bottom: 72px; }
.page h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); font-weight: 500; margin: 0 0 20px; }
.page h2 { font-size: 1.15rem; font-weight: 600; margin: 36px 0 8px; }
.page p, .page li { max-width: 38em; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 24px 0; }
.note p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
