:root {
  --green-dark: #2f3e2a;
  --green: #4a5f3a;
  --green-light: #6b8552;
  --tan: #d8c9a3;
  --tan-light: #f3ede0;
  --cream: #faf6ec;
  --brown: #6b4a30;
  --text: #2a2620;
  --text-muted: #5c5648;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(42, 38, 32, 0.12);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
}

a:visited {
  color: var(--brown);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--tan);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  height: 48px;
  width: auto;
}

.brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-dark);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--green-light);
  color: var(--green-dark);
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background-color: var(--green-dark);
}

.hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 26, 16, 0.15) 0%, rgba(20, 26, 16, 0.65) 100%);
}

.hero-overlay .container {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Simple page header, for non-hero pages */
.page-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}

.page-header h1 {
  margin: 0 0 0.5rem;
}

.page-header p {
  margin: 0;
  color: var(--tan-light);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--tan-light);
}

.section h2 {
  color: var(--green-dark);
  font-size: 1.6rem;
  margin-top: 0;
}

.lede {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 65ch;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Callout / market box */
.callout {
  background: var(--white);
  border-left: 6px solid var(--green-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.callout h3 {
  margin-top: 0;
  color: var(--green-dark);
}

/* Buttons / CTAs */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:visited {
  color: var(--white);
}

.btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green);
  padding: calc(0.75rem - 2px) calc(1.4rem - 2px);
}

.btn-outline:visited {
  color: var(--green-dark);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  margin: 0 0 0.4rem;
  color: var(--green-dark);
}

.card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Certificates */
.certificate-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.certificate-row figure {
  margin: 0;
  text-align: center;
  max-width: 220px;
}

.certificate-row img {
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
}

.certificate-row figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Prices table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.price-table caption {
  text-align: left;
  font-weight: 700;
  padding: 0.75rem 1rem 0;
  color: var(--green-dark);
}

.price-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--tan-light);
}

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

.price-table tr:nth-child(even) {
  background: var(--tan-light);
}

.note {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Article (story page) */
.article {
  max-width: 70ch;
  margin: 0 auto;
}

.article .kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 700;
}

.article h2 {
  color: var(--green-dark);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0.4rem 0 0.5rem;
}

.article .byline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.article p {
  margin: 0 0 1.1rem;
}

.article .lede {
  font-weight: 600;
  font-size: 1.15rem;
}

.clipping-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tan);
}

.clipping-links a {
  text-decoration: none;
  font-weight: 600;
}

/* Poem page */
.poem-intro {
  font-style: italic;
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0 auto 2rem;
}

.poem {
  max-width: 50ch;
  margin: 0 auto;
  font-size: 1.15rem;
}

.poem p {
  margin: 0 0 1.4rem;
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: var(--tan-light);
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.site-footer h3 {
  color: var(--white);
  margin-top: 0;
  font-size: 1.05rem;
}

.site-footer a {
  color: var(--tan-light);
}

.site-footer .fine-print {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: var(--tan);
  text-align: center;
}

/* 404 */
.not-found {
  text-align: center;
  padding: 5rem 0;
}

.not-found h1 {
  font-size: 3rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}
