@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap");

:root {
  --indigo-deep: #0f1221;
  --indigo: #14182e;
  --indigo-mid: #1a1f3c;
  --indigo-light: #252b4a;
  --sand: #c9b99a;
  --sand-light: #ddd3c1;
  --sand-muted: #a89b85;
  --charcoal: #1a1a1a;
  --charcoal-light: #2d2d2d;
  --copper: #b87333;
  --copper-bright: #d48a45;
  --copper-muted: #8a5a2b;
  --cream: #f0ebe3;
  --cream-dark: #e5ddd0;
  --white: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #6b6b6b;
  --border-subtle: rgba(201, 185, 154, 0.12);
  --border-strong: rgba(201, 185, 154, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--indigo-deep);
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.site-nav {
  background: var(--indigo-deep);
  border-bottom: 1px solid var(--border-strong);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-nav .navbar-brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--cream);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--copper);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark::before {
  content: "";
  width: 2px;
  height: 14px;
  background: var(--copper);
  position: absolute;
}

.brand-mark::after {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--copper);
  position: absolute;
}

.nav-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--sand-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sand-light) !important;
}

.navbar-toggler {
  border-color: var(--border-strong);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* =========================================================
   HERO — Editorial Dossier
   ========================================================= */

.hero-editorial {
  background: var(--indigo-deep);
  color: var(--cream);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-editorial::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--indigo-mid) 0%,
    var(--indigo-deep) 100%
  );
  opacity: 0.6;
}

.hero-editorial .container {
  position: relative;
  z-index: 1;
}

.issue-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--copper);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.issue-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--copper);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cream);
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--sand-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* Side briefing panel */
.briefing-panel {
  border-left: 2px solid var(--copper);
  padding-left: 1.5rem;
  margin-top: 2rem;
}

.briefing-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

.briefing-item {
  font-size: 0.85rem;
  color: var(--sand);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.briefing-item strong {
  color: var(--cream);
  font-weight: 500;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section-pad {
  padding: 5rem 0;
}

.section-pad-sm {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--copper);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-number::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--copper);
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--indigo-deep);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* =========================================================
   FIELD NOTES BAND
   ========================================================= */

.field-notes {
  background: var(--indigo);
  color: var(--cream);
  padding: 2.5rem 0;
  border-top: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
}

.field-notes .fn-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--copper);
  margin-bottom: 1rem;
}

.field-notes .fn-text {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--sand-light);
  line-height: 1.5;
  max-width: 900px;
}

/* =========================================================
   NUMBERED ROUTE SEQUENCE
   ========================================================= */

.route-sequence {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-strong);
}

.seq-item {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-strong);
  transition: background 0.2s;
}

.seq-item:hover {
  background: rgba(201, 185, 154, 0.04);
}

.seq-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--copper);
  text-align: right;
  line-height: 1;
}

.seq-body h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--indigo-deep);
  margin-bottom: 0.25rem;
}

.seq-body p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0;
}

.seq-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sand-muted);
  text-align: right;
}

/* =========================================================
   EDITORIAL BLOCKS
   ========================================================= */

.ed-block {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.ed-main h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--indigo-deep);
  margin-bottom: 1rem;
}

.ed-main p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.ed-aside {
  border-left: 1px solid var(--border-strong);
  padding-left: 1.5rem;
}

.ed-aside .aside-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--copper);
  margin-bottom: 1rem;
}

.ed-aside p {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.ed-aside .stat {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--indigo-deep);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.ed-aside .stat-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

/* =========================================================
   TACTICAL TABLE / LEDGER
   ========================================================= */

.tactical-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.tactical-table thead th {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand-muted);
  background: var(--indigo-deep);
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 2px solid var(--copper);
}

.tactical-table tbody td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-strong);
  color: var(--ink);
  vertical-align: top;
}

.tactical-table tbody tr:hover td {
  background: rgba(201, 185, 154, 0.05);
}

.tactical-table .tt-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--copper);
  font-weight: 500;
}

.tactical-table .tt-title {
  font-weight: 600;
  color: var(--indigo-deep);
}

/* Checkpoint log */
.checkpoint-log {
  border-left: 2px solid var(--border-strong);
  padding-left: 0;
}

.cp-entry {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-strong);
  position: relative;
}

.cp-entry::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.6rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--copper);
}

.cp-entry.complete::before {
  background: var(--copper);
}

.cp-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--copper);
  min-width: 40px;
  font-weight: 500;
}

.cp-body h5 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--indigo-deep);
  margin-bottom: 0.2rem;
}

.cp-body p {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0;
}

.cp-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand-muted);
  margin-left: auto;
  white-space: nowrap;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--indigo-deep);
  color: var(--sand-muted);
  padding: 4rem 0 2rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-strong);
}

.site-footer a {
  color: var(--sand-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--sand-light);
}

.footer-brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 460px;
  margin: 0 auto;
  background: var(--indigo);
  border: 1px solid var(--border-strong);
  padding: 1.25rem 1.5rem;
  z-index: 2000;
  display: none;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--sand-muted);
  flex: 1;
}

.btn-cookie {
  background: var(--copper);
  color: var(--cream);
  border: none;
  padding: 0.5rem 1.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-cookie:hover {
  background: var(--copper-bright);
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-panel {
  background: var(--white);
  border: 1px solid var(--border-strong);
  padding: 2.5rem;
}

.form-label-custom {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.form-control-custom {
  border: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
  background: var(--white);
}

.btn-primary-custom {
  background: var(--indigo-deep);
  color: var(--cream);
  border: none;
  border-radius: 0;
  padding: 0.9rem 2.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary-custom:hover {
  background: var(--copper);
}

.contact-info-item {
  margin-bottom: 1.75rem;
}

.contact-info-item h5 {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: 0.4rem;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
}

.success-notice {
  display: none;
  background: var(--indigo-deep);
  border-left: 3px solid var(--copper);
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
}

.success-notice.show {
  display: block;
}

.success-notice h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.success-notice p {
  font-size: 0.85rem;
  color: var(--sand-muted);
  margin: 0;
}

/* =========================================================
   LEGAL
   ========================================================= */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-strong);
  padding: 3rem;
}

.legal-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--indigo-deep);
}

.legal-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--indigo-mid);
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.8;
}

/* =========================================================
   UTILITIES & IMAGES
   ========================================================= */

.img-editorial {
  width: 100%;
  filter: contrast(0.95) saturate(0.85);
}

.img-caption {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

.divider-copper {
  height: 2px;
  background: var(--copper);
  width: 60px;
  margin: 2rem 0;
}

.bg-indigo {
  background: var(--indigo-deep);
}
.bg-sand {
  background: var(--sand);
}

.text-cream {
  color: var(--cream);
}
.text-sand {
  color: var(--sand);
}
.text-copper {
  color: var(--copper);
}

/* Responsive */
@media (max-width: 767.98px) {
  .hero-editorial {
    padding: 3rem 0 4rem;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .ed-block {
    grid-template-columns: 1fr;
  }
  .ed-aside {
    border-left: none;
    border-top: 1px solid var(--border-strong);
    padding-left: 0;
    padding-top: 1.5rem;
  }
  .seq-item {
    grid-template-columns: 50px 1fr;
  }
  .seq-tag {
    display: none;
  }
  .briefing-panel {
    margin-top: 2.5rem;
  }
}
