/* Treenet, Inc. — shared styles
   Type: Georgia (display) / system sans (body) — no external font requests,
   so no third-party font host ever sees a visitor's IP address. */

:root {
  --bg: #F6F1E5;
  --surface: #FFFFFF;
  --surface-border: #E6DBC7;
  --text: #262019;
  --text-muted: #71655A;
  --accent: #8A5A2B;
  --accent-strong: #5F3B18;
  --focus-ring: #8A5A2B;
  --rule: #DED2B8;

  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0E0909;
  --surface: #1B1013;
  --surface-border: #34181E;
  --text: #F1E7E2;
  --text-muted: #B99CA0;
  --accent: #C1435D;
  --accent-strong: #E2879A;
  --focus-ring: #E2879A;
  --rule: #331A20;

  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.15em;
}
html[data-theme="dark"] a { color: var(--accent-strong); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent-strong);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 4px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.wordmark:focus-visible { outline-offset: 4px; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text);
  border-radius: 20px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle:hover { border-color: var(--accent); }

/* Hero */
main { display: block; }

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero-rings {
  position: absolute;
  right: -120px;
  top: -60px;
  width: 460px;
  height: 460px;
  opacity: 0.55;
  pointer-events: none;
}
html[data-theme="dark"] .hero-rings { opacity: 0.4; }

.hero-content { position: relative; max-width: 520px; }

.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(48px, 9vw, 84px);
  line-height: 0.98;
  margin: 0 0 28px;
  color: var(--text);
}

.hero p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent-strong);
  color: #FBF7EF;
}
html[data-theme="dark"] .btn-primary { color: #120A0B; }
.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  border-color: var(--surface-border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

.status-line {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 14px;
  max-width: 46ch;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 56px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); text-decoration: underline; }

.footer-meta {
  color: var(--text-muted);
  font-size: 13px;
}
.footer-meta a { color: var(--text-muted); }

/* Legal pages */
.legal {
  padding: 56px 0 96px;
}
.legal h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 8px;
}
.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 40px;
}
.legal h2 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  margin: 40px 0 12px;
}
.legal p, .legal li {
  color: var(--text);
  max-width: 68ch;
  font-size: 16px;
}
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent-strong); }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}
.back-link:hover { color: var(--text); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 18px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  display: none;
  z-index: 200;
}
.cookie-banner.visible { display: block; }
.cookie-banner p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
}
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions button {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 3px;
  cursor: pointer;
}
#cookie-accept {
  background: var(--accent-strong);
  border: 1px solid var(--accent-strong);
  color: #FBF7EF;
}
html[data-theme="dark"] #cookie-accept { color: #120A0B; }
#cookie-essential {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text);
}

@media (max-width: 560px) {
  .hero { padding: 64px 0 56px; }
  .hero-rings { width: 300px; height: 300px; right: -100px; top: -40px; }
}
