:root {
  --heritage-green: #204b3a;
  --heritage-green-ink: #17362a;
  --warm-gold: #b08d57;
  --parchment: #f6f2e9;
  --ink: #1d1d1b;
  --muted: #6b6b68;
  --maxw: 1140px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Merriweather", Georgia, serif;
  color: var(--heritage-green-ink);
  margin: 0 0 0.5rem;
}
h1 {
  font-weight: 900;
}
h2 {
  font-weight: 900;
}
h3 {
  font-weight: 700;
  letter-spacing: 0.2px;
}
h4 {
  font-weight: 700;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #fff;
  padding: 0.5rem 1rem;
  border: 2px solid var(--warm-gold);
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 4px solid var(--warm-gold);
  z-index: 999;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
}
.brand__name {
  font-size: 1.05rem;
}
.brand__tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.main-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.25rem;
  color: var(--heritage-green-ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav a:focus,
.main-nav a:hover {
  border-color: var(--warm-gold);
}

.hero {
  position: relative;
  min-height: 52vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("background.jpg") center/cover no-repeat;
  filter: contrast(0.95) saturate(0.9);
}
.hero__content {
  position: relative;
  padding: 4rem 1rem;
}
.hero__title {
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 1px 0 #0006, 0 2px 6px #0008;
}
.hero__lead {
  max-width: 52ch;
  margin: 0.5rem auto 1rem;
  color: #f6f6f6;
  text-shadow: 0 1px 0 #0004;
}
.hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary {
  background: var(--heritage-green);
  color: #fff;
  border-color: #0000;
}
.btn--primary:focus,
.btn--primary:hover {
  filter: brightness(1.1);
}
.btn--outline {
  background: #0000;
  color: #fff;
  border-color: #fff;
}
.btn--outline:hover,
.btn--outline:focus {
  background: #fff;
  color: var(--heritage-green-ink);
}

.section {
  padding: 2.25rem 0;
}
.section__header {
  margin-bottom: 1rem;
}
.section__title {
  display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: 3px solid var(--warm-gold);
}
.section__kicker {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* Decorative diagonal striped divider (Innovation #1) */
.divider {
  height: 16px;
  background: repeating-linear-gradient(
    135deg,
    var(--warm-gold) 0 12px,
    #0000 12px 24px
  );
}

/* Stamp-like card frame (Innovation #3) */
.card {
  background: #fff;
  border: 1px solid #e2dccf;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 0 #00000010, 0 6px 16px #00000008;
}
.card--stamp {
  outline: 2px solid var(--heritage-green);
  outline-offset: 6px;
}
.card__title {
  margin-top: 0;
}

/* Vertical caption (Innovation #5) */
.with-vertical {
  position: relative;
  padding-left: 0;
}
.vertical-caption {
  display: none;
}
@media (min-width: 768px) {
  .with-vertical {
    padding-left: 2.5rem;
  }
  .vertical-caption {
    display: block;
    position: absolute;
    left: 0;
    top: 0.1rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--muted);
  }
}

/* Drop cap for first paragraph (Innovation #4) */
.drop-cap::first-letter {
  float: left;
  font-family: "Merriweather", serif;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--heritage-green);
  padding: 0.2rem 0.5rem 0.2rem 0;
}

.grid {
  display: grid;
  gap: 1rem;
}
.grid--2cols {
  grid-template-columns: 1fr;
}
.grid--3cols {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid--2cols {
    grid-template-columns: 1fr 1fr;
  }
  .grid--3cols {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.small-image {
  clip-path: inset(0% 0% 5% 5%);
  border-radius: 6px;
  max-width: 100%;
  height: auto;
}
.figure {
  margin: 1rem 0;
  text-align: center;
}
.figure figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

/* :target highlight (Innovation #2 additional effect) */
:target .section__title,
:target .brand__name {
  background: linear-gradient(90deg, #fff8, #fff0);
  box-shadow: inset 0 -8px 0 #b08d5733;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.subscribe-form input {
  flex: 1 0 240px;
  padding: 0.6rem 0.8rem;
  border: 1px solid #c9c3b6;
  border-radius: 6px;
}
.subscribe-form input:focus {
  outline: 2px solid var(--warm-gold);
  outline-offset: 2px;
}
.form-disclaimer {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  margin: 0.35rem 0;
}
.contact-list i {
  color: var(--heritage-green);
}

.site-footer {
  border-top: 4px solid var(--warm-gold);
  background: #fff;
  padding: 1rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.sub-nav a {
  color: var(--heritage-green-ink);
  text-decoration: none;
  margin-right: 1rem;
}
.sub-nav a:hover {
  text-decoration: underline;
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
