/*
 * This is a manifest file that'll be compiled into application.css.
 */

/* ── Custom properties ─────────────────────────────────────── */
:root {
  --color-primary:      #1d4ed8;
  --color-text:         #111827;
  --color-text-muted:   #6b7280;
  --color-border:       #e5e7eb;
  --color-bg:           #f9fafb;
  --color-surface:      #ffffff;
  --color-icon-bg:      #dbeafe;

  --radius:             0.75rem;
  --shadow-sm:          0 1px 3px 0 rgb(0 0 0 / 0.08);
  --shadow:             0 4px 12px rgb(0 0 0 / 0.1);
  --font-sans:          system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width:          900px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: 1.5rem; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0;
  text-decoration: none;
}
.site-logo img {
  display: block;
  width: 2rem;
  height: auto;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.625rem;
}
.hero p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* ── Tools grid ─────────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding-bottom: 4rem;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.tool-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.tool-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: var(--color-icon-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-icon svg { width: 1.375rem; height: 1.375rem; }

.tool-body { flex: 1; min-width: 0; }
.tool-body h2 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.tool-body p { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.4; }

.tool-arrow {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform 0.15s, color 0.15s;
}
.tool-card:hover .tool-arrow {
  transform: translateX(3px);
  color: var(--color-primary);
}

/* ── Footer link ────────────────────────────────────────────── */
.site-footer a { color: inherit; text-decoration: underline; }
.site-footer a:hover { color: var(--color-primary); }

/* ── About page ─────────────────────────────────────────────── */
.about-body {
  max-width: 600px;
  padding-bottom: 4rem;
}
.about-body p { color: var(--color-text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.about-body h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--color-text); }
.about-body a { color: var(--color-primary); text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
