/* Queenstown & District Historical Society — heritage-modern theme */
:root {
  --pine: #1e3a2f;
  --pine-dark: #14281f;
  --gold: #b98d4f;
  --gold-light: #d4b47e;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --ink: #2b2620;
  --ink-soft: #5a5248;
  --rust: #8a3b2c;
  --line: #e3dccb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3, .brand { font-family: 'Fraunces', Georgia, serif; color: var(--pine); }

/* Header */
.topbar {
  background: var(--pine);
  color: var(--gold-light);
  font-size: 0.85rem;
  padding: 6px 24px;
  text-align: right;
}
.topbar a { color: var(--gold-light); text-decoration: none; }
header.site {
  background: var(--paper);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(30,58,47,.08);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.logo { width: 54px; height: 54px; border-radius: 50%; }
.brand { line-height: 1.15; }
.brand .name { font-size: 1.25rem; font-weight: 600; display: block; }
.brand .motto { font-size: .85rem; font-style: italic; color: var(--gold); font-family: Georgia, serif; }
nav.main { margin-left: auto; }
nav.main ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a {
  display: block; padding: 8px 14px; text-decoration: none;
  color: var(--pine); font-weight: 600; font-size: .95rem;
  border-radius: 4px; transition: background .15s, color .15s;
}
nav.main a:hover { background: var(--pine); color: #fff; }
nav.main a.active { background: var(--gold); color: #fff; }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  padding: 10px; border-radius: 4px;
}
.nav-toggle:hover { background: var(--cream); }
.nav-toggle .bar {
  display: block; width: 26px; height: 3px; background: var(--pine);
  border-radius: 2px; transition: transform .25s, opacity .25s;
}
.nav-toggle .bar + .bar { margin-top: 5px; }
header.site.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
header.site.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
header.site.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  nav.main { display: none; width: 100%; margin-left: 0; }
  header.site.nav-open nav.main { display: block; }
  nav.main ul { flex-direction: column; gap: 0; padding: 6px 0 10px; }
  nav.main a { padding: 13px 10px; border-radius: 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
  nav.main li:first-child a { border-top: 2px solid var(--line); }
  .brand .name { font-size: 1.05rem; }
}

/* Hero */
.hero {
  background: linear-gradient(rgba(20,40,31,.55), rgba(20,40,31,.75)),
    url('https://www.queenstownhistoricalsociety.org.nz/wpimages/wpc1db1193_05_06.jpg') center/cover;
  color: #fff; text-align: center; padding: 96px 24px;
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 600; line-height: 1.15; max-width: 850px; margin: 0 auto 14px; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 28px; color: #f0ead9; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--gold); color: #fff; text-decoration: none;
  padding: 12px 28px; border-radius: 4px; font-weight: 700; letter-spacing: .02em;
  transition: background .15s;
}
.btn:hover { background: var(--rust); }
.btn.ghost { background: transparent; border: 2px solid var(--gold-light); }
.btn.ghost:hover { background: var(--gold); border-color: var(--gold); }

/* Layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 56px 24px; }
.narrow { max-width: 780px; }
section + section { margin-top: 56px; }
.kicker {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  color: var(--rust); font-weight: 700; margin-bottom: 6px;
}
h2.title { font-size: 1.9rem; line-height: 1.2; margin-bottom: 18px; }
h2.title:after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin-top: 10px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid.cols3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 26px; box-shadow: 0 1px 4px rgba(30,58,47,.05);
}
.card h3 { font-size: 1.15rem; line-height: 1.25; margin-bottom: 8px; }
.card img.cover { width: 100%; height: 220px; object-fit: cover; border-radius: 4px; margin-bottom: 14px; }
.card img.book { width: auto; max-height: 260px; display: block; margin: 0 auto 14px; border-radius: 3px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.card .meta { font-size: .88rem; color: var(--ink-soft); }
.price { color: var(--rust); font-weight: 700; }

/* Event entries */
.event { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 28px; margin-bottom: 24px; }
.event.noimg { grid-template-columns: 1fr; }
.event h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 4px; }
.event .date { color: var(--rust); font-weight: 700; font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.event figure img { width: 100%; border-radius: 4px; }
.event figcaption { font-size: .82rem; color: var(--ink-soft); font-style: italic; margin-top: 6px; }
@media (max-width: 720px) { .event { grid-template-columns: 1fr; } }

/* Archive */
.decade { margin-bottom: 34px; }
.decade h3 { margin-bottom: 12px; font-size: 1.1rem; }
.issues { display: flex; flex-wrap: wrap; gap: 8px; }
.issues a {
  display: inline-block; min-width: 52px; text-align: center; padding: 8px 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  color: var(--pine); font-weight: 700; text-decoration: none; transition: all .15s;
}
.issues a:hover { background: var(--pine); color: #fff; border-color: var(--pine); }
.notice {
  background: #f3ecdc; border-left: 4px solid var(--gold); padding: 14px 18px;
  border-radius: 0 4px 4px 0; font-size: .95rem; margin: 18px 0;
}

/* Index search */
#idx-search {
  width: 100%; padding: 13px 16px; font-size: 1.05rem; border: 2px solid var(--line);
  border-radius: 6px; background: var(--paper); margin-bottom: 16px;
}
#idx-search:focus { outline: none; border-color: var(--gold); }
.idx-table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .93rem; }
.idx-table th { background: var(--pine); color: #fff; text-align: left; padding: 10px 12px; position: sticky; top: 92px; }
.idx-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.idx-table tr:hover td { background: #f3eee1; }
#idx-count { color: var(--ink-soft); font-size: .9rem; margin-bottom: 10px; }

/* Org list */
.orgs a.card { display: block; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.orgs a.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(30,58,47,.12); }
.orgs .card p { color: var(--ink-soft); font-size: .92rem; }

/* Membership */
.member-box { background: var(--pine); color: #f0ead9; border-radius: 6px; padding: 40px; }
.member-box h2 { color: #fff; }
.member-box table { border-collapse: collapse; margin: 18px 0; }
.member-box td { padding: 6px 22px 6px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.member-box a { color: var(--gold-light); }

/* Footer */
footer.site {
  background: var(--pine-dark); color: #cfc7b5; margin-top: 72px;
  padding: 48px 24px 24px; font-size: .92rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
footer h4 { color: var(--gold-light); font-family: 'Fraunces', Georgia, serif; margin-bottom: 10px; }
footer a { color: #cfc7b5; }
.copyright { max-width: 1100px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; text-align: center; }

figure.framed img { width: 100%; border: 6px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.15); border-radius: 2px; }
figure.framed figcaption { font-size: .85rem; font-style: italic; color: var(--ink-soft); margin-top: 8px; text-align: center; }
