:root {
  --canvas: #13261d;
  --surface: #1a3327;
  --surface-hover: #224233;
  --text-main: #efe6d2;
  --text-muted: #c6bca8;
  --accent: #b8923a;
  
  --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: Georgia, "Times New Roman", serif;
  
  --radius: 0px;
  --border-width: 1px;
  
  --space-sm: 8px;
  --space-md: 24px;
  --space-lg: 64px;
  --space-xl: 120px;
}

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

html {
  lang: en;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--canvas);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.15;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus-visible {
  color: var(--accent);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

p {
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  background-color: var(--surface);
  border-radius: var(--radius);
}

/* Site Header */
.site-header {
  border-bottom: var(--border-width) solid var(--accent);
  background-color: var(--canvas);
  padding: 1rem 2rem;
  position: relative;
}

.desktop-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-left, .nav-right {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

.nav-left a, .nav-right a {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-logo {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monogram {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  border: var(--border-width) solid var(--accent);
  padding: 0.25rem 0.75rem;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-panel {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: var(--border-width) solid var(--accent);
  padding: 1rem 2rem;
}

.mobile-nav-panel.active {
  display: flex;
}

.mobile-nav-panel a {
  padding: 1rem 0;
  border-bottom: var(--border-width) solid var(--accent);
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-nav-panel a:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .nav-left, .nav-right { display: none; }
  .mobile-menu-btn { display: block; position: absolute; right: 2rem; top: 1.5rem; }
  .desktop-nav { justify-content: flex-start; }
  .brand-logo { padding: 0; }
}

/* Minimal Hero */
.hero-band {
  text-align: center;
  padding: var(--space-md) 1rem;
  border-bottom: var(--border-width) solid var(--accent);
  background: var(--canvas);
}

/* Content Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Gradients */
.brass-gradient {
  position: relative;
}

.brass-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(184, 146, 58, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.brass-gradient > * {
  position: relative;
  z-index: 1;
}

/* Layout Engine: Alternating Sections */
.alt-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: var(--space-xl) 0;
  border-bottom: var(--border-width) solid var(--accent);
  align-items: center;
}

.alt-section.reverse {
  direction: rtl;
}

.alt-section.reverse > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .alt-section, .alt-section.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: var(--space-lg) 0;
  }
}

/* Cards (Flat, 0 radius, 0 shadow, 1px border) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: var(--space-lg) 0;
}

.flat-card {
  border: var(--border-width) solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.flat-card img {
  width: 100%;
  aspect-ratio: 16/9;
  border-bottom: var(--border-width) solid var(--accent);
}

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

.flat-card-content h3 {
  margin-bottom: 1rem;
}

/* Timeline (Bastions) */
.timeline {
  margin: var(--space-lg) 0;
  border-left: var(--border-width) solid var(--accent);
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  background: var(--canvas);
  border: var(--border-width) solid var(--accent);
}

.timeline-date {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Tabbed Panels (Royal Courtyards) */
.tabs-container {
  border: var(--border-width) solid var(--accent);
  margin: var(--space-lg) 0;
}

.tab-buttons {
  display: flex;
  border-bottom: var(--border-width) solid var(--accent);
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  background: var(--surface);
  border: none;
  border-right: var(--border-width) solid var(--accent);
  color: var(--text-muted);
  padding: 1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  min-width: 150px;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn.active {
  background: var(--canvas);
  color: var(--accent);
}

.tab-panel {
  display: none;
  padding: 2rem;
  background: var(--canvas);
}

.tab-panel.active {
  display: block;
}

/* Buttons */
.btn-outline {
  display: inline-block;
  border: var(--border-width) solid var(--accent);
  background: transparent;
  color: var(--text-main);
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--canvas);
}

/* Drafting Tool */
.drafting-tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--text-main); /* Parchment tone */
  color: var(--canvas);
  border: var(--border-width) solid var(--accent);
  margin: var(--space-lg) 0;
}

@media (max-width: 768px) {
  .drafting-tool { grid-template-columns: 1fr; }
}

.draft-panel {
  padding: 3rem;
}

.draft-panel:first-child {
  border-right: var(--border-width) solid var(--accent);
}

@media (max-width: 768px) {
  .draft-panel:first-child { border-right: none; border-bottom: var(--border-width) solid var(--accent); }
}

.drafting-tool h2, .drafting-tool label {
  color: var(--canvas);
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: transparent;
  border: var(--border-width) solid var(--canvas);
  color: var(--canvas);
  padding: 1rem;
  font-family: var(--font-body);
  border-radius: var(--radius);
  font-size: 1rem;
}

.form-control:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.draft-output-area {
  width: 100%;
  height: 250px;
  background: var(--canvas);
  color: var(--text-main);
  border: var(--border-width) solid var(--canvas);
  padding: 1rem;
  font-family: monospace;
  margin-bottom: 1rem;
  white-space: pre-wrap;
  overflow-y: auto;
}

.btn-dark {
  border-color: var(--canvas);
  color: var(--canvas);
}
.btn-dark:hover {
  background: var(--canvas);
  color: var(--text-main);
}

/* Footer */
.site-footer {
  border-top: var(--border-width) solid var(--accent);
  background: var(--surface);
  padding: 4rem 2rem;
  margin-top: var(--space-xl);
}

.footer-split {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.footer-left {
  color: var(--accent);
}

.footer-left p {
  color: var(--text-main);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.footer-right a {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-meta {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1rem;
  border-top: var(--border-width) solid var(--canvas);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-split { grid-template-columns: 1fr; gap: 2rem; }
  .footer-right { align-items: flex-start; }
}

/* Typography Utility */
.long-form-content {
  max-width: 68ch;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}

.long-form-content h2 {
  margin: 3rem 0 1rem;
}

.long-form-content h3 {
  margin: 2rem 0 1rem;
}

.long-form-content ul, .long-form-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.long-form-content li {
  margin-bottom: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

th, td {
  border: var(--border-width) solid var(--accent);
  padding: 1rem;
  text-align: left;
}

th {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  background: var(--surface);
}

.table-wrapper {
  overflow-x: auto;
}

/* Helpers */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 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}}
