/* ============================================================
   Trail Manual — shared design system
   Direction C×B: outdoor palette, bold voice
   ============================================================ */

:root {
  --bg:           #faf7f2;
  --bg-2:         #f2ece3;
  --bg-3:         #e8dfd4;
  --panel:        #ffffff;
  --panel-2:      #f5f0e8;
  --border:       #ddd5c8;
  --text:         #2b3a1a;
  --text-dim:     #6a7a5a;
  --text-mute:    #8a9a7a;
  --accent:       #3b6d11;
  --accent-2:     #8b3a2a;
  --accent-3:     #c8922a;
  --danger:       #8b3a2a;
  --font-serif:   'Georgia', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Topbar ── */
.tm-topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.tm-topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tm-brand:hover { text-decoration: none; }
.tm-brand-mark {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #eaf3de; flex-shrink: 0;
}
.tm-brand-text { font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: 0.01em; }
.tm-brand-sub  { font-size: 10px; color: var(--text-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.tm-nav { display: flex; gap: 24px; }
.tm-nav a { font-size: 14px; color: var(--text-dim); text-decoration: none; font-weight: 500; }
.tm-nav a:hover { color: var(--text); text-decoration: none; }
.tm-nav a.active { color: var(--accent); }

/* ── Layout ── */
.tm-main { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }

/* ── Hero ── */
.tm-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--border); margin-bottom: 56px; border-top: 3px solid var(--accent-2); }
.tm-hero-eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; margin-bottom: 16px; }
.tm-hero h1 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 44px); line-height: 1.2; color: var(--text); margin-bottom: 16px; }
.tm-hero-lede { font-size: 17px; color: var(--text-dim); max-width: 600px; margin-bottom: 32px; line-height: 1.7; }
.tm-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Buttons ── */
.tm-btn { display: inline-block; font-size: 14px; font-weight: 600; padding: 11px 22px; border-radius: 6px; text-decoration: none; transition: opacity 0.15s; }
.tm-btn:hover { opacity: 0.88; text-decoration: none; }
.tm-btn.primary { background: var(--accent); color: #eaf3de; }
.tm-btn.danger  { background: transparent; color: var(--accent-2); border: 1px solid var(--border); }

/* ── Stats ── */
.tm-stats { display: flex; gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.tm-stat .n { font-size: 24px; font-weight: 600; color: var(--text); }
.tm-stat .l { font-size: 12px; color: var(--text-mute); margin-top: 2px; }

/* ── Sections ── */
.tm-section { margin-bottom: 56px; }
.tm-section-head { margin-bottom: 32px; }
.tm-section-eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; margin-bottom: 10px; }
.tm-section-head h2 { font-family: var(--font-serif); font-size: clamp(20px, 2.5vw, 28px); color: var(--text); margin-bottom: 10px; }
.tm-section-lede { color: var(--text-dim); max-width: 600px; font-size: 15px; }

/* ── Grids ── */
.tm-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tm-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* ── Tool cards ── */
.tm-tool-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tm-tool-card:hover { border-color: var(--accent); box-shadow: 0 2px 16px rgba(59,109,17,0.08); text-decoration: none; color: inherit; }
.tm-tool-card h3 { font-family: var(--font-serif); font-size: 18px; color: var(--text); line-height: 1.3; }
.tm-tool-card p  { font-size: 14px; color: var(--text-dim); line-height: 1.65; flex: 1; }
.tm-tool-card .meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-mute); padding-top: 10px; border-top: 1px solid var(--border); margin-top: 4px; }
.tm-tool-card .meta .arrow { margin-left: auto; color: var(--accent); font-weight: 600; }

/* ── Tags ── */
.tag       { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; background: #eaf3de; color: #3b6d11; }
.tag.danger{ background: #f5ece8; color: var(--accent-2); }
.tag.soon  { background: var(--bg-3); color: var(--text-mute); }

/* ── Info cards ── */
.tm-card { padding: 24px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.tm-card-icon { font-size: 24px; margin-bottom: 10px; }
.tm-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.tm-card p  { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* ── Callout ── */
.tm-callout { background: #eaf3de; border: 1px solid #c0dd97; border-radius: 10px; padding: 32px 36px; }
.tm-callout h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.tm-callout p  { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }

/* ── Email form ── */
.tm-email { display: flex; gap: 10px; max-width: 420px; flex-wrap: wrap; }
.tm-email input { flex: 1; min-width: 200px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; background: var(--panel); color: var(--text); }

/* ── Roadmap ── */
.tm-roadmap { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.tm-roadmap-row { display: grid; grid-template-columns: 90px 1fr 100px; gap: 16px; align-items: center; padding: 18px 24px; background: var(--panel); border-bottom: 1px solid var(--border); font-size: 14px; }
.tm-roadmap-row:last-child { border-bottom: none; }
.tm-roadmap-phase { font-weight: 600; color: var(--text-mute); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.tm-roadmap-list { color: var(--text-dim); }
.tm-roadmap-status { font-size: 12px; font-weight: 600; color: var(--text-mute); text-align: right; }
.tm-roadmap-status.live { color: var(--accent); }
.tm-roadmap-status.next { color: var(--accent-3); }

/* ── Blog cards ── */
.tm-blog-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color 0.15s; }
.tm-blog-card:hover { border-color: var(--accent); text-decoration: none; color: inherit; }
.tm-blog-card .date { font-size: 12px; color: var(--text-mute); }
.tm-blog-card h3 { font-family: var(--font-serif); font-size: 17px; color: var(--text); line-height: 1.35; }
.tm-blog-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; flex: 1; }
.tm-blog-card .read-more { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 4px; }

/* ── Footer ── */
.tm-footer { background: var(--text); padding: 48px 0 24px; margin-top: 80px; }
.tm-footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.tm-footer h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.tm-footer a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 8px; text-decoration: none; }
.tm-footer a:hover { color: #fff; text-decoration: none; }
.tm-footer .tm-brand-mark { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.tm-footer .tm-brand-text { color: rgba(255,255,255,0.8); }
.tm-footer .tm-brand-sub  { color: rgba(255,255,255,0.3); }
.disclaimer { max-width: 1100px; margin: 20px auto 0; padding: 0 24px; font-size: 12px; color: rgba(255,255,255,0.25); }

@media (max-width: 700px) {
  .tm-footer-inner { grid-template-columns: 1fr 1fr; }
  .tm-roadmap-row  { grid-template-columns: 1fr; }
  .tm-nav          { gap: 14px; }
}
