:root {
  --bg-base: #1c1f24;
  --bg-surface: rgba(28, 31, 36, 0.75);
  --bg-card: rgba(35, 40, 47, 0.65);
  --accent-teal: #14b8a6;
  --accent-teal-dark: #0f766e;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(20, 184, 166, 0.25);
  --border-glass: rgba(255, 255, 255, 0.08);
  --font-serif: Charter, Cambria, Georgia, serif;
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-serif);
  line-height: 1.65;
  font-size: 1.05rem;
  overflow-x: hidden;
}

a {
  color: var(--accent-teal);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all 0.2s ease;
}

a:hover {
  color: #5eead4;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--accent-teal);
  color: #042f2e;
  padding: 0.5rem 1rem;
  font-weight: 600;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Slim Header */
.site-header {
  position: static;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(24, 27, 32, 0.95);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant: small-caps;
}

.brand-wrapper:hover {
  color: var(--accent-teal);
}

.brand-logo {
  width: 24px;
  height: 24px;
  color: var(--accent-teal);
  display: block;
}

.nav-split-left, .nav-split-right {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
}

.nav-link {
  font-variant: small-caps;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-teal);
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: #fff;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-teal);
  color: #042f2e;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  text-decoration: none;
  border: 1px solid var(--accent-teal);
  transition: all 0.2s ease;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #2dd4bf;
  color: #022c22;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-glass);
  padding: 0.4rem;
  cursor: pointer;
  color: var(--text-main);
  border-radius: 4px;
}

/* Mobile Dropdown */
.mobile-nav {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #181b20;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-variant: small-caps;
  font-size: 1.1rem;
}

/* Layout Elements */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Hero Section */
.hero-band {
  background: linear-gradient(135deg, #1c1f24 0%, #132226 50%, #0d1e24 100%);
  padding: 4.5rem 1.5rem 4rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.hero-band.diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
  padding-bottom: 5.5rem;
}

.hero-content {
  max-width: 1080px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-variant: small-caps;
  letter-spacing: 0.15em;
  color: var(--accent-teal);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #f3f4f6;
  margin-bottom: 1.25rem;
}

.hero-lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.7;
}

/* Timeline & Numbered Sections */
.timeline-wrapper {
  position: relative;
  margin-top: 3rem;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 1rem;
  bottom: 2rem;
  left: 2rem;
  width: 1px;
  background: var(--border-subtle);
}

.timeline-step {
  position: relative;
  padding-left: 4.5rem;
  margin-bottom: 4rem;
}

.step-badge {
  position: absolute;
  left: 0.85rem;
  top: 0;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: #181b20;
  border: 1px solid var(--accent-teal);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 2rem;
  margin-top: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.glass-card:hover {
  border-color: var(--border-subtle);
}

.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Imagery */
.art-image {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  border: 1px solid var(--border-glass);
  margin: 1.5rem 0;
  display: block;
}

.image-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

/* Typography elements */
h2 {
  font-size: 1.85rem;
  color: #f9fafb;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

h3 {
  font-size: 1.35rem;
  color: #f3f4f6;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.2rem;
  overflow-wrap: anywhere;
}

.tag-label {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--accent-teal);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-glass);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border-glass);
}

th {
  background: rgba(20, 184, 166, 0.08);
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: #fff;
}

tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Details & Accordion */
details {
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
}

details[open] {
  border-color: var(--border-subtle);
  background: rgba(30, 36, 43, 0.8);
}

summary {
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: #f3f4f6;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--accent-teal);
  font-size: 1.3rem;
  line-height: 1;
}

details[open] summary::after {
  content: '−';
}

details p {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: #d1d5db;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  font-variant: small-caps;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Draft Form Tool */
.draft-tool {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 2rem;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.draft-textarea {
  width: 100%;
  height: 150px;
  background: #121417;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem;
  resize: vertical;
}

.draft-textarea:focus {
  border-color: var(--accent-teal);
  outline: none;
}

.button-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent-teal);
  color: var(--accent-teal);
  padding: 0.5rem 1.1rem;
  font-variant: small-caps;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.btn-secondary:hover {
  background: rgba(20, 184, 166, 0.1);
}

.draft-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--accent-teal);
  min-height: 1.2rem;
}

/* Site Footer */
.site-footer {
  background: #14161a;
  border-top: 1px solid var(--border-glass);
  padding: 3.5rem 1.5rem 2.5rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-col h4 {
  color: #f3f4f6;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-teal);
}

.footer-bottom {
  max-width: 1080px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .nav-split-left, .nav-split-right, .btn-primary.desktop-only {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .timeline-wrapper::before {
    left: 1rem;
  }
  .timeline-step {
    padding-left: 2.8rem;
  }
  .step-badge {
    left: 0;
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
