:root {
  --ink: #262b33;
  --paper: #f7f5f0;
  --paper-dim: #ece8e0;
  --content-rule: #ddd8cd;
  --sidebar-rule: #3c414b;
  --pen: #2c5aa0;
  --pen-deep: #1f4278;
  --muted: #6b7280;
  --muted-on-ink: rgba(247, 245, 240, 0.55);
  --radius: 0;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 760px;
}

/* Shell layout */
.shell {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}
.sidebar {
  flex: 0 0 240px;
  background: var(--ink);
  color: var(--muted-on-ink);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.content {
  flex: 1;
  min-width: 0;
  padding: 48px 48px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--paper);
  margin-bottom: 36px;
}
.brand img { height: 30px; width: 30px; border-radius: 50%; object-fit: cover; }

nav.index-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}
nav.index-nav a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--sidebar-rule);
  color: var(--muted-on-ink);
  font-size: 0.92rem;
}
nav.index-nav a:last-child { border-bottom: 1px solid var(--sidebar-rule); }
nav.index-nav a:hover { color: var(--paper); text-decoration: none; }
nav.index-nav a .num {
  font-family: var(--font-mono);
  color: var(--muted-on-ink);
  font-size: 0.72rem;
}
nav.index-nav a.current { color: #fff; }
nav.index-nav a.current .num { color: var(--pen); }

.btn-donate {
  margin-top: 24px;
  display: block;
  text-align: center;
  border: 1px solid var(--pen);
  color: #fff !important;
  background: var(--pen);
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none !important;
}
.btn-donate:hover { background: var(--pen-deep); }
.btn-donate.current { background: var(--pen-deep); }

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar {
    position: static;
    height: auto;
    width: 100%;
    flex: none;
  }
  nav.index-nav { flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
  nav.index-nav a { border: none; padding: 6px 0; }
  nav.index-nav a:last-child { border: none; }
  .content { padding: 36px 24px 0; }
}

/* Entries (home page) */
.entry {
  padding: 40px 0;
  border-top: 1px solid var(--content-rule);
  max-width: 720px;
}
.entry:first-of-type { border-top: none; padding-top: 4px; }
.entry h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 24px;
}
.entry h2 {
  font-size: 1.35rem;
  line-height: 1.4;
  margin: 0 0 14px;
  max-width: 42ch;
  font-weight: 700;
}
.entry p {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 62ch;
  font-size: 1.02rem;
}
.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
}
.btn:hover { background: var(--ink); color: var(--paper) !important; }

.exhibit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 700px) {
  .exhibit-grid { grid-template-columns: 1fr; }
}
.exhibit {
  border: 1px solid var(--content-rule);
  padding: 14px;
  background: var(--paper);
}
.exhibit img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 12px;
}
.exhibit:nth-child(2) img { object-position: center 12%; }
.exhibit:nth-child(3) img { object-position: center 30%; }
.exhibit h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}
.exhibit p { color: var(--muted); font-size: 0.9rem; margin: 0; max-width: none; }

.photo-strip {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.photo-strip img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.16);
}
.photo-strip img:nth-child(1) { transform: rotate(-2deg); }
.photo-strip img:nth-child(2) { transform: rotate(1.5deg); }
.photo-strip img:nth-child(3) { transform: rotate(-1deg); }

.discover {
  padding: 20px 0 64px;
  max-width: 720px;
}
.stamp {
  display: inline-block;
  border: 2px solid var(--pen);
  color: var(--pen) !important;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none !important;
  transform: rotate(-1.5deg);
}
.stamp:hover { background: var(--pen); color: #fff !important; }

/* Generic page content */
.page-content {
  padding: 4px 0 72px;
  max-width: 720px;
}
.page-content h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.5rem);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--content-rule);
}
.page-content h2 {
  font-size: 1.2rem;
  margin: 36px 0 12px;
}
.page-content p { margin: 0 0 16px; color: var(--ink); max-width: 64ch; }
.page-content img.inline-image {
  margin: 24px 0;
  border: 1px solid var(--content-rule);
}

.intro-pillars {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  max-width: 520px;
}
.intro-pillars li {
  border-top: 1px solid var(--content-rule);
  padding: 12px 0;
  font-weight: 700;
}
.intro-pillars li:last-child { border-bottom: 1px solid var(--content-rule); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--content-rule);
  border: 1px solid var(--content-rule);
  margin-top: 24px;
}
.team-card {
  background: var(--paper);
  padding: 20px;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 14px;
  background: var(--paper-dim);
}
.team-card img.crop-top-0 { object-position: center 0%; }
.team-card img.crop-top-10 { object-position: center 10%; }
.team-card img.crop-top-20 { object-position: center 20%; }
.team-card h3 { margin: 0 0 2px; font-size: 1.02rem; }
.team-card .role {
  color: var(--pen);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.team-card p { color: var(--muted); font-size: 0.9rem; margin: 0 0 10px; }
.team-card details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 6px;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 560px;
}
form.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
form.contact-form label {
  font-weight: 700;
  font-size: 0.88rem;
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--content-rule);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: 2px solid var(--pen);
  outline-offset: 1px;
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form button {
  justify-self: start;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
form.contact-form button:hover { background: var(--pen); }
.form-note { display: none; }

.empty-page {
  color: var(--muted);
  padding: 20px 0 40px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--content-rule);
  padding: 32px 0 56px;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 720px;
}
footer.site-footer a { color: var(--muted); }
footer.site-footer .social { margin-bottom: 10px; }
.social-icon { display: inline-flex; }
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
