/* ===================================================
   The Hollands of Oysterrocks — 200 Years of Freedom
   Shared stylesheet
=================================================== */

:root {
  --deep-green: #33473a;
  --mid-green: #4c6a55;
  --sage: #7c9483;
  --cream: #f6f1e6;
  --parchment: #efe6d2;
  --gold: #b6893f;
  --ink: #2a2620;
  --brown: #6b4a2f;
  --max-width: 1100px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}

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

a { color: var(--brown); }
a:hover { color: var(--gold); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

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

header.site-header {
  background: var(--deep-green);
  color: var(--cream);
  border-bottom: 4px solid var(--gold);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--cream);
}

.brand img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

.brand-text .eyebrow {
  font-family: var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--sage);
}

.brand-text .title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
}

nav.main-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-color: var(--gold);
  color: #fff;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  color: #fff;
  display: flex;
  align-items: flex-end;
  min-height: 62vh;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,40,32,0.25) 0%, rgba(24,32,26,0.86) 92%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 28px 44px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero .eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 14px;
  line-height: 1.12;
}

.hero p.lede {
  font-family: var(--sans);
  max-width: 640px;
  font-size: 1.08rem;
  color: #f1ece0;
}

/* Smaller page header (non-homepage) */
.page-hero {
  min-height: 40vh;
}

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

section {
  padding: 64px 0;
}

section.tight { padding: 40px 0; }

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

h2.section-title {
  font-size: 1.9rem;
  color: var(--deep-green);
  margin: 0 0 8px;
}

p.section-kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 6px;
}

.lede-block {
  max-width: 720px;
}

/* ---------------- Holland Day callout ---------------- */

.callout {
  background: var(--deep-green);
  color: var(--cream);
  border-radius: 6px;
  padding: 36px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.callout .callout-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.callout h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.callout p {
  margin: 0;
  max-width: 520px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: #ece7d9;
}

.callout .badge {
  background: var(--gold);
  color: var(--deep-green);
  font-family: var(--sans);
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 4px;
  text-align: center;
  min-width: 150px;
}

.callout .badge .num {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.callout .badge .cap {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------------- Card grid (homepage nav cards) ---------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 820px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid #e4dcc7;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(51,71,58,0.18);
}

.card .card-img {
  height: 190px;
  overflow: hidden;
}

.card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card .card-kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 6px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  color: var(--deep-green);
}

.card p {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: #4a463c;
  margin: 0 0 14px;
}

.card .card-link {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brown);
}

/* ---------------- Timeline ---------------- */

.timeline {
  position: relative;
  margin: 30px 0;
  padding-left: 26px;
  border-left: 3px solid var(--sage);
}

.timeline-item {
  position: relative;
  margin-bottom: 34px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--deep-green);
}

.timeline-item.milestone::before {
  width: 18px;
  height: 18px;
  left: -35px;
  background: var(--deep-green);
}

.timeline-year {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--deep-green);
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.timeline-item h4 {
  margin: 0 0 6px;
  font-size: 1.12rem;
}

.timeline-item p {
  margin: 0;
  font-size: 0.98rem;
  color: #3a362d;
}

/* ---------------- Prose / article ---------------- */

.prose {
  max-width: 760px;
}

.prose h2 {
  color: var(--deep-green);
  margin-top: 2.2em;
  font-size: 1.5rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p { margin: 0 0 1.15em; }

blockquote.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--deep-green);
  border-left: 4px solid var(--gold);
  margin: 1.8em 0;
  padding: 6px 0 6px 24px;
}

blockquote.pull cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brown);
  margin-top: 8px;
}

.figure {
  margin: 2em 0;
}

.figure img {
  border-radius: 4px;
  border: 1px solid #ddd3ba;
}

.figure figcaption {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: #6b6656;
  margin-top: 8px;
  line-height: 1.5;
}

.figure.float-right {
  float: right;
  width: 320px;
  margin-left: 32px;
}

.figure.float-left {
  float: left;
  width: 320px;
  margin-right: 32px;
}

@media (max-width: 720px) {
  .figure.float-right, .figure.float-left {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

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

/* ---------------- Fact strip ---------------- */

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

@media (max-width: 780px) {
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
}

.fact {
  background: #fff;
  border: 1px solid #e4dcc7;
  border-radius: 6px;
  padding: 22px 14px;
}

.fact .fact-num {
  font-family: var(--sans);
  font-weight: 800;
  color: var(--deep-green);
  font-size: 1.6rem;
}

.fact .fact-label {
  font-family: var(--sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6656;
  margin-top: 4px;
}

/* ---------------- Gallery ---------------- */

.gallery-group { margin-bottom: 56px; }

.gallery-group h2 {
  color: var(--deep-green);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.gallery-group .group-desc {
  font-family: var(--sans);
  color: #5a5546;
  font-size: 0.94rem;
  max-width: 640px;
  margin-bottom: 22px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  background: #fff;
  border: 1px solid #e4dcc7;
  border-radius: 6px;
  overflow: hidden;
}

.gallery-item .gimg {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-item .gimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .gcap {
  padding: 12px 14px 16px;
  font-family: var(--sans);
}

.gallery-item .gcap .gtitle {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--deep-green);
  margin-bottom: 3px;
}

.gallery-item .gcap .gdesc {
  font-size: 0.82rem;
  color: #5a5546;
  line-height: 1.5;
}

/* ---------------- Family tree / genealogical register ---------------- */

.tree-gen {
  margin: 2.4em 0;
}

.tree-gen h2 {
  color: var(--deep-green);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.tree-gen .tree-gen-desc {
  font-family: var(--sans);
  color: #5a5546;
  font-size: 0.92rem;
  margin: 0 0 1.2em;
  max-width: 700px;
}

.tree-person {
  background: #fff;
  border: 1px solid #e4dcc7;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.tree-person.root {
  border-left-color: var(--deep-green);
  background: var(--parchment);
}

.tree-person .tp-name {
  font-weight: 700;
  color: var(--deep-green);
  font-size: 1.05rem;
}

.tree-person .tp-dates {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown);
  margin-bottom: 6px;
}

.tree-person .tp-detail {
  font-size: 0.96rem;
  margin: 0 0 8px;
}

.tree-person .tp-children {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: #4a463c;
  margin: 8px 0 0;
  padding-left: 20px;
}

.tree-person .tp-children li {
  margin-bottom: 4px;
}

.tree-note {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: #6b6656;
  background: var(--parchment);
  border-radius: 4px;
  padding: 14px 18px;
  margin: 1.6em 0;
}

/* ---------------- Key People & Places ---------------- */

.kp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kp-list li {
  padding: 14px 0;
  border-bottom: 1px solid #e4dcc7;
}

.kp-list li:last-child { border-bottom: none; }

.kp-list .kp-name {
  font-weight: 700;
  color: var(--deep-green);
}

.kp-list .kp-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  display: block;
  margin-bottom: 2px;
}

.place-list {
  font-family: var(--sans);
  font-size: 0.92rem;
  padding-left: 22px;
  margin: 0;
}

.place-list li { margin-bottom: 10px; }

/* ---------------- Sources / footer note ---------------- */

.source-note {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: #6b6656;
  border-top: 1px solid #ddd3ba;
  margin-top: 3em;
  padding-top: 1.4em;
}

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

footer.site-footer {
  background: var(--deep-green);
  color: #cfd8cf;
  padding: 40px 0 30px;
  margin-top: 40px;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--sans);
  font-size: 0.85rem;
}

footer.site-footer a { color: var(--gold); text-decoration: none; }

footer .foot-nav {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
}

footer .foot-tag {
  color: #9fae9f;
  font-size: 0.78rem;
  margin-top: 4px;
}
