/* ==========================================================
   lignuum — site styles
   Matches the old Shopify look: white page, black type and buttons,
   serif throughout. All the colour comes from the photos.
   Change colours and fonts once here and every page updates.
   ========================================================== */

:root {
  --ink:    #121212;   /* text, header bar, buttons */
  --grey:   #5c5c5c;   /* secondary text */
  --mist:   #f3f3f1;   /* light grey panels */
  --paper:  #ffffff;   /* page background */
  --line:   #dcdcd8;   /* borders */

  /* Serif fonts already on visitors' devices, so nothing extra to download */
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--ink); text-underline-offset: 0.2em; }
a:hover { color: var(--grey); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: normal; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

/* ---------- Header ---------- */

/* holds the space while the shared header loads, so the page doesn't jump */
div[data-include="header"] { min-height: 73px; border-bottom: 1px solid var(--line); }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}
.logo { font-size: 1.7rem; text-decoration: none; letter-spacing: 0.02em; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
}

.site-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-size: 1rem; color: var(--grey); }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.6rem; }
}

/* ---------- Hero (photo banner) ---------- */

.hero {
  background-color: #3c4a35;   /* shows until you add the photo */
  background-size: cover;
  background-position: center;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4rem 1.25rem;
}
/* white box on the photo, like the old site */
.hero-box {
  background: var(--paper);
  padding: 2rem 2.5rem;
  text-align: center;
  max-width: 34rem;
}
.hero-box h1 { margin-bottom: 0.3em; }
.hero-box p { color: var(--grey); }

/* plain page heading for inner pages */
.page-head { padding: 4rem 0 1rem; }
.page-head p { color: var(--grey); font-size: 1.2rem; max-width: 40rem; }
.page-head p.body { color: var(--ink); font-size: 1.1rem; }
.page-head .split img { max-height: 80vh; width: auto; margin-left: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1rem; }

/* ---------- Sections ---------- */

section { padding: 3.5rem 0; }
section.alt { background: var(--mist); }

.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card img { aspect-ratio: 1 / 1; object-fit: cover; background: var(--mist); margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--grey); font-size: 1rem; }
.step { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }

.split {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.split img { background: var(--mist); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.ticks { padding-left: 1.2rem; }
.ticks li { margin-bottom: 0.4rem; }

.cta { text-align: center; border-top: 1px solid var(--line); }
.cta p { max-width: 36rem; margin: 0 auto 1rem; color: var(--grey); }

/* ---------- Tables (Species page) ---------- */

.table-wrap { overflow-x: auto; margin-bottom: 2.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
th { font-weight: normal; color: var(--grey); font-size: 0.9rem; }
td em { font-style: italic; }
.ready { white-space: nowrap; }

/* ---------- Musings (blog) ---------- */

.post-date { color: var(--grey); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }
.post li { margin-bottom: 1rem; }

/* ---------- Contact form ---------- */

form { display: grid; gap: 1rem; }
label { display: block; margin-bottom: 0.3rem; font-size: 1rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
form button { justify-self: start; }
.hidden { display: none; }

.contact-details { list-style: none; padding: 0; }
.contact-details li { margin-bottom: 0.9rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
  color: var(--grey);
}
.site-footer .cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}
.site-footer h3 { font-size: 1.05rem; color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer a { color: var(--grey); }
.site-footer a:hover { color: var(--ink); }

/* placeholder marker — search "TODO" in VS Code to find every one */
.todo { background: #fff3b0; color: #121212; padding: 0 0.2em; font-family: system-ui, sans-serif; font-size: 0.85em; }
