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

:root {
  color-scheme: light;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #059669;
  --accent-dark: #047857;
  --accent-soft: #d1fae5;
  --accent-glow: rgba(5, 150, 105, .14);
  --paper: #ffffff;
  --band: #f8fafc;
  --panel: #f1f5f9;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 40px -12px rgba(15, 23, 42, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-dark); transition: color .15s ease; }
a:hover { color: var(--accent); }
::selection { background: var(--accent-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: 0 clamp(20px, 5vw, 68px);
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 0 0 4px var(--accent-glow);
  vertical-align: 1px;
}
nav { display: flex; gap: 6px; }
nav a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  transition: all .15s ease;
}
nav a:hover { color: var(--ink); background: var(--panel); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(52, 211, 153, .16), transparent 65%),
    radial-gradient(700px 340px at 88% 10%, rgba(56, 189, 248, .13), transparent 65%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 104px) 0 clamp(56px, 7vw, 84px);
}
.eyebrow, .rail-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--accent-soft);
  border: 1px solid rgba(5, 150, 105, .25);
  border-radius: 999px;
}
.hero h1 {
  max-width: 860px;
  margin: 0 0 22px;
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  background: linear-gradient(120deg, #0f172a 55%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

/* ---------- Content band / cards ---------- */
.content-band {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 88px;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.section-head p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.post-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, #34d399, #0ea5e9);
  opacity: 0;
  transition: opacity .22s ease;
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.post-card:hover::after { opacity: 1; }
.post-card .meta { margin: 0 0 14px; font-size: 12px; }
.post-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: -.015em; }
.post-card h3 a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
.post-card:hover h3 a { color: var(--accent-dark); }
.post-card p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.62; }
.post-card .read {
  margin-top: auto;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-dark);
  text-decoration: none;
}
.post-card .read::after { content: " \2192"; transition: margin-left .15s ease; }
.post-card:hover .read::after { margin-left: 5px; }
.meta {
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.meta span { margin-left: 10px; color: #94a3b8; font-weight: 500; letter-spacing: 0; }
.about {
  margin-top: 72px;
  padding: 36px 40px;
  max-width: 100%;
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.about h2 { margin: 0 0 12px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.about p { margin: 0; color: var(--muted); max-width: 760px; }

/* ---------- Article ---------- */
.article-layout {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 740px) 280px;
  gap: clamp(30px, 6vw, 72px);
  padding: clamp(36px, 6vw, 58px) 0 92px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .15s ease;
}
.back-link::before { content: "\2190\00a0"; }
.back-link:hover { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-soft); }
.article h1 {
  margin: 14px 0 20px;
  font-size: clamp(34px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.lede {
  margin: 0 0 40px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}
.article h2 {
  margin: 44px 0 14px;
  font-size: 25px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.article p { margin: 0 0 18px; font-size: 16.5px; color: var(--ink-soft); }
.study-box {
  margin: 40px 0;
  padding: 10px 30px 26px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border: 1px solid rgba(5, 150, 105, .22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.study-box h2 { margin-top: 22px; font-size: 20px; }
.study-box h2::before { content: "\2713\00a0\00a0"; color: var(--accent); }
.study-box ul { margin: 0; padding-left: 22px; }
.study-box li { margin: 9px 0; color: var(--ink-soft); }
.study-box li::marker { color: var(--accent); }
.course-box {
  margin: 46px 0 40px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--band);
  box-shadow: var(--shadow-sm);
}
.course-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--accent-soft);
  border-radius: 999px;
}
.course-box h2 { margin: 0 0 10px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.affiliate-disclosure { margin: 0 0 20px; color: #94a3b8; font-size: 13.5px !important; }
.course-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.course-link {
  display: block;
  min-height: 124px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.course-link:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.course-name { display: block; margin-bottom: 8px; color: var(--accent-dark); font-weight: 700; line-height: 1.3; }
.course-fit { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.rail {
  position: sticky;
  top: 104px;
  height: max-content;
  margin-top: 104px;
  padding: 26px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.rail p:last-child { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
  padding: 48px max(calc((100% - 1100px) / 2), 20px) 52px;
  background:
    radial-gradient(500px 200px at 85% 0%, rgba(52, 211, 153, .1), transparent 60%),
    #0f172a;
  color: white;
}
.site-footer strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.site-footer p { margin: 8px 0 0; color: #94a3b8; font-size: 13.5px; line-height: 1.6; }
.disclaimer { max-width: 480px; }

/* ---------- Ads ---------- */
.ad-slot { margin: 26px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .rail { position: static; margin-top: 0; }
}
@media (max-width: 620px) {
  .site-header { min-height: 60px; padding: 0 16px; }
  nav { gap: 0; }
  nav a { padding: 6px 10px; }
  .post-grid { grid-template-columns: 1fr; }
  .course-list { grid-template-columns: 1fr; }
  .course-box { padding: 22px; }
  .section-head, .site-footer { display: block; }
  .post-card { min-height: 0; }
  .article p { font-size: 16px; }
  .about { padding: 26px 22px; }
  .disclaimer { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
