:root {
  --bg-base: #0d2a33;
  --bg-surface: #163d47;
  --bg-band: #081d24;
  --text-primary: #e0f2f1;
  --text-muted: #8ec5c5;
  --accent-coral: #ff6f59;
  --line-aqua: #245b69;
  --line-accent: #4fa3a3;
  --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-primary);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-coral);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover, a:focus-visible {
  color: #ffa596;
}

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

.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--accent-coral);
  color: var(--bg-base);
  padding: 0.5rem 1rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: relative;
  background: transparent;
  padding: 12px 1.5rem;
  border-bottom: 1px solid var(--line-aqua);
  width: 100%;
}

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

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--accent-coral);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.primary-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--accent-coral);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-aqua);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent-coral);
}

/* Common Layout */
main {
  flex: 1 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 1.5rem;
}

.prose-container {
  max-width: 72ch;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 1.5rem;
}

.section-band {
  background-color: var(--bg-band);
  border-top: 1px solid var(--line-aqua);
  border-bottom: 1px solid var(--line-aqua);
}

.editorial-step {
  position: relative;
  padding-left: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-left: 2px solid var(--line-accent);
}

.step-num {
  font-variant: all-small-caps;
  letter-spacing: 0.12em;
  color: var(--accent-coral);
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.muted-lead {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

.small-caps-tag {
  font-variant: all-small-caps;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.8rem;
  background-color: var(--accent-coral);
  color: var(--bg-base);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-pill:hover, .btn-pill:focus-visible {
  background-color: #ffa596;
  color: #05161b;
  transform: translateY(-2px);
}

/* Editorial Hero */
.editorial-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-visual {
  position: relative;
}

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

.floating-fact-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--line-accent);
  padding: 1.25rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.45);
  max-width: 320px;
  z-index: 2;
}

.floating-fact-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
}

.floating-fact-card dt {
  color: var(--text-muted);
  font-variant: small-caps;
}

.floating-fact-card dd {
  font-weight: 700;
  color: var(--text-primary);
}

/* Editorial Tiles Grid */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.editorial-tile {
  background: var(--bg-surface);
  padding: 1.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  border: none;
}

.editorial-tile:hover,
.editorial-tile:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.45);
}

.tile-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

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

.editorial-tile h3 {
  margin-bottom: 0.75rem;
}

.tile-link {
  margin-top: auto;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-top: 1rem;
  display: inline-block;
}

/* Split Card */
.split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-surface);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
  align-items: center;
}

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

.split-card-content {
  padding: 2rem;
}

/* Comparison Table */
.table-scroll-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--line-aqua);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-surface);
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line-aqua);
  font-size: 0.95rem;
}

th {
  background: var(--bg-band);
  color: var(--text-muted);
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-weight: 700;
}

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

/* FAQ Disclosures */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

details.faq-item {
  background: var(--bg-surface);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border: none;
  padding: 1.25rem;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  color: var(--accent-coral);
  font-size: 1.5rem;
  font-weight: 400;
  margin-left: 1rem;
}

details.faq-item[open] summary::after {
  content: "–";
}

details.faq-item p {
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Tool & Form Styles */
.tool-box {
  background: var(--bg-surface);
  padding: 2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  margin: 2rem 0;
}

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

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

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-band);
  border: 1px solid var(--line-aqua);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 0;
}

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

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

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

.tool-output {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-band);
  border-left: 3px solid var(--accent-coral);
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Footer */
.site-footer {
  background-color: var(--bg-band);
  border-top: 1px solid var(--line-aqua);
  padding: 3rem 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
}

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

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

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

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

.footer-legal-bar {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-aqua);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .editorial-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .floating-fact-card {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }
  .split-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    left: 1.5rem;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.6);
    border: 1px solid var(--line-aqua);
    z-index: 100;
    gap: 1rem;
  }
  .primary-nav.is-open {
    display: flex;
  }
  .primary-nav a {
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line-aqua);
    font-size: 1.05rem;
  }
  .primary-nav a:last-child {
    border-bottom: none;
  }
}

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