:root {
  color-scheme: light;
  --ink: #153b38;
  --ink-soft: #46635f;
  --muted: #71807c;
  --paper: #f7f1e6;
  --surface: #fffaf0;
  --surface-tint: #edf7f4;
  --line: #d8dfd8;
  --teal: #0f766e;
  --teal-dark: #0a544f;
  --teal-pale: #d8efe9;
  --copper: #b46632;
  --shadow: 0 22px 48px rgba(21, 59, 56, 0.1);
  --max: 1120px;
  --body-font: "Avenir Next", Avenir, "Gill Sans", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 0%, rgba(178, 225, 211, 0.68), transparent 27rem),
    radial-gradient(circle at 15% 86%, rgba(225, 193, 153, 0.25), transparent 22rem),
    var(--paper);
  font-family: var(--body-font);
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.06; }
p { color: var(--muted); line-height: 1.6; }

a:focus-visible { outline: 3px solid rgba(15, 118, 110, 0.36); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.tools-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(20px, 4vw, 56px);
  background: rgba(247, 241, 230, 0.86);
  border-bottom: 1px solid rgba(21, 59, 56, 0.12);
  backdrop-filter: blur(15px);
}

.tools-home-brand { display: inline-flex; align-items: center; gap: 10px; }
.tools-home-mark { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--teal); border-radius: 10px 10px 10px 2px; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 800; }
.tools-home-brand strong, .tools-home-brand small { display: block; line-height: 1; }
.tools-home-brand strong { font-family: Georgia, serif; font-size: 1.13rem; }
.tools-home-brand small { margin-top: 4px; color: var(--ink-soft); font-size: 0.69rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.back-link { padding: 9px 12px; color: var(--ink-soft); border: 1px solid rgba(21, 59, 56, 0.18); border-radius: 7px; font-size: 0.82rem; font-weight: 760; }
.back-link:hover { color: var(--teal-dark); border-color: var(--teal); }

.tools-dashboard { width: min(100% - 38px, var(--max)); margin: 0 auto; padding: clamp(56px, 8vw, 105px) 0 80px; }
.dashboard-intro { max-width: 670px; margin-bottom: clamp(42px, 6vw, 70px); }
.eyebrow, .section-kicker { margin-bottom: 10px; color: var(--copper); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.dashboard-intro h1 { margin-bottom: 17px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6.4vw, 5.4rem); letter-spacing: -0.04em; }
.dashboard-intro p:last-child { max-width: 560px; margin-bottom: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.22rem); }

.tool-directory { padding: clamp(22px, 3.4vw, 34px); background: rgba(255, 250, 240, 0.86); border: 1px solid rgba(21, 59, 56, 0.14); border-radius: 20px; box-shadow: var(--shadow); }
.directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.directory-heading .section-kicker { margin-bottom: 7px; }
.directory-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.tool-count { padding: 6px 10px; color: var(--teal-dark); background: var(--teal-pale); border-radius: 999px; font-size: 0.75rem; font-weight: 820; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 18px; }
.tool-card { display: grid; min-height: 390px; grid-template-rows: 1fr auto; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 9px 20px rgba(21, 59, 56, 0.05); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.tool-card:hover { border-color: rgba(15, 118, 110, 0.56); box-shadow: 0 18px 30px rgba(21, 59, 56, 0.12); transform: translateY(-3px); }
.tool-icon { display: grid; place-items: center; padding: 38px 42px 23px; background: linear-gradient(145deg, #e6f5f0, #fdf9ef); border-bottom: 1px solid var(--line); }
.tool-icon svg { width: min(100%, 214px); height: auto; filter: drop-shadow(0 12px 16px rgba(21, 59, 56, 0.12)); }
.tool-card-content { padding: 20px 22px 23px; }
.tool-card-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tool-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.tool-card-title span { color: var(--teal-dark); font-size: 0.75rem; font-weight: 850; }
.tool-card p { margin: 10px 0 0; font-size: 0.89rem; }
.coming-soon { margin: 22px 0 0; color: var(--ink-soft); font-size: 0.88rem; }

@media (max-width: 600px) {
  .tools-home-header { min-height: 68px; padding-right: 16px; padding-left: 16px; }
  .tools-dashboard { width: min(100% - 26px, var(--max)); padding-top: 48px; }
  .dashboard-intro h1 { letter-spacing: -0.03em; }
  .directory-heading { align-items: start; flex-direction: column; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 350px; }
  .tool-icon { padding: 31px 52px 20px; }
  .back-link { padding: 8px 9px; font-size: 0.74rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
