:root {
  --bg-canvas: #f3e9d8;
  --bg-surface: #fffaf1;
  --bg-surface-hover: #f7efe0;
  --text-primary: #262626;
  --text-muted: #5a554c;
  --accent-primary: #53613b;
  --accent-secondary: #758459;
  --border-subtle: rgba(83, 97, 59, 0.22);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(38, 38, 38, 0.08);
  --glow-accent: 0 0 24px -4px rgba(83, 97, 59, 0.25);
  --radius-main: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: Charter, Cambria, Georgia, serif;
  font-size: 18px;
  line-height: 1.68;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

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

h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

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

.section-label {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Header & Navigation */
.site-header {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent-primary);
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--accent-primary);
}

.nav-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-main);
  color: var(--text-primary);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.site-nav {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.25rem;
}

.nav-list a {
  color: var(--text-primary);
  font-size: 0.98rem;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-list a::after,
.grow-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28%;
  height: 1.5px;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after,
.grow-link:hover::after {
  width: 100%;
}

.grow-link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.15rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #fffaf1;
  padding: 0.8rem 1.65rem;
  border-radius: var(--radius-main);
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic), background-color 0.25s ease;
}

.btn-primary:hover {
  background-color: #424e2e;
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
  color: #fffaf1;
}

/* Layout & Reading Widths */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.reading-col {
  max-width: 68ch;
  margin: 0 auto;
  padding: 3.5rem 0;
}

.wide-breakout {
  max-width: 1080px;
  margin: 2.5rem auto;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.img-frame {
  margin: 0;
}

.img-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-main);
  object-fit: cover;
  box-shadow: var(--shadow-elevation);
}

.img-caption {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
  font-style: italic;
}

/* Soft Moss Radial Gradients */
.moss-aura {
  background: radial-gradient(circle at 50% 50%, rgba(83, 97, 59, 0.14) 0%, rgba(243, 233, 216, 0) 72%);
  border-radius: var(--radius-main);
  padding: 2rem 1rem;
}

/* Pull Quotes */
.pull-quote {
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-left: 3px solid var(--accent-primary);
  font-size: 1.32rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--text-primary);
}

.pull-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-style: normal;
  font-variant: small-caps;
  color: var(--text-muted);
}

/* Icon-led Rows (No Cards) */
.topic-rows {
  border-top: 1px solid var(--border-subtle);
  margin: 2rem 0;
}

.topic-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.row-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 0.95rem;
  align-self: start;
  margin-top: 0.2rem;
}

.row-body h3 {
  margin-bottom: 0.35rem;
  font-size: 1.22rem;
}

.row-body p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Expandable Planning Notes */
.planning-note {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

.planning-note summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.planning-note summary::after {
  content: "+";
  color: var(--accent-primary);
  font-size: 1.3rem;
}

.planning-note[open] summary::after {
  content: "−";
}

.planning-note .note-body {
  padding-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  margin: 2rem 0;
  background-color: var(--bg-surface);
  border-radius: var(--radius-main);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th, td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
}

tr:last-child td {
  border-bottom: none;
}

/* Utility Surface (Form / Note Tool) */
.utility-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-main);
  padding: 2rem;
  margin: 2rem 0;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.25rem;
}

.text-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.98rem;
  cursor: pointer;
}

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

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

/* Footer */
.site-footer {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-block;
  }
  .site-nav {
    display: none;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-main);
    padding: 1.25rem;
    margin-top: 0.85rem;
  }
  .site-nav.nav-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    gap: 0.95rem;
  }
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }
  .topic-row {
    grid-template-columns: 36px 1fr;
  }
  .topic-row .row-action {
    grid-column: 2;
    margin-top: 0.35rem;
  }
}

@media (max-width: 480px) {
  html, body {
    font-size: 16.5px;
  }
  .reading-col {
    padding: 2.25rem 0;
  }
  .utility-panel {
    padding: 1.35rem;
  }
}

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