/* Learn To Grow Your Link Equity — styles */

:root {
  --ink: #0A0F1E;
  --ink-soft: #1E243A;
  --accent: #4F46E5;
  --accent-deep: #4338CA;
  --accent-light: #6B5CE8;
  --gold: #F5C518;
  --text-body: #475569;
  --text-muted: #64748B;
  --cream: #F5F4EF;
  --off-white: #F1F5F9;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --border-soft: #EEF1F6;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* Heading defaults */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  background: var(--cream);
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero h1 {
  max-width: 880px;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lede {
  max-width: 720px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-body);
}
.hero-lede a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.3);
  text-underline-offset: 3px;
  font-weight: 500;
}
.hero-lede a:hover { text-decoration-color: var(--accent); }

/* ---------- Article grid (3x3) ---------- */

.section {
  padding: 80px 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 44px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 { letter-spacing: -0.02em; }
.section-head p {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 480px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 240px;
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-light);
  box-shadow: 0 14px 38px -18px rgba(79, 70, 229, 0.28);
}
.article-card .num {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.article-card h3 {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.article-card p {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.6;
  flex-grow: 1;
}
.article-card .read {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-card .read::after {
  content: "→";
  transition: transform 0.2s;
}
.article-card:hover .read::after { transform: translateX(4px); }
.article-card a.card-link {
  position: absolute;
  inset: 0;
}
.article-card { position: relative; }

/* ---------- Topic intro / what-this-is-about band ---------- */

.intro-band {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 88px 0;
}
.intro-band .wrap { max-width: 820px; }
.intro-band h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 22px;
}
.intro-band p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 18px;
}
.intro-band a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.3);
  text-underline-offset: 3px;
}
.intro-band a:hover { text-decoration-color: var(--accent); }

/* ---------- Link hub ("Around the web") ---------- */

.linkhub {
  padding: 88px 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
}
.linkhub h2 { margin-bottom: 12px; }
.linkhub .lede {
  color: var(--text-muted);
  margin-bottom: 44px;
  max-width: 540px;
}
.linkhub-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.linkhub-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 18px;
  font-weight: 700;
}
.linkhub-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.linkhub-col li {
  border-top: 1px solid var(--border);
}
.linkhub-col li:last-child { border-bottom: 1px solid var(--border); }
.linkhub-col a {
  display: block;
  padding: 14px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s, padding 0.15s;
}
.linkhub-col a:hover {
  color: var(--accent);
  padding-left: 6px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #C9CDD8;
  padding: 64px 0 36px;
}
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer h5 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
  font-weight: 700;
}
.site-footer p { font-size: 0.95rem; line-height: 1.7; max-width: 360px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { color: #C9CDD8; font-size: 0.92rem; transition: color 0.15s; }
.site-footer ul a:hover { color: white; }
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #8A92A6;
}
.site-footer .footer-bottom a {
  color: #C9CDD8;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.18);
  text-underline-offset: 3px;
}

/* ---------- Blog (archive) page ---------- */

.archive {
  padding: 88px 0 96px;
}
.archive-header {
  margin-bottom: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.archive-header .eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}
.archive-header h1 { margin-bottom: 18px; }
.archive-header p { font-size: 1.1rem; max-width: 640px; line-height: 1.7; }

.archive-list { display: flex; flex-direction: column; }
.archive-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 36px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.archive-item:last-child { border-bottom: 1px solid var(--border); }
.archive-item .num {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.archive-item h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.archive-item h2 a { color: var(--ink); transition: color 0.15s; }
.archive-item h2 a:hover { color: var(--accent); }
.archive-item p { font-size: 1rem; color: var(--text-body); line-height: 1.65; max-width: 700px; }

/* ---------- Post (article) pages ---------- */

.post-header {
  padding: 64px 0 56px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.post-header .post-tag {
  display: block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-header h1 {
  max-width: 780px;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.post-header .post-meta {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.post-body { padding: 64px 0 96px; }

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.post-content p {
  margin-bottom: 22px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}
.post-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 52px 0 14px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.post-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 36px 0 12px;
  line-height: 1.3;
  color: var(--ink);
}
.post-content ul, .post-content ol {
  margin-bottom: 24px;
  padding-left: 22px;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
}
.post-content strong { font-weight: 600; color: var(--ink); }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  font-style: italic;
}

/* In-body links — visibly distinct */
.post-content a,
.article-body a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.post-content a:hover,
.article-body a:hover { text-decoration-color: var(--accent); }

/* CTA band at end of articles */
.post-cta {
  background: var(--ink);
  color: white;
  padding: 56px 0;
}
.post-cta .wrap {
  max-width: 720px;
  text-align: center;
}
.post-cta h3 {
  color: white;
  font-size: 1.45rem;
  margin-bottom: 14px;
}
.post-cta p {
  color: #C9CDD8;
  margin-bottom: 26px;
  font-size: 1rem;
}
.post-cta .btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 8px;
  transition: background 0.15s;
}
.post-cta .btn:hover { background: var(--accent-light); }

.post-nav {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.post-nav .wrap {
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.post-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}
.post-nav a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .linkhub-cols { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-top { grid-template-columns: 1fr; }
  .archive-item { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.86rem; }
  .article-grid { grid-template-columns: 1fr; }
  .linkhub-cols { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
  .intro-band { padding: 64px 0; }
  .linkhub { padding: 64px 0; }
  .site-footer .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}
