/* ========================
   Base
======================== */

:root {
  --bg: #ffffff;
  --text-primary: #111827;
  --text-body: #374151;
  --text-muted: #6b7280;
  --accent: #2c5aa0;
  --border-subtle: #e5e7eb;
}

* {
  box-sizing: border-box;
}

/* ========================
   Layout
======================== */

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ========================
   Typography
======================== */

h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 18px;
}

h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 14px;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* Main narrative text (stronger than body) */
.lead {
  font-size: 16px;
  color: #1f2933;
  max-width: 760px;
}

/* Standard body */
p {
  font-size: 15px;
  color: var(--text-body);
}

/* Secondary text */
.small {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================
   Sections
======================== */

.section {
  margin-bottom: 48px;
}

/* ========================
   Domain Grid Layout
======================== */

.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 24px;
}

/* Domain block */
.domain {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* Domain text refinement */
.domain p {
  font-size: 14px;
  line-height: 1.6;
}

/* ========================
   Tool Links
======================== */

.tool-link {
  margin-top: 10px;
}

.tool-link a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.tool-link a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.tool-link p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-body);
}

/* ========================
   Links
======================== */

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

a:hover {
  text-decoration: underline;
}

/* ========================
   Responsive
======================== */

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

@media (max-width: 500px) {
  .domain-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 26px;
  }
}