:root {
  --cream: #fbf6ee;
  --paper: #ffffff;
  --ink: #1f2a37;
  --muted: #5d6877;
  --accent: #d9622b;
  --accent-dark: #b44a1a;
  --teal: #1f6f78;
  --line: #e8dfd0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 42, 55, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

a { color: var(--teal); }
img { max-width: 100%; display: block; }

.container { width: min(1100px, 92%); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo {
  font-family: Georgia, serif; font-weight: bold; font-size: 1.5rem;
  color: var(--ink); text-decoration: none;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--ink); text-decoration: none; padding: 8px 14px;
  border-radius: 999px; font-weight: 500;
}
.nav a:hover { background: var(--line); }
.nav a.active { background: var(--ink); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer;
}

/* Hero */
.hero {
  position: relative; color: #fff; text-align: center;
  background: #24415a url("../img/hero.svg") center/cover no-repeat;
  padding: 130px 0 150px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,20,35,.25), rgba(10,20,35,.45));
}
.hero .container { position: relative; z-index: 1; }
.hero p { font-size: 1.25rem; max-width: 640px; margin: 0 auto 28px; }
.page-hero {
  background: var(--ink); color: #fff; padding: 60px 0; text-align: center;
}
.page-hero p { color: #cdd5df; max-width: 640px; margin: 0 auto; }

.btn {
  display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; border: none; cursor: pointer; font-size: 1rem;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 2px solid #fff; margin-left: 10px; }
.btn.ghost:hover { background: rgba(255,255,255,.15); }

/* Sections */
section { padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 600px; margin: 0 auto; }
.alt { background: #f3ebde; }

/* Cards */
.grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s;
}
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); margin: 0 0 14px; flex: 1; }
.tag {
  align-self: flex-start; font-size: .8rem; font-weight: 600;
  background: #e6f1f2; color: var(--teal); padding: 4px 12px;
  border-radius: 999px; margin-bottom: 10px;
}
.meta { font-size: .9rem; color: var(--muted); }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filters button {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: .95rem;
}
.filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.fact { background: var(--paper); border-radius: var(--radius); padding: 26px 16px; box-shadow: var(--shadow); }
.fact strong { display: block; font-family: Georgia, serif; font-size: 2.4rem; color: var(--accent); }

/* Stories */
.story { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: center; margin-bottom: 70px; }
.story:nth-child(even) .story-img { order: 2; }
.story-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.story blockquote {
  margin: 18px 0 0; padding: 14px 20px; border-left: 4px solid var(--accent);
  background: var(--paper); border-radius: 0 12px 12px 0; font-style: italic;
}

/* Two-column text */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.member { background: var(--paper); padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; color: #fff;
  font-family: Georgia, serif; font-size: 2rem;
}

.notice {
  background: #fff4e5; border: 1px solid #f2d3a8; border-radius: var(--radius);
  padding: 18px 22px; margin-top: 30px;
}

form { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; }
input, textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: 12px; font: inherit; background: var(--paper);
}
input:focus, textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }

/* Footer */
.site-footer { background: var(--ink); color: #cdd5df; padding: 40px 0; text-align: center; }
.site-footer a { color: #fff; }
.site-footer .links { display: flex; gap: 18px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--cream);
    padding: 10px 4%; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .story, .two-col { grid-template-columns: 1fr; }
  .story:nth-child(even) .story-img { order: 0; }
  .hero { padding: 90px 0 100px; }
  .btn.ghost { margin: 10px 0 0; }
}
