/* Volume — high-contrast-bw business-digest editorial */

:root {
  --ink: #0a0a0a;
  --ink-soft: #1f1f23;
  --paper: #f4f4f2;
  --surface: #ffffff;
  --gray-700: #3a3a40;
  --gray-500: #6b6b72;
  --gray-400: #94949c;
  --gray-200: #d8d8dc;
  --gray-100: #ececee;
  --accent: #0a0a0a;
  --accent-inv: #ffffff;
  --shadow-sm: 0 1px 3px rgba(10, 10, 10, 0.08);
  --shadow-md: 0 4px 14px rgba(10, 10, 10, 0.1);
  --shadow-lg: 0 8px 28px rgba(10, 10, 10, 0.12);
  --container: 1140px;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --header-h: 3.5rem;
  --header-h-shrink: 2.75rem;
  --col-gap: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--gray-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body.header-shrunk {
  --header-h: var(--header-h-shrink);
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--gray-500);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

h1 { font-size: 2.125rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

p {
  margin: 0 0 var(--space-md);
}

ul, ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}

.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

/* Compact topbar header — sticky shrink */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  transition: box-shadow 0.2s ease;
}

.site-header.is-shrunk {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  transition: min-height 0.25s ease;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logo img,
.logo svg {
  width: 32px;
  height: 32px;
  transition: width 0.25s, height 0.25s;
}

.site-header.is-shrunk .logo img,
.site-header.is-shrunk .logo svg {
  width: 26px;
  height: 26px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transition: font-size 0.25s;
}

.site-header.is-shrunk .logo-text {
  font-size: 1.05rem;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-700);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  background: var(--ink);
  color: var(--accent-inv);
  border: none;
  padding: 0.45rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

/* Category strip */
.category-strip {
  background: var(--ink);
  color: var(--accent-inv);
}

.category-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding-block: var(--space-xs);
}

.cat-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--gray-400);
  padding: 0.15rem 0;
}

.cat-tag:hover {
  color: var(--accent-inv);
}

/* Hero — split image text */
.hero-split {
  padding: var(--space-2xl) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--gray-200);
}

.hero-split .grid-12 {
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: var(--space-xs);
}

.hero-split h1 {
  font-size: 2.35rem;
  margin-bottom: var(--space-md);
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--gray-700);
  max-width: 42ch;
  margin-bottom: var(--space-lg);
}

.hero-meta {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-text {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}

.btn-text:hover {
  color: var(--gray-500);
  border-color: var(--gray-500);
}

/* Section titles */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--gray-200);
}

.section-head h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* Horizontal row article list */
.article-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-row {
  margin-bottom: var(--space-md);
}

.article-row-link {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-row-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.article-row-link:hover .row-title {
  color: var(--gray-500);
}

.row-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-100);
}

.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-body {
  padding: var(--space-md) var(--space-md) var(--space-md) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.row-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}

.row-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.4rem;
  line-height: 1.3;
  transition: color 0.15s;
}

.row-excerpt {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.row-meta {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* Shadowed cards */
.card-shadow {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* Right rail sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.sidebar-block {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.sidebar-block h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: var(--space-md);
}

.author-widget {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gray-100);
}

.author-widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.author-widget img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--gray-200);
}

.author-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
  margin: 0 0 0.15rem;
}

.author-role {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin: 0 0 0.35rem;
}

.author-bio {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.45;
}

.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-links li {
  margin-bottom: 0.5rem;
}

.sidebar-links a {
  font-size: 0.875rem;
  text-decoration: none;
}

/* Home layout */
.home-section {
  padding: var(--space-2xl) 0;
}

.home-intro {
  padding: var(--space-2xl) 0;
  background: var(--surface);
  border-top: 1px solid var(--gray-200);
}

.home-intro h2 {
  font-size: 1.35rem;
  margin-bottom: var(--space-md);
}

/* Page layouts */
.page-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--surface);
  border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
  font-size: 2rem;
  max-width: 20ch;
}

.page-content {
  padding: var(--space-2xl) 0;
}

.page-content.narrow {
  max-width: 42rem;
}

/* Wide magazine article */
.article-header {
  padding: var(--space-2xl) 0 var(--space-lg);
  background: var(--surface);
  border-bottom: 1px solid var(--gray-200);
}

.article-header .article-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: var(--space-sm);
}

.article-header h1 {
  font-size: 2.5rem;
  max-width: 18ch;
  margin-bottom: var(--space-md);
}

.article-deck {
  font-size: 1.125rem;
  color: var(--gray-700);
  max-width: 52ch;
  margin-bottom: var(--space-lg);
}

.article-byline {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.article-byline img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
}

.article-featured-img {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  font-size: 1rem;
  line-height: 1.65;
}

.article-body h2 {
  font-size: 1.35rem;
  margin-top: var(--space-xl);
}

.article-body blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  border-left: 4px solid var(--ink);
  background: var(--gray-100);
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.article-body .updated {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-200);
}

.related-articles {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--ink);
}

.related-articles h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--gray-200);
}

.related-list a {
  text-decoration: none;
  font-weight: 600;
}

/* Contact form */
.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: var(--space-md);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.contact-form button {
  background: var(--ink);
  color: var(--accent-inv);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.contact-form button:hover {
  background: var(--gray-700);
}

/* Two-column footer */
.site-footer {
  background: var(--ink);
  color: var(--gray-400);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-brand .footer-logo {
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--accent-inv);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 32ch;
}

.footer-col h4 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-inv);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: var(--accent-inv);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-700);
  font-size: 0.75rem;
}

/* Bottom-bar cookie */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--ink);
  color: var(--gray-400);
  padding: var(--space-md) 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-bar.is-visible {
  transform: translateY(0);
}

.cookie-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cookie-bar p {
  margin: 0;
  font-size: 0.8125rem;
  max-width: 52ch;
  flex: 1;
}

.cookie-bar a {
  color: var(--accent-inv);
}

.cookie-accept {
  background: var(--accent-inv);
  color: var(--ink);
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cookie-accept:hover {
  background: var(--gray-200);
}

body.cookie-visible {
  padding-bottom: 4.5rem;
}

/* Utility */
.text-muted { color: var(--gray-500); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .col-8, .col-4 { grid-column: span 12; }
  .sidebar { position: static; }
  .article-row-link { grid-template-columns: 140px 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}

@media (max-width: 720px) {
  h1 { font-size: 1.75rem; }
  .hero-split h1 { font-size: 1.85rem; }
  .article-header h1 { font-size: 1.85rem; }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--ink);
    padding: var(--space-md) 0;
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 var(--space-md);
  }

  .main-nav li {
    border-bottom: 1px solid var(--gray-100);
  }

  .main-nav a {
    display: block;
    padding: var(--space-sm) 0;
  }

  .site-header { position: relative; }

  .article-row-link {
    grid-template-columns: 1fr;
  }

  .row-body {
    padding: var(--space-md);
  }

  .row-thumb {
    aspect-ratio: 16 / 9;
  }

  .cookie-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
