:root {
  --bg-canvas: #0d2a33;
  --bg-surface: #183d46;
  --bg-surface-elevated: #1f4954;
  --text-primary: #e0f2f1;
  --text-muted: #9dc1c4;
  --accent-primary: #ff6f59;
  --accent-soft: rgba(255, 111, 89, 0.18);
  --border-subtle: #27525d;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-card: 20px;
  --radius-btn: 0px;
  --max-width: 1100px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-primary);
  color: #0d2a33;
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: normal;
  line-height: 1.25;
  color: var(--text-primary);
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  max-width: 70ch;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover, a:focus-visible {
  opacity: 0.85;
  text-decoration: underline;
}

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

/* Header & Navigation */
.site-header {
  position: static;
  background: #091f26;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 1.5rem;
  width: 100%;
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: var(--accent-primary);
  border-radius: 50%;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  border-bottom-color: var(--accent-primary);
  text-decoration: none;
}

/* 3-dot Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1.2rem;
  line-height: 1;
}

.mobile-nav-pane {
  display: none;
  background: #091f26;
  border-bottom: 2px solid var(--border-subtle);
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-nav-pane.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mobile-nav-link {
  display: block;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  padding: 0.5rem 0;
}

/* Layout Wrappers & Alternating Bands */
.band {
  width: 100%;
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem;
  position: relative;
}

.band-base {
  background-color: var(--bg-canvas);
}

.band-surface {
  background-color: var(--bg-surface);
}

.band-radial {
  background: radial-gradient(circle at 80% 20%, rgba(255, 111, 89, 0.12) 0%, var(--bg-canvas) 70%);
}

.band-radial-alt {
  background: radial-gradient(circle at 20% 80%, rgba(255, 111, 89, 0.14) 0%, var(--bg-surface) 75%);
}

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

/* Short headline-only hero */
.hero-band {
  padding: clamp(2rem, 4vw, 3rem) 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background-color: #0b242c;
}

.hero-band h1 {
  margin-bottom: 0.5rem;
}

.hero-band p.hero-subtitle {
  font-size: 1.15rem;
  color: var(--accent-primary);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Buttons */
.btn-outline {
  display: inline-block;
  border: 2px solid var(--accent-primary);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outline:hover, .btn-outline:focus-visible {
  background-color: var(--accent-primary);
  color: #0d2a33;
  text-decoration: none;
}

.btn-solid {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #0d2a33;
  border: 2px solid var(--accent-primary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
}

.btn-solid:hover, .btn-solid:focus-visible {
  background: transparent;
  color: var(--accent-primary);
  text-decoration: none;
}

/* Flat Design Illustrated Cards & Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius-card) - 6px);
  overflow: hidden;
  margin-bottom: 1.2rem;
  background-color: #091e24;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  background: var(--accent-soft);
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.card p {
  font-size: 0.96rem;
  flex: 1;
}

/* Horizontal Split Feature Card */
.split-card {
  background-color: var(--bg-surface-elevated);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.split-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-card) - 6px);
  overflow: hidden;
}

.split-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Flat City Strip */
.city-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.city-pill {
  background-color: #0e2f38;
  border-radius: var(--radius-card);
  padding: 1.2rem;
  border-left: 4px solid var(--accent-primary);
}

.city-pill h4 {
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}

.city-pill p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Table Design */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

th, td {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: #0a2228;
  font-family: var(--font-serif);
  font-weight: normal;
  color: var(--accent-primary);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

tr:last-child td {
  border-bottom: none;
}

td {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* FAQ Accordion / Blocks */
.faq-block {
  background-color: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 1.6rem 2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.faq-block h3 {
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

.faq-block p:last-child {
  margin-bottom: 0;
}

/* Source Notes */
.source-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: #7b9e9e;
}

.source-note strong {
  color: var(--text-muted);
}

/* Drafting Tool Form */
.draft-tool {
  background-color: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  margin-top: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #0a2027;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-radius: 4px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-primary);
  outline: none;
}

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

.tool-preview-box {
  background: #09191e;
  border: 1px dashed var(--border-subtle);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  min-height: 80px;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: #06151a;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-col h5 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #132f38;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: #7b9e9e;
  font-size: 0.82rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .split-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .band {
    padding: 2rem 1rem;
  }
  .hero-band {
    padding: 1.8rem 1rem 1rem;
  }
  .card {
    padding: 1.2rem;
  }
  .faq-block {
    padding: 1.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}}
