:root {
  --ink: #2a2826;
  --ink-soft: #4a4744;
  --muted: #7a7671;
  --bg: #f4f2ef;
  --surface: #ffffff;
  --surface-alt: #ebe8e3;
  --accent: #8a7b6a;
  --accent-dark: #6d5f50;
  --accent-light: #c9bfb0;
  --border: #ddd9d3;
  --shadow: 0 4px 24px rgba(42, 40, 38, 0.08);
  --shadow-sm: 0 2px 12px rgba(42, 40, 38, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1140px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --line-body: 1.75;
  --line-head: 1.3;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--line-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a:hover { color: var(--accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Cookie bottom bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--surface-alt);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

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

.cookie-bar p { flex: 1; max-width: 720px; }

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

.cookie-bar button {
  background: var(--accent);
  color: var(--surface);
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
}

.cookie-bar button:hover { background: var(--accent-dark); }

body.cookie-visible { padding-bottom: 72px; }

/* Split nav header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  gap: var(--space-md);
}

.brand a {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.main-nav a.active {
  background: var(--ink);
  color: var(--surface);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink);
}

/* Hero carousel */
.hero-carousel {
  position: relative;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
}

.carousel-slide .slide-visual {
  position: relative;
  min-height: 380px;
  background: var(--surface-alt);
}

.carousel-slide .slide-visual img,
.carousel-slide .slide-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.carousel-slide .slide-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.slide-body h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: var(--line-head);
  margin-bottom: var(--space-sm);
}

.slide-body h2 a {
  color: var(--ink);
  text-decoration: none;
}

.slide-body h2 a:hover { color: var(--accent-dark); }

.slide-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.slide-excerpt {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.slide-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent-dark);
}

.carousel-controls {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: var(--surface-alt);
  border-color: var(--accent-light);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.15);
}

/* Page layout with right rail */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-xl);
}

.main-content { min-width: 0; }

.sidebar-right {
  position: sticky;
  top: 80px;
}

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

.sidebar-widget h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

.sidebar-widget ul { list-style: none; }

.sidebar-widget li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--surface-alt);
  font-size: 0.9rem;
}

.sidebar-widget li:last-child { border-bottom: none; }

.sidebar-widget a {
  text-decoration: none;
  color: var(--ink-soft);
}

.sidebar-widget a:hover { color: var(--accent-dark); }

.sidebar-author {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-sm);
}

.sidebar-author img,
.sidebar-author svg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}

.sidebar-author span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Section headers */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  margin-bottom: var(--space-lg);
  line-height: var(--line-head);
}

/* Horizontal article rows */
.article-list { margin-bottom: var(--space-lg); }

.article-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
}

.article-row:hover { box-shadow: var(--shadow); }

.article-row .thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface-alt);
}

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

.article-row h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: var(--line-head);
  margin-bottom: var(--space-xs);
}

.article-row h3 a {
  color: var(--ink);
  text-decoration: none;
}

.article-row h3 a:hover { color: var(--accent-dark); }

.article-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.article-meta .cat {
  color: var(--accent);
  font-weight: 500;
}

.article-excerpt {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Mixed magazine breakout */
.magazine-breakout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.breakout-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: var(--space-md);
}

.breakout-card.span-7 { grid-column: span 7; }
.breakout-card.span-5 { grid-column: span 5; }
.breakout-card.span-12 { grid-column: span 12; }

.breakout-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.breakout-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.breakout-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Wide magazine article */
.article-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: var(--line-head);
  margin-bottom: var(--space-md);
  max-width: 820px;
}

.article-header .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 720px;
}

.article-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.article-body {
  font-size: 1.0625rem;
  line-height: var(--line-body);
  max-width: 720px;
}

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

.article-body h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin: var(--space-lg) 0 var(--space-sm);
}

.article-body blockquote {
  border-left: 3px solid var(--accent-light);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-lg) 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.article-byline img,
.article-byline svg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.byline-text strong {
  display: block;
  font-size: 0.9rem;
}

.byline-text span {
  font-size: 0.82rem;
  color: var(--muted);
}

.updated-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: var(--space-xs);
}

.related-stories {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.related-stories h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.related-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  box-shadow: var(--shadow-sm);
}

.related-item a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.95rem;
}

/* Static pages */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: var(--space-sm);
}

.page-hero .subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
}

.prose {
  max-width: 720px;
  margin-bottom: var(--space-xl);
}

.prose h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: var(--space-lg) 0 var(--space-sm);
}

.prose p { margin-bottom: var(--space-md); }

.prose ul {
  margin: var(--space-sm) 0 var(--space-md) var(--space-md);
}

.prose li { margin-bottom: var(--space-xs); }

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--surface);
  margin-bottom: var(--space-md);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form button {
  background: var(--ink);
  color: var(--surface);
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.contact-form button:hover { background: var(--accent-dark); }

/* Two-column footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-xl);
}

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

.footer-brand .brand-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 360px;
}

.footer-links h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 6px; }

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Responsive */
@media (max-width: 960px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar-right { position: static; }
  .carousel-slide { grid-template-columns: 1fr; }
  .carousel-slide .slide-visual { min-height: 240px; }
  .magazine-breakout { grid-template-columns: 1fr; }
  .breakout-card.span-7,
  .breakout-card.span-5,
  .breakout-card.span-12 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }

  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .main-nav ul.open { display: flex; }

  .main-nav a { width: 100%; text-align: center; }

  .header-inner { position: relative; }

  .article-row { grid-template-columns: 1fr; }
  .article-row .thumb { max-height: 200px; }
  .related-grid { grid-template-columns: 1fr; }
  .cookie-bar { flex-direction: column; text-align: center; }
}
