:root {
  --bg:          #f4efe4;
  --bg-warm:     #ede7d9;
  --text:        #251e12;
  --text-mid:    #5c4f38;
  --text-light:  #8a7a60;
  --green:       #3d5e35;
  --green-pale:  #d4e4ce;
  --bark:        #7a6245;
  --rule:        #c8bda8;
  --max-w:       740px;
}

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

html {
  font-size: 17px;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.78;
  background: var(--bg);
}

/* ── Nav ── */

nav {
  position: sticky;
  top: 0;
  height: 52px;
  background: var(--green);
  border-bottom: 1px solid var(--green);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 300;
  font-size: 1.25rem;
  color: #e8f0e4;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.wordmark em {
  color: #e8f0e4;
  font-style: normal;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-pale);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

/* ── Main content ── */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Sections ── */

section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--rule);
}

section:last-child {
  border-bottom: none;
}

/* ── Eyebrow labels ── */

.eyebrow {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark);
  display: block;
  margin-bottom: 0.75rem;
}

/* ── Headings ── */

h1 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 300;
  font-size: 2.8rem;
  line-height: 1.22;
  color: var(--text);
  margin-bottom: 1.25rem;
}

h2 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 300;
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1rem;
}

h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

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

p:last-child {
  margin-bottom: 0;
}

/* ── Hero ── */

.hero {
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--rule);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 300;
  font-size: 2rem;
  color: var(--green);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ── Page previews (homepage) ── */

.page-preview {
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
}

.page-preview:last-child {
  border-bottom: none;
}

.page-preview p {
  color: var(--text-mid);
  margin-bottom: 0.9rem;
}

/* ── Links ── */

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.link-secondary {
  color: var(--bark);
  font-style: italic;
  border-bottom: 1px solid var(--bark);
  text-decoration: none;
}

.link-secondary:hover {
  color: var(--green);
  border-bottom-color: var(--green);
  text-decoration: none;
}

/* ── Buttons ── */

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #e8f0e4;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  margin-top: 0.75rem;
}

.btn-primary:hover {
  background: #2f4a28;
  text-decoration: none;
  color: #e8f0e4;
}

/* ── Tables ── */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th {
  text-align: left;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--green);
  color: var(--text);
}

td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  color: var(--text-mid);
  vertical-align: top;
}

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

/* ── Band sections (alternate bg) ── */

.band {
  background: var(--bg-warm);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

/* ── Footer ── */

footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--rule);
  padding: 3rem 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-left .wordmark {
  display: block;
  margin-bottom: 0.4rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

.footer-right {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: right;
  line-height: 1.7;
}

.footer-right a {
  color: var(--text-light);
}

.footer-right a:hover {
  color: var(--green);
}

/* ── Contact form ── */

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

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--bg-warm);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: var(--text);
  padding: 0.55rem 0.75rem;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--bark);
}

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

/* ── Canvas (About page) ── */

.canvas-wrap {
  margin: 2rem 0 0.5rem;
  overflow-x: auto;
}

#myCanvas {
  border: 1px solid var(--rule);
  display: block;
}

.canvas-caption {
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .footer-inner { flex-direction: column; }
  .footer-right { text-align: left; }
  .nav-links { gap: 1rem; }
}
