:root {
  --bg: #fefef9;
  --text: #0f1110;
  --text-secondary: #76756d;
  --olive-700: #415323;
  --violet-700: #36263d;
  --violet-400: #68546e;
  --border: #cfcbc3;
  --error: #a33d3d;
  --serif: "Cormorant Garamond", ui-serif, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  padding: 0 1.5rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--violet-700);
  line-height: 1.25;
}

a {
  color: var(--olive-700);
  text-decoration: none;
}

a:hover {
  color: var(--violet-700);
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Nav --- */

.site-nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

/* --- Home hero --- */

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-logo {
  width: min(480px, 80vw);
  height: auto;
}

.hero .tagline {
  margin: 1.25rem 0 0;
  color: var(--text-secondary);
  font-size: 1.15rem;
}

/* --- Tool cards --- */

main {
  max-width: 960px;
  margin: 0 auto;
}

.tools {
  padding: 0 0 3rem;
}

.tools h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  color: var(--text);
  text-decoration: none;
  border-color: var(--olive-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 17, 16, 0.06);
}

.card .icon {
  width: 28px;
  height: 28px;
  stroke: var(--olive-700);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card:hover .icon {
  stroke: var(--violet-400);
}

.card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 1rem 0 0.4rem;
}

.card p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  flex-grow: 1;
}

.card-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--olive-700);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
}

/* --- Buttons --- */

.btn {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--olive-700);
  color: var(--bg);
  border: 1px solid var(--olive-700);
}

.btn-primary:hover {
  background: var(--violet-700);
  border-color: var(--violet-700);
}

.btn-secondary {
  background: transparent;
  color: var(--violet-700);
  border: 1px solid var(--violet-700);
}

.btn-secondary:hover {
  background: var(--violet-700);
  color: var(--bg);
}

/* --- Footer --- */

footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .nav-links {
    gap: 1rem;
  }
}
