@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --ink: #151515;
  --ink-soft: #343434;
  --muted: #6f6a62;
  --paper: #f7f5f0;
  --white: #ffffff;
  --gold: #b39458;
  --gold-dark: #87672d;
  --gold-soft: #eee6d7;
  --line: #ded8cd;
  --shadow: 0 18px 48px rgba(25, 22, 15, 0.09);
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 8%, rgba(179,148,88,0.16), transparent 28rem),
    var(--paper);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.top-line {
  height: 4px;
  background: linear-gradient(90deg, var(--ink) 0 65%, var(--gold) 65% 100%);
}

.site-header {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand-text strong {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.brand-text small {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.header-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hero {
  padding: 72px 0 54px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.search-wrap {
  position: relative;
  max-width: 650px;
  margin-top: 34px;
}

.search-wrap svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.search-wrap input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px 0 50px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  box-shadow: 0 10px 30px rgba(25, 22, 15, 0.04);
}

.search-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(179,148,88,0.16);
}

.tools-section {
  padding: 14px 0 74px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.035em;
}

.section-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  min-height: 268px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 7px 24px rgba(25, 22, 15, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-card:hover {
  border-color: #cbb98f;
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tool-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border: 1px solid #e3d6bd;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tool-category {
  padding: 7px 9px;
  color: var(--muted);
  background: #faf9f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-card h3 {
  margin: 22px 0 9px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

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

.tool-link {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 0 15px;
  color: var(--white);
  background: var(--ink);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease;
}

.tool-link:hover {
  background: var(--gold-dark);
}

.tool-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.empty-state {
  padding: 44px 24px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

.empty-icon {
  color: var(--gold-dark);
  font-size: 44px;
}

.empty-state h3 {
  margin: 8px 0 6px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading > p {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 74px;
  }

  .header-meta {
    display: none;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding: 48px 0 38px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }
}
