:root {
  --gold: #9c8216;
  --gold-bright: #c2a52a;
  --black: #050505;
  --panel: rgba(0, 0, 0, 0.78);
  --serif: "EB Garamond", "Garamond", "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
}

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

a { color: var(--gold-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid rgba(156, 130, 22, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gold);
  letter-spacing: 0.15em;
  font-size: 1.1rem;
}

.brand img { width: 40px; height: 40px; }

.site-nav { display: flex; gap: 2rem; }

.site-nav a {
  color: var(--gold);
  text-decoration: none;
  font-style: italic;
  font-size: 1.15rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--gold-bright); border-bottom: 1px solid var(--gold-bright); }

/* ---------- Frames (the gold boxes) ---------- */
.frame {
  border: 3px solid var(--gold);
  background: var(--panel);
  padding: 1.5rem 2rem;
}

.frame h2,
.frame h3 { text-align: center; }

h1, h2, h3 { font-weight: 600; font-style: italic; line-height: 1.2; }
h2 { font-size: 2.2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.8rem; margin-bottom: 0.75rem; }

.quote {
  border: 3px solid var(--gold);
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 1.35rem;
  background: var(--panel);
}

.title-bar {
  border: 3px solid var(--gold);
  background: var(--panel);
  text-align: center;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.title-bar h2 { margin: 0; }

.photo-frame { border: 3px solid var(--gold); overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Layout ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.textured {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.textured.soil { background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.75)), url("images/texture-soil.jpg"); }
.textured.fungus { background-image: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.8)), url("images/texture-fungus.jpg"); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split.reverse > :first-child { order: 2; }

.stack > * + * { margin-top: 1.5rem; }
.frame p + p { margin-top: 0.9rem; }

.mark { display: block; width: 72px; margin: 3rem auto 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 88vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero-box {
  border: 4px solid var(--gold-bright);
  background: rgba(0, 0, 0, 0.55);
  padding: 2.5rem 4rem;
  color: var(--gold-bright);
}

.hero-box h1 {
  font-style: normal;
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.hero-box img { width: 90px; margin: 1.25rem auto; }

.hero-tagline { margin-top: 2rem; font-style: italic; font-size: 1.4rem; }

/* ---------- Focus list ---------- */
.focus { list-style: none; text-align: left; }
.focus li { font-size: 1.3rem; }
.focus li + li::before {
  content: "↓";
  display: block;
  text-align: center;
  font-size: 1.6rem;
  margin: 0.25rem 0;
}

.steps { padding-left: 1.5rem; }
.steps li + li { margin-top: 0.4rem; }

.audience { list-style: none; }
.audience li + li { margin-top: 0.9rem; }

/* ---------- Gallery ---------- */
.panels { display: grid; gap: 2rem; }
.panels .photo-frame { aspect-ratio: 10 / 3; }

.species-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.species-grid figure .photo-frame { aspect-ratio: 470 / 419; }

figcaption {
  text-align: center;
  font-style: italic;
  font-weight: 600;
  margin-top: 0.5rem;
  line-height: 1.3;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.trio .photo-frame { aspect-ratio: 307 / 1006; }

.inserts img { width: 100%; }

/* ---------- Contact ---------- */
.contact-intro { text-align: center; }
.contact-intro p:first-child { font-style: italic; font-size: 1.35rem; }
.contact-intro .email { font-size: 1.5rem; font-weight: 600; }

form { display: grid; gap: 1rem; }

label { display: grid; gap: 0.3rem; font-weight: 600; }

input, textarea {
  font: inherit;
  font-size: 1.05rem;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--gold);
  padding: 0.6rem 0.75rem;
}

input:focus, textarea:focus { outline: 2px solid var(--gold-bright); outline-offset: 1px; }

textarea { min-height: 8rem; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

button {
  justify-self: center;
  font: inherit;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--black);
  background: var(--gold);
  border: none;
  padding: 0.6rem 2.5rem;
  cursor: pointer;
}

button:hover { background: var(--gold-bright); }

.form-note { text-align: center; font-size: 1rem; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid rgba(156, 130, 22, 0.4);
  font-size: 1rem;
}

.site-footer img { width: 48px; margin: 0 auto 0.75rem; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .site-header { flex-direction: column; gap: 0.5rem; padding: 0.75rem 1rem; }
  .site-nav { gap: 1.25rem; }
  .split, .species-grid, .form-row { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .trio { grid-template-columns: 1fr; }
  .trio .photo-frame { aspect-ratio: 3 / 4; }
  .panels .photo-frame { aspect-ratio: 16 / 9; }
  .hero-box { padding: 2rem 1.5rem; }
  .frame { padding: 1.25rem; }
  .textured { background-attachment: scroll; }
}
