:root {
  --bg-canvas: #1e1612;
  --bg-surface: #2b211b;
  --bg-surface-hover: #352922;
  --text-primary: #f5ecdf;
  --text-muted: #d4c5af;
  --accent-primary: #f59e0b;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.8);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: Charter, Cambria, Georgia, serif;
}

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

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

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  filter: contrast(1.2) brightness(0.7);
  display: block;
}

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

a:hover {
  color: var(--text-primary);
}

.label, .small-caps {
  font-variant: small-caps;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
}

/* Header */
.site-header {
  background-color: var(--bg-surface);
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 40px;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.brand a {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
  font-variant: small-caps;
}

.desktop-nav {
  display: flex;
  gap: 20px;
}

.desktop-nav a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-variant: small-caps;
}

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

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

.mobile-menu {
  display: none;
  background-color: var(--bg-surface);
  position: absolute;
  top: 80px;
  left: 20px;
  right: 20px;
  border-radius: 4px;
  padding: 20px;
  box-shadow: var(--shadow-hover);
  z-index: 99;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: normal;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  border-bottom: 1px solid var(--bg-surface-hover);
  padding-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* Layout wrappers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.reading-width {
  max-width: 72ch;
  margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 769px) {
  .bento-span-2 {
    grid-column: span 2;
  }
  .bento-span-row-2 {
    grid-row: span 2;
  }
}

.bento-card {
  background-color: var(--bg-surface);
  border-radius: 4px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
}

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

.bento-card img {
  width: 100%;
  height: 200px;
  margin-bottom: 15px;
}

.bento-card.hero-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 400px;
}

.bento-card.hero-card img {
  height: 100%;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--bg-surface);
  padding: 20px;
  border-radius: 4px;
  z-index: 2;
  max-width: 350px;
  box-shadow: var(--shadow-hover);
}

.fact-list {
  list-style: none;
  margin: 10px 0 0 0;
}

.fact-list li {
  font-size: 0.9rem;
  border-bottom: 1px solid var(--bg-canvas);
  padding: 8px 0;
  color: var(--text-muted);
}

.fact-list li:last-child {
  border-bottom: none;
}

/* Buttons & Inputs */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-canvas) !important;
  font-variant: small-caps;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--text-primary);
  transition: all 0.2s ease-in-out;
  text-align: center;
  margin-top: auto;
}

.btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--text-primary);
}

input, textarea, select {
  width: 100%;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--bg-surface-hover);
  padding: 12px;
  border-radius: 4px;
  font-family: var(--font-serif);
  margin-bottom: 15px;
}

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

/* Data Tiles */
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--bg-surface-hover);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.stat-row:last-child {
  border-bottom: none;
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  margin: 40px auto 20px;
  max-width: 1200px;
  border-radius: 40px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
}

.footer-links a {
  font-variant: small-caps;
  font-size: 0.9rem;
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--text-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 12px;
  border: 1px solid var(--bg-surface-hover);
  text-align: left;
}

th {
  background-color: var(--bg-surface);
  color: var(--accent-primary);
  font-variant: small-caps;
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .site-header {
    border-radius: 4px;
    margin: 10px;
  }
  .site-footer {
    border-radius: 4px;
    margin: 20px 10px;
  }
}

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