/* ═══════════════════════════════════════════
   takeonanything.com — shared styles
   ═══════════════════════════════════════════ */

:root {
  --bg: #0d0d12;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --text-1: #e8e8ed;
  --text-2: #a0a0b0;
  --text-3: #6a6a7e;
  --accent: #ff4d6a;
  --accent-hover: #ff6b84;
  --accent-dim: rgba(255, 77, 106, 0.12);
  --border: #252530;
  --radius: 6px;
  --max-w: 720px;
}

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

html {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color 0.12s; }
a:hover { color: var(--accent-hover); }

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 0;
}

.site-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
  color: var(--accent);
  text-decoration: none;
}
.site-logo .dim { color: var(--text-3); font-weight: 400; }

.site-nav { display: flex; gap: 20px; }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--text-2); }
.site-nav a:hover { color: var(--text-1); }

/* ── Main content ── */
.site-main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Hero (homepage) ── */
.hero { padding: 64px 0 40px; }
.hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 560px;
}

/* ── Tool cards ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding-bottom: 48px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover { background: var(--bg-card-hover); border-color: var(--accent); color: inherit; }

.tool-card .tool-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim); border-radius: var(--radius);
  margin-bottom: 16px; color: var(--accent);
}
.tool-card .tool-icon svg { width: 20px; height: 20px; }

.tool-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.2px; }
.tool-card p { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.tool-card .tool-tag {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text-3); font-weight: 500;
}

.tool-card.coming-soon { opacity: 0.45; pointer-events: none; }
.tool-card.coming-soon .tool-tag { color: var(--accent); opacity: 0.7; }

/* ── Page content (about, privacy, terms) ── */
.page-content { padding: 48px 0 64px; }
.page-content h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 8px; }
.page-content .subtitle { font-size: 15px; color: var(--text-3); margin-bottom: 32px; }
.page-content h2 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; letter-spacing: -0.2px; }
.page-content p { font-size: 17px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.page-content ul { list-style: none; margin-bottom: 16px; }
.page-content ul li {
  font-size: 17px; color: var(--text-2); line-height: 1.7;
  padding-left: 18px; position: relative;
}
.page-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--text-3); }
.page-content a { color: var(--accent); }

/* ── Footer ── */
.site-footer {
  max-width: var(--max-w);
  width: 100%; margin: 0 auto;
  padding: 20px 20px 28px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-3);
}
.site-footer .footer-links { display: flex; gap: 18px; }
.site-footer .footer-links a { color: var(--text-3); font-size: 13px; }
.site-footer .footer-links a:hover { color: var(--text-2); }
.site-footer .footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 11px; }

@media (max-width: 640px) {
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .tools-grid { grid-template-columns: 1fr; }
  .site-header { padding-top: 16px; }
  .site-nav { gap: 14px; }
}
