/* Shared styles for all tools */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede7;
  --text: #1d1c1a;
  --muted: #6b6860;
  --border: #dedad1;
  --accent: #3b5bdb;
  --accent-text: #ffffff;
  --accent-soft: #e5eafc;
  --danger: #c92a2a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.05);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --surface: #1f1f1d;
    --surface-2: #2a2a27;
    --text: #f1efe9;
    --muted: #a19e95;
    --border: #36352f;
    --accent: #748ffc;
    --accent-text: #10131f;
    --accent-soft: #252c47;
    --danger: #ff6b6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  padding: 18px 0 8px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--accent);
}

.back-link {
  font-size: 0.95rem;
  text-decoration: none;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 16px 0 8px;
}

.lead {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Tool cards on the landing page */

.tool-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-bottom: 40px;
}

.tool-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

a.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.tool-card .icon {
  font-size: 1.8rem;
  line-height: 1;
}

.tool-card h2 {
  font-size: 1.1rem;
  margin: 10px 0 4px;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-card.soon {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

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

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn-danger {
  color: var(--danger);
}

.btn-small {
  min-height: 38px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.btn-big {
  min-height: 64px;
  font-size: 1.05rem;
  flex: 1;
}

.site-footer {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px 0 40px;
}
