:root {
  color-scheme: light;
  --paper: #f3efe5;
  --surface: #fffdf7;
  --surface-strong: #f7f1e3;
  --ink: #151515;
  --muted: #625d55;
  --line: rgba(38, 32, 24, 0.12);
  --teal: #0d6b63;
  --teal-deep: #08463f;
  --gold: #bf8f2f;
  --rust: #9f4d2d;
  --cloud: #dae7eb;
  --shadow: 0 24px 60px rgba(24, 18, 8, 0.1);
  --font-sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(191, 143, 47, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(13, 107, 99, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f3e9 0%, var(--paper) 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
}

[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
}

.skip-link {
  left: 18px;
  opacity: 0;
  position: absolute;
  top: 16px;
  z-index: 10;
}

.skip-link:focus {
  opacity: 1;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(248, 243, 233, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, var(--teal-deep), var(--teal));
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #f8f3e9;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  letter-spacing: 0.08em;
  min-width: 42px;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-text span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 5px;
  text-transform: uppercase;
}

.brand > span:not(.brand-mark):not(.brand-text) {
  color: var(--teal);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 5px;
  text-transform: uppercase;
}

.header-note {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 9px 12px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(13, 107, 99, 0.08);
  color: var(--ink);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  min-height: 78vh;
  padding: clamp(40px, 7vw, 94px) clamp(18px, 5vw, 72px) clamp(32px, 5vw, 64px);
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.hero-mini-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.hero-mini-grid section {
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
}

.hero-mini-grid strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.hero-mini-grid p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h1,
h2 {
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(3rem, 7vw, 6.1rem);
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  margin: 0;
}

h3 {
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.lead {
  color: #35312b;
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  max-width: 680px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-proof span {
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(13, 107, 99, 0.12);
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--teal-deep);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 9px 12px;
}

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

.button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #fffdf7;
  display: inline-flex;
  font-weight: 900;
  min-height: 46px;
  padding: 10px 18px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus {
  box-shadow: 0 14px 30px rgba(21, 21, 21, 0.12);
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero-panel {
  align-self: stretch;
  display: grid;
  gap: 18px;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.hero-visual-shell {
  background: rgba(6, 23, 21, 0.3);
  border: 1px solid rgba(13, 107, 99, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.feature-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(13, 107, 99, 0.14), rgba(191, 143, 47, 0.16));
  border: 1px solid rgba(13, 107, 99, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  background: linear-gradient(120deg, rgba(13, 107, 99, 0.08), transparent 44%);
  content: "";
  inset: 0;
  position: absolute;
}

.feature-card > * {
  position: relative;
}

.feature-kicker {
  color: var(--teal);
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.feature-link {
  color: var(--ink);
  font-weight: 900;
  margin-top: 18px;
  text-decoration: none;
}

.hero-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-grid section {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}

.hero-grid strong {
  color: var(--teal-deep);
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
}

.hero-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  margin-top: 6px;
}

.ticker {
  border-block: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin-inline: clamp(18px, 5vw, 72px);
  overflow: hidden;
  border-radius: 24px;
}

.ticker div {
  background: rgba(255, 253, 247, 0.9);
  min-height: 116px;
  padding: 24px;
}

.ticker strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
}

.ticker span {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  margin-top: 8px;
}

.band {
  padding: clamp(44px, 6vw, 82px) clamp(18px, 5vw, 72px);
}

.band.alt {
  background: rgba(255, 255, 255, 0.5);
  border-block: 1px solid var(--line);
}

.band-premium {
  background:
    radial-gradient(circle at top right, rgba(13, 107, 99, 0.12), transparent 30%),
    linear-gradient(180deg, #173532 0%, #0f2422 100%);
  color: #f8f3e9;
}

.band-signal {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.76), rgba(255, 247, 232, 0.9));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto 30px;
  max-width: 1180px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 540px;
}

.premium-shell,
.article-grid,
.operator-list,
.stack-grid {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1180px;
}

.premium-shell {
  grid-template-columns: 1.05fr 1fr;
}

.article-grid,
.operator-list,
.stack-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-copy p:last-child {
  color: rgba(248, 243, 233, 0.8);
  max-width: 580px;
}

.premium-list {
  display: grid;
  gap: 14px;
}

.premium-list section {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 22px;
}

.premium-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}

.premium-list p {
  color: rgba(248, 243, 233, 0.76);
  margin: 0;
}

.article-card,
.stack-card {
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 100%;
  overflow: hidden;
}

.article-card {
  display: flex;
  flex-direction: column;
}

.article-card a {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
  text-decoration: none;
}

.article-thumb {
  border-radius: 18px;
  margin-bottom: 18px;
  overflow: hidden;
}

.article-thumb img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.accent-teal {
  background: linear-gradient(135deg, rgba(13, 107, 99, 0.16), rgba(218, 231, 235, 0.64));
}

.accent-gold {
  background: linear-gradient(135deg, rgba(228, 180, 95, 0.2), rgba(255, 248, 231, 0.7));
}

.accent-rust {
  background: linear-gradient(135deg, rgba(159, 77, 45, 0.18), rgba(255, 244, 237, 0.72));
}

.article-card .category {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-card p {
  color: var(--muted);
  margin: 0;
}

.article-card time {
  color: var(--muted);
  font-size: 0.88rem;
}

.article-card-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 22px;
}

.article-card-meta span {
  font-size: 0.88rem;
}

.stack-card {
  padding: 26px;
}

.stack-card span {
  color: var(--gold);
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.stack-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.ad-slot {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(191, 143, 47, 0.08), rgba(13, 107, 99, 0.12)),
    #f1eadb;
  border: 1px dashed #b9a887;
  border-radius: 22px;
  color: #665c4b;
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: center;
  min-height: 120px;
  text-align: center;
  text-transform: uppercase;
}

.ad-slot.wide {
  margin: 0 auto;
  max-width: 1180px;
}

.operator-list section {
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.operator-list p {
  color: var(--muted);
  margin-bottom: 0;
}

.site-footer {
  background: #171513;
  color: #fff8ef;
  display: grid;
  gap: 20px;
  grid-template-columns: 1.2fr 1fr auto;
  padding: 36px clamp(18px, 5vw, 72px);
}

.footer-brand p,
.footer-meta p {
  color: rgba(255, 248, 239, 0.72);
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a {
  color: #eee2d0;
}

.article-layout {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 760px) minmax(240px, 320px);
  margin: 0 auto;
  max-width: 1160px;
  padding: clamp(42px, 6vw, 78px) clamp(18px, 5vw, 72px);
}

.article-body {
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 46px);
}

.article-intro {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  margin-bottom: 24px;
}

.article-intro-copy {
  align-self: center;
}

.article-body h1 {
  font-size: clamp(2.5rem, 5vw, 4.7rem);
}

.article-body h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin-top: 38px;
}

.article-body p,
.article-body li {
  color: #34322e;
  font-size: 1.04rem;
}

.article-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 700;
}

.article-meta span {
  background: rgba(13, 107, 99, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
}

.article-summary {
  font-size: 1.12rem;
  margin-bottom: 0;
}

.article-cover {
  border-radius: 22px;
  overflow: hidden;
}

.article-cover img {
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  width: 100%;
}

.takeaway-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
}

.takeaway-strip p {
  background: rgba(13, 107, 99, 0.06);
  border: 1px solid rgba(13, 107, 99, 0.12);
  border-radius: 18px;
  margin: 0;
  padding: 16px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-block {
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.sidebar-block p {
  color: var(--muted);
  margin-bottom: 0;
}

.sidebar-links {
  display: grid;
  gap: 12px;
}

.sidebar-links a {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  text-decoration: none;
}

.sidebar-links a:first-child {
  border-top: 0;
  padding-top: 0;
}

.sidebar-links strong,
.sidebar-links span {
  display: block;
}

.sidebar-links span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.plain-page {
  margin: 0 auto;
  max-width: 900px;
  padding: clamp(42px, 6vw, 78px) clamp(18px, 5vw, 72px);
}

.plain-page h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.plain-page p,
.plain-page li {
  color: #34322e;
}

body.compact-mode .hero {
  min-height: auto;
}

body.compact-mode .band,
body.compact-mode .plain-page,
body.compact-mode .article-layout {
  padding-bottom: 34px;
  padding-top: 34px;
}

body.compact-mode .article-body p,
body.compact-mode .article-body li {
  font-size: 0.98rem;
}

@media (max-width: 980px) {
  .hero,
  .article-layout,
  .site-footer,
  .premium-shell,
  .article-intro {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .ticker,
  .article-grid,
  .operator-list,
  .stack-grid,
  .hero-grid,
  .hero-mini-grid,
  .takeaway-strip {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: start;
  }

  .ticker,
  .article-grid,
  .operator-list,
  .stack-grid,
  .hero-grid,
  .hero-mini-grid,
  .takeaway-strip {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .article-body {
    padding: 22px;
  }
}
