:root {
  color-scheme: dark;
  --bg: #0e0e0e;
  --surface: #141414;
  --text: #f0ede8;
  --muted: rgba(255, 255, 255, 0.62);
  --quiet: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #aeb7b1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 500;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-180%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0;
  background: rgba(14, 14, 14, 0.96);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-name { display: flex; align-items: center; text-decoration: none; }
.nav-logo { display: block; width: 205px; height: auto; }
.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 38px;
  background: var(--bg);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

main { min-height: 60vh; }
.page-header,
.listing-section,
.article-page,
.related,
footer {
  width: min(100% - 48px, 820px);
  margin-inline: auto;
}

.page-header {
  padding: 72px 0 44px;
  border-bottom: 0.5px solid var(--line);
}
.page-label,
.section-label,
.article-category {
  margin: 0 0 16px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.page-header h1,
.article-header h1,
.related h2,
.article-card h2,
.related-card h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: #fff;
}
.page-header h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 60px);
  line-height: 1.05;
}
.page-description {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  line-height: 1.75;
}

.listing-section { padding: 30px 0 64px; }
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.filter-button {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filter-button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.38); }
.filter-button.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}
.article-card {
  min-width: 0;
  padding: 30px 28px;
  background: var(--bg);
}
.article-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.25;
}
.article-card h2 a,
.related-card h3 a { text-decoration: none; }
.article-card h2 a:hover,
.related-card h3 a:hover { color: var(--accent); }
.article-excerpt,
.related-card > p:not(.article-category) {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.read-link,
.back-link {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.read-link:hover,
.back-link:hover { color: #fff; }

.article-page { padding: 62px 0 64px; }
.back-link { display: inline-block; margin-bottom: 54px; color: var(--quiet); }
.article-header {
  padding-bottom: 34px;
  border-bottom: 0.5px solid var(--line);
}
.article-header h1 {
  max-width: 780px;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.article-content {
  max-width: 680px;
  margin-top: 42px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.88;
}
.article-content p { margin: 0 0 25px; }
.article-content p:last-child { margin-bottom: 0; }
.article-content p:first-child {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  line-height: 1.55;
}
.article-actions {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 0.5px solid var(--line);
}
.meeting-link {
  display: inline-block;
  margin-bottom: 28px;
  padding: 13px 24px;
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.meeting-link:hover { background: var(--text); color: var(--bg); }
.share-actions { display: flex; align-items: center; gap: 18px; }
.share-link,
.copy-link {
  border: 0;
  background: none;
  color: var(--quiet);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.share-link:hover,
.copy-link:hover { color: var(--text); }
.copy-status { min-height: 20px; margin: 12px 0 0; color: var(--accent); font-size: 12px; }

.related {
  padding: 52px 0 68px;
  border-top: 0.5px solid var(--line);
}
.related h2 { margin-bottom: 28px; font-size: clamp(28px, 5vw, 38px); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}
.related-card { min-width: 0; padding: 24px 20px; background: var(--bg); }
.related-card h3 { margin-bottom: 12px; font-size: 19px; line-height: 1.3; }
.related-card > p:not(.article-category) { font-size: 13px; }

footer {
  padding: 34px 0 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid var(--line);
}
.footer-name { color: var(--quiet); font-family: 'Playfair Display', serif; font-size: 14px; }
footer a { color: var(--quiet); font-size: 12px; text-decoration: none; }
footer a:hover { color: var(--text); }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .article-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .page-header,
  .listing-section,
  .article-page,
  .related,
  footer { width: min(100% - 40px, 820px); }
  .page-header { padding-top: 52px; }
  .article-page { padding-top: 42px; }
  .back-link { margin-bottom: 40px; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 12px 20px; }
  .nav-logo { width: 175px; }
  .page-header h1 { font-size: 42px; }
  .article-card { padding: 26px 22px; }
  .article-header h1 { font-size: 40px; }
  .article-content { font-size: 16px; line-height: 1.82; }
  .article-content p:first-child { font-size: 20px; }
  footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
