:root {
  --bg-canvas: #13261d;
  --bg-surface: #20382a;
  --bg-surface-alt: #193023;
  --text-primary: #efe6d2;
  --text-muted: #c2b69d;
  --accent-brass: #b8923a;
  --accent-brass-hover: #cfa84a;
  --accent-parchment: #f4ecd8;
  --border-subtle: #2d4a39;
  --border-strong: #40634f;
  --shadow-offset: 4px 4px 0px #09130e;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, Consolas, "SF Mono", Monaco, monospace;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 1rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: relative;
  margin: 1.25rem auto 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-mark {
  width: 14px;
  height: 14px;
  background: var(--accent-brass);
  display: inline-block;
  box-shadow: 2px 2px 0px #09130e;
}
.brand-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  padding: 0.35rem 0.6rem;
  transition: color 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-brass);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 0.5rem;
  line-height: 1;
}

/* Mobile Nav Menu */
.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 1.25rem;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.mobile-nav-panel.open {
  display: block;
}
.mobile-nav-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-nav-panel a {
  display: block;
  font-family: var(--font-mono);
  text-decoration: none;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* Typography elements */
h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.25;
}
h1 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  margin-bottom: 1rem;
  font-weight: 700;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-brass);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--accent-parchment);
  max-width: 68ch;
  margin-bottom: 1.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.4rem;
  background-color: var(--accent-brass);
  color: #09130e;
  text-decoration: none;
  border: 1px solid #785a1a;
  box-shadow: var(--shadow-offset);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
  border-radius: 0;
}
.btn:hover {
  background-color: var(--accent-brass-hover);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #09130e;
  color: #09130e;
}
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px #09130e;
}
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-surface-alt);
  color: var(--accent-brass);
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-content {
  max-width: 68ch;
}
.hero-photos-trio {
  position: relative;
  min-height: 380px;
}
.hero-photo {
  position: absolute;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-offset);
  object-fit: cover;
}
.hero-photo-1 {
  width: 65%;
  height: 240px;
  top: 0;
  left: 0;
  z-index: 1;
}
.hero-photo-2 {
  width: 60%;
  height: 220px;
  top: 90px;
  right: 0;
  z-index: 2;
}
.hero-photo-3 {
  width: 55%;
  height: 180px;
  bottom: 0;
  left: 15%;
  z-index: 3;
}

/* Sections */
.content-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.5rem;
}
.split-layout.reverse {
  direction: rtl;
}
.split-layout.reverse > * {
  direction: ltr;
}

.text-prose {
  max-width: 68ch;
}
.text-prose p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Cards & Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.field-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}
.field-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.field-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.field-badge {
  position: absolute;
  bottom: -10px;
  left: 12px;
  background: var(--accent-brass);
  color: #09130e;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid #785a1a;
  box-shadow: 2px 2px 0 #000;
  z-index: 2;
}
.field-card-body {
  padding: 1.4rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.field-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
}
.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--bg-surface);
}
.field-table th,
.field-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.field-table th {
  background: var(--bg-surface-alt);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-brass);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.field-table tr:last-child td {
  border-bottom: none;
}

/* Callouts & Formulas */
.callout-box {
  background: var(--bg-surface-alt);
  border-left: 4px solid var(--accent-brass);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout-box h4 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-parchment);
  margin-bottom: 0.35rem;
}
.formula-panel {
  background: #0d1a13;
  border: 1px solid var(--border-strong);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-parchment);
  margin: 1.25rem 0;
}

/* Form Styles */
.field-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 640px;
  background: var(--bg-surface);
  padding: 1.75rem;
  border: 1px solid var(--border-subtle);
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field-group label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--accent-brass);
}
.field-group input,
.field-group textarea,
.field-group select {
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 0;
}
.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  outline: 2px solid var(--accent-brass);
  border-color: var(--accent-brass);
}

/* FAQ Accordion / List */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
}
.faq-item summary {
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  color: var(--accent-parchment);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  color: var(--accent-brass);
  font-size: 1.4rem;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item p {
  margin-top: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--bg-surface-alt);
  border-top: 2px solid var(--border-subtle);
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.6rem;
  text-decoration: none;
}
.footer-text {
  color: var(--text-muted);
  max-width: 44ch;
  line-height: 1.5;
}
.footer-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-brass);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent-brass);
}
.footer-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Responsiveness */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-photos-trio {
    min-height: 300px;
    margin-top: 1rem;
  }
  .split-layout,
  .split-layout.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    border-radius: 0;
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
  }
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .hero-photos-trio {
    min-height: 240px;
  }
  .hero-photo-1 { width: 75%; height: 180px; }
  .hero-photo-2 { width: 70%; height: 160px; top: 60px; }
  .hero-photo-3 { width: 65%; height: 130px; }
}

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