/* STRICT NO-BLUE CONSTRAINT APPLIED */
:root {
  /* Dynamic Palette (Warm Ochre, Terracotta & Sand) */
  --bg-canvas: #ffffff;
  --bg-surface: #f1f5f9;
  --text-primary: #1c1917;
  --text-muted: #57534e;
  --accent-primary: #d97706;
  
  /* Borders and UI */
  --border: 1px solid var(--text-primary);
  --hard-shadow: 4px 4px 0 var(--text-primary);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Typography */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Charter, Cambria, Georgia, serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  margin-top: 0;
  color: var(--text-primary);
}

.label-smallcaps {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

/* Header & Navigation */
.site-header {
  position: relative; /* Moves up on scroll */
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  background-color: var(--bg-canvas);
  border-bottom: var(--border);
  z-index: 50;
}

.site-header .logo {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: block;
  text-decoration: none;
  color: var(--text-primary);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.125rem;
  transition: color 0.2s;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  position: absolute;
  right: 1.5rem;
  top: 2.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--bg-surface);
  border-bottom: var(--border);
}

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

.hero-card {
  position: relative;
  z-index: 2;
  background: var(--bg-canvas);
  border: var(--border);
  padding: 2rem;
  max-width: 450px;
  width: 100%;
}

.hero-card h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-card ul {
  list-style: square;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.hero-card ul li {
  margin-bottom: 0.5rem;
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

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

/* Vertical Flow */
.vertical-flow {
  position: relative;
  padding-left: 3rem;
  margin: 4rem 0;
}

.vertical-flow::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--text-primary);
}

.flow-section {
  position: relative;
  margin-bottom: 4rem;
}

.flow-badge {
  position: absolute;
  left: -3rem;
  top: -0.25rem;
  width: 2rem;
  height: 2rem;
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: var(--border);
  z-index: 2;
}

/* Cards & Grid Tiles */
.card {
  background-color: var(--bg-surface);
  border: var(--border);
  padding: 1.5rem;
  border-radius: 0; /* Square corners */
}

.grid-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  border: var(--border);
  padding: 0.75rem 2rem;
  text-decoration: none;
  box-shadow: var(--hard-shadow);
  transition: all 0.2s var(--ease-kinetic);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  margin-top: 1rem;
}

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

/* Imagery */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0; /* Square corners */
  border: var(--border);
  object-fit: cover;
}

.img-avatar {
  border-radius: 50%; /* Round badges/avatars */
  aspect-ratio: 1/1;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: var(--border);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  background: var(--bg-surface);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  background-color: var(--bg-surface);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: var(--border);
  background-color: var(--bg-surface);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.footer-links a {
  color: var(--text-primary);
  text-decoration: none;
}

/* Media Queries */
@media (max-width: 768px) {
  .site-header {
    padding: 1.5rem 1rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-canvas);
    border-bottom: var(--border);
    padding: 1.5rem 0;
    gap: 1rem;
  }

  .main-nav.active {
    display: flex;
  }

  .container {
    padding: 2rem 1rem;
  }

  .vertical-flow {
    padding-left: 2.5rem;
  }
  
  .flow-badge {
    left: -2.5rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.8rem;
  }
}

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