:root {
  /* Heritage Guide Palette (Strictly No Blue) */
  --bg-canvas: #faf6ef;
  --bg-surface: #f0e9dd;
  --text-primary: #2b211a;
  --accent-terracotta: #c2562e;
  --accent-olive: #6b7a3a;
  
  /* Typography */
  --font-serif: Charter, Cambria, Georgia, serif;
  
  /* Transitions */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 8px 24px -4px rgba(43, 33, 26, 0.15);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

a:hover {
  color: var(--accent-olive);
}

p {
  margin-bottom: 1.5rem;
  max-width: 72ch;
}

/* Header & Navigation */
header {
  position: static;
  background-color: var(--bg-surface);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(43, 33, 26, 0.1);
}

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

.brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-primary);
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
}

nav a:hover {
  color: var(--accent-olive);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section (Text Only above fold) */
.hero {
  padding: 6rem 2rem 4rem;
  text-align: center;
  background-color: var(--bg-canvas);
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto;
}

/* Layout Blocks */
.lead-block {
  max-width: 900px;
  margin: 0 auto 4rem auto;
  padding: 3rem 2rem;
  background-color: var(--bg-surface);
  text-align: center;
  border: 1px solid rgba(43, 33, 26, 0.05);
}

.section-wrapper {
  padding: 6rem 2rem;
  position: relative;
}

.bg-diagonal {
  background-color: var(--bg-surface);
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  padding: 8rem 2rem;
  margin: 2rem 0;
}

.bg-curved {
  background-color: var(--bg-surface);
  clip-path: ellipse(150% 100% at 50% 100%);
  padding: 8rem 2rem 4rem;
}

/* Grids */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .grid-2col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cards */
.card {
  background-color: var(--bg-canvas);
  border: 1px solid rgba(43, 33, 26, 0.1);
  position: relative;
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
}

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

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background-color: var(--bg-surface);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-canvas);
  font-variant: small-caps;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.badge-terracotta { background-color: var(--accent-terracotta); }
.badge-olive { background-color: var(--accent-olive); }

.card-content {
  padding: 2.5rem 1.5rem 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
  border-radius: 0; /* Square ends */
  text-align: center;
}

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

.btn-terracotta {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
}

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

/* Tools & Forms */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

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

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--accent-olive);
  background-color: var(--bg-canvas);
  font-family: var(--font-serif);
  color: var(--text-primary);
}

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

.checklist-tool {
  background-color: var(--bg-surface);
  padding: 2rem;
  border: 1px solid var(--accent-olive);
  max-width: 600px;
  margin: 2rem auto;
  text-align: left;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--bg-surface);
  padding: 4rem 2rem 2rem;
  border-top: 4px solid var(--accent-olive);
  margin-top: 4rem;
}

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

.footer-col h4 {
  font-variant: small-caps;
  color: var(--accent-terracotta);
  margin-bottom: 1.5rem;
}

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

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

.footer-col a {
  color: var(--text-primary);
}

.footer-col a:hover {
  color: var(--accent-olive);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(43, 33, 26, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

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

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
th, td {
  padding: 1rem;
  border-bottom: 1px solid rgba(43, 33, 26, 0.2);
  text-align: left;
}
th {
  font-variant: small-caps;
  color: var(--accent-terracotta);
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    padding: 2rem;
    border-bottom: 2px solid var(--accent-olive);
    z-index: 100;
  }
  nav.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    padding: 4rem 1rem 2rem;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

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