/* Shared styles for the toolkit shell pages */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #4A4A48;
  --muted: #73726C;
  --line: #E5E3DC;
  --accent: #B8552F;
  --accent-soft: #F5E8E0;
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1A18;
    --surface: #232320;
    --ink: #F0EFE8;
    --ink-soft: #C2C0B6;
    --muted: #888780;
    --line: #3A3A36;
    --accent: #D87A52;
    --accent-soft: #3A2820;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 64px;
}

.shell-narrow {
  max-width: 480px;
  margin: 0 auto;
  padding: 120px 32px 64px;
}

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
}

p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 17px;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

a:hover {
  opacity: 0.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.85;
  border: none;
}

.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform 0.15s;
}

.btn:hover .btn-arrow::after,
.btn-arrow:hover::after {
  transform: translateX(3px);
}

.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s;
}

.input:focus {
  border-color: var(--accent);
}

.label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.error {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}

.intro {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 32px;
}

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

.tool-card {
  display: block;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}

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

.tool-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--ink);
}

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

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.meta-row a {
  border-bottom: none;
  color: var(--muted);
}

.meta-row a:hover {
  color: var(--ink);
}
