:root {
  /* Strict No-Blue Palette: Warm Ochre, Terracotta & Sand */
  --bg-base: #ffffff;
  --bg-surface: #f7f6f2; /* Warm off-white */
  --text-primary: #1c1917; /* Warm dark grey */
  --text-muted: #57534e; /* Warm medium grey */
  --accent-primary: #d97706; /* Ochre */
  --accent-hover: #b45309;
  --border-subtle: #e7e5e4;
  --error-color: #dc2626;

  /* Typography */
  --font-heading: "Arial Narrow", Arial, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  
  /* Layout & Structural */
  --radius-sm: 4px;
  --max-width: 1200px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.2;
}
p { margin-top: 0; margin-bottom: 1.5rem; }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
figure { margin: 0 0 1.5rem 0; }
figcaption { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-base);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px; /* Pill shape */
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s var(--ease-kinetic);
}
.btn:hover { background-color: var(--accent-hover); color: var(--bg-base); transform: scale(1.02); }

/* Header & Nav */
.site-header {
  position: static; /* Scrolls out of view */
  background-color: var(--bg-base);
  padding: 1.5rem 5%;
  border-bottom: 1px solid var(--border-subtle);
}
.brand-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
}
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}
.main-nav {
  margin-top: 1.5rem;
}
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  font-weight: bold;
  color: var(--text-primary);
}
.main-nav a:hover { color: var(--accent-primary); }

@media (max-width: 768px) {
  .mobile-nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 1rem; }
}

/* Layout Engine: The Bento Grid */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 5%;
}
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.bento-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  /* Flat style: no box-shadow */
}
.bento-card img {
  object-fit: cover;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
}
.bento-card.img-16-9 img { aspect-ratio: 16 / 9; }
.bento-card.img-4-3 img { aspect-ratio: 4 / 3; }

/* Grid Spans for Desktop */
@media (min-width: 769px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .span-2-desktop { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(4, 1fr); }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .row-2 { grid-row: span 2; }
}

/* Hero Section */
.hero {
  background-color: var(--bg-surface);
  background-image: 
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 8rem 5%;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  max-width: 12ch;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.hero p {
  font-size: 1.25rem;
  max-width: 60ch;
  color: var(--text-muted);
}

/* Article & Long Form Reading */
.article-header {
  padding: 4rem 5% 2rem;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}
.article-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: var(--max-width);
  margin: 0 auto;
}
.content-wrapper {
  max-width: 72ch;
  margin: 0 auto;
  padding: 4rem 5%;
}
.content-wrapper h2 { font-size: 2rem; margin-top: 3rem; }
.content-wrapper h3 { font-size: 1.5rem; margin-top: 2rem; }
.content-wrapper ul, .content-wrapper ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.content-wrapper li { margin-bottom: 0.5rem; }
.content-wrapper blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
  font-style: italic;
}

/* Tables */
.table-wrapper { overflow-x: auto; margin-bottom: 2rem; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
th {
  font-family: var(--font-heading);
  text-transform: uppercase;
  background-color: var(--bg-surface);
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: bold;
}
input, textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  color: var(--text-primary);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.tag {
  display: inline-block;
  background-color: var(--border-subtle);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

/* Kinetic Scroll Reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-kinetic), transform 0.8s var(--ease-kinetic);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 5% 2rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-col h3 { font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent-primary); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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