:root {
  /* Palette: Forest Brass Lodge */
  --bg-canvas: #13261d;
  --bg-surface: #1c3529;
  --text-primary: #efe6d2;
  --text-muted: rgba(239, 230, 210, 0.7);
  --accent-primary: #b8923a;
  --accent-secondary: #9a7629;
  
  /* Typography */
  --font-serif: Charter, Cambria, Georgia, serif;
  
  /* UI Micro-Interactions & Layout */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-base: 0 4px 12px rgba(10, 20, 16, 0.5);
  --shadow-hover: 0 12px 32px rgba(10, 20, 16, 0.8);
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-weight: normal;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }

.kicker, .metadata {
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85em;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1.25rem; }

/* Structural Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.long-read {
  max-width: 68ch;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: static;
  padding-top: 1.5rem;
  z-index: 50;
}

.header-inner {
  background-color: var(--bg-surface);
  border-radius: 999px;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-base);
}

.brand {
  font-size: 1.25rem;
  color: var(--accent-primary);
  font-variant: small-caps;
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.desktop-nav a {
  font-variant: small-caps;
  transition: color 0.3s var(--ease-kinetic);
}

.desktop-nav a:hover {
  color: var(--accent-primary);
}

.mobile-toggle {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  background-color: var(--bg-surface);
  padding: 2rem;
  margin-top: 1rem;
  border-radius: 0;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 1rem;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-variant: small-caps;
}

/* Background Patterns & Heroes */
.dot-pattern {
  background-color: var(--bg-canvas);
  background-image: radial-gradient(var(--accent-primary) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(19, 38, 29, 0.3), var(--bg-canvas));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
}

.hero-content h1 {
  color: var(--accent-primary);
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Sections & Grids */
.section {
  padding: 4rem 0;
}

.lead-block {
  background-color: var(--bg-surface);
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-base);
}

.lead-block h2 {
  color: var(--accent-primary);
}

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.block-card {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-base);
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
}

.block-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.block-card img {
  aspect-ratio: 4/3;
  width: 100%;
}

.block-card-content {
  padding: 2rem;
  flex-grow: 1;
}

/* Entities Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}

.entity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.entity-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.entity-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.entity-name {
  font-variant: small-caps;
  font-size: 0.9rem;
}

/* Buttons and Links */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  font-variant: small-caps;
  transition: background-color 0.3s var(--ease-kinetic);
  border: none;
  cursor: pointer;
  margin-top: 1rem;
}

.btn-primary:hover {
  background-color: var(--text-primary);
}

.btn-text {
  display: inline-block;
  text-decoration: underline;
  color: var(--accent-primary);
  transition: transform 0.3s var(--ease-kinetic);
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.btn-text:hover {
  transform: scale(1.05);
}

/* FAQ Accordion */
.accordion-item {
  border-bottom: 1px solid rgba(239, 230, 210, 0.2);
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.25rem;
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.accordion-header:hover {
  color: var(--accent-primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-kinetic);
}

.accordion-content-inner {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

.parchment-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--text-primary);
  color: var(--bg-canvas);
  min-width: 600px;
}

.parchment-table th, .parchment-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--bg-canvas);
  text-align: left;
}

.parchment-table th {
  font-variant: small-caps;
  background-color: #dfd4bf;
}

/* Contact Tool Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-variant: small-caps;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--bg-canvas);
  border: 1px solid rgba(239, 230, 210, 0.2);
  color: var(--text-primary);
  font-family: inherit;
}

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

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

.parchment-card {
  background-color: var(--text-primary);
  color: var(--bg-canvas);
  padding: 2rem;
  box-shadow: var(--shadow-base);
}

.parchment-card h3 {
  color: var(--bg-canvas);
  border-bottom: 1px solid var(--bg-canvas);
  padding-bottom: 0.5rem;
}

.note-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 2px solid rgba(184, 146, 58, 0.2);
}

.footer-lead {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-columns h4 {
  font-variant: small-caps;
  color: var(--accent-primary);
}

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

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

.footer-legal {
  text-align: center;
  font-variant: small-caps;
  font-size: 0.85rem;
  border-top: 1px solid rgba(239, 230, 210, 0.1);
  padding-top: 2rem;
  color: var(--text-muted);
}

.footer-legal a {
  margin: 0 0.5rem;
  color: var(--text-primary);
}

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

.footer-address {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: none;
  font-variant: normal;
}

/* Utilities */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-kinetic);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Breakpoints */
@media (min-width: 768px) {
  .site-header .container {
    padding: 0 2rem;
  }
  .desktop-nav {
    display: block;
  }
  .mobile-toggle {
    display: 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}}
