:root {
  --ink: #101318;
  --text: #f5f1e8;
  --muted: #aeb8c5;
  --paper: #f4efe4;
  --paper-2: #ebe3d4;
  --panel: #fffaf0;
  --line: rgba(16, 19, 24, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --coral: #ef6650;
  --coral-dark: #aa3428;
  --emerald: #2fd6a3;
  --blue: #62a9ff;
  --amber: #f2b84b;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(16, 19, 24, 0.18);
  --shadow-strong: 0 34px 100px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

::selection {
  background: var(--coral);
  color: #fff;
}

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  color: #fff;
  background: rgba(10, 13, 17, 0.82);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
}

.brand-logo {
  width: 248px;
  height: auto;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-left: 86px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #dbe3ea;
  font-size: 14px;
  font-weight: 800;
}

.main-nav a {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.hero {
  position: relative;
  min-height: 740px;
  margin-top: -76px;
  padding: 150px 0 74px;
  overflow: hidden;
  color: var(--text);
  background: #080b10;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.94) 0%, rgba(5, 8, 12, 0.76) 38%, rgba(5, 8, 12, 0.26) 72%, rgba(5, 8, 12, 0.62) 100%),
    linear-gradient(0deg, rgba(5, 8, 12, 0.95) 0%, rgba(5, 8, 12, 0.04) 42%),
    url("/assets/images/nextgenboards-hero.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 92px;
  background: linear-gradient(180deg, rgba(244, 239, 228, 0), var(--paper));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.72fr);
  gap: 44px;
  align-items: end;
}

.hero-copy {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.04;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(46px, 7vw, 86px);
}

.hero-copy p:not(.eyebrow),
.lede,
.deck {
  max-width: 690px;
  color: #d4dde7;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(239, 102, 80, 0.3);
}

.button:hover,
.button:focus {
  background: #ff765f;
  outline: 3px solid rgba(47, 214, 163, 0.36);
  outline-offset: 3px;
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-dark);
  box-shadow: none;
}

.hero-stack {
  display: grid;
  gap: 14px;
}

.featured-card,
.article-card a {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  overflow: hidden;
}

.featured-card {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 250, 240, 0.94);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(14px);
}

.featured-card img,
.article-card img {
  width: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.featured-card img {
  aspect-ratio: 16 / 10;
}

.featured-card .pill,
.featured-card h2,
.featured-card p {
  margin-left: 18px;
  margin-right: 18px;
}

.featured-card .pill { margin-top: 18px; }

.featured-card h2 {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: 30px;
}

.featured-card p {
  margin-bottom: 20px;
  color: #536070;
}

.featured-card:hover img,
.featured-card:focus img,
.article-card a:hover img,
.article-card a:focus img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

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

.signal-row span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #ecf4f9;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: #ffe0d8;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
}

.section,
.page {
  padding: 64px 0;
}

.page {
  max-width: 820px;
}

.page h1 { font-size: clamp(38px, 6vw, 64px); }
.page h2 { margin-top: 32px; font-size: 30px; }

.page p,
.page li {
  color: #596171;
  font-size: 18px;
}

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

.section-heading h2,
.band h2 { font-size: clamp(34px, 5vw, 54px); }

.section-heading p {
  max-width: 520px;
  color: #596171;
  margin: 0;
}

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

.article-card a {
  position: relative;
  background: #fffaf0;
}

.article-card img {
  aspect-ratio: 16 / 11;
}

.article-card .pill,
.article-card h3,
.article-card p,
.article-card small {
  margin-left: 16px;
  margin-right: 16px;
}

.article-card .pill { margin-top: 16px; }

.article-card h3 {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 23px;
}

.article-card p,
.compact-list small,
.article-meta p { color: #596171; }

.article-card small,
.byline {
  display: block;
  color: #697487;
  font-size: 13px;
  font-weight: 800;
}

.article-card small { margin-bottom: 18px; }

.band {
  position: relative;
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(47, 214, 163, 0.2), transparent 34%),
    radial-gradient(circle at 78% 20%, rgba(239, 102, 80, 0.24), transparent 32%),
    #101318;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 46px;
  align-items: start;
}

.split p {
  color: #c8d3dc;
  font-size: 18px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-list li {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.check-list strong,
.check-list span { display: block; }

.check-list strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.check-list span {
  color: #c8d3dc;
  font-size: 14px;
}

.compact-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.compact-list a {
  display: grid;
  grid-template-columns: 130px 1fr 105px;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  align-items: center;
}

.compact-list a:hover,
.compact-list a:focus {
  color: var(--coral-dark);
  outline: none;
}

.compact-list span {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-page { padding: 54px 0 78px; }

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 34px;
  align-items: center;
  margin-bottom: 48px;
}

.article-hero h1 { font-size: clamp(36px, 5vw, 62px); }

.article-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.byline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 44px;
  align-items: start;
}

.article-meta {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 38px rgba(16, 19, 24, 0.08);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag-list span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.article-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.78;
}

.article-body h2 {
  margin: 36px 0 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 30px;
}

.article-body p { margin: 0 0 18px; }

.editor-note {
  margin-top: 34px;
  padding: 20px;
  border-left: 4px solid var(--emerald);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #eaf5ee;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
}

.site-footer {
  padding: 44px 0;
  background: #0b0e12;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.site-footer p { color: #c2c8d0; max-width: 560px; }

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--emerald);
  outline: none;
}

@media (max-width: 900px) {
  .nav-wrap,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-grid,
  .split,
  .article-hero,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy { min-height: 420px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .article-meta { position: static; }
  .compact-list a { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .main-nav { gap: 4px; }
  .main-nav a { padding: 7px 8px; }
  h1 { font-size: 42px; }
  .hero-copy { min-height: 360px; }
  .card-grid,
  .check-list,
  .signal-row,
  .site-footer nav { grid-template-columns: 1fr; }
  .section,
  .page { padding: 46px 0; }
}
