@font-face {
  font-family: "CC Wild Words";
  src: url("fonts/CCWildWords-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #171b23;
  --cream: #f5efe4;
  --paper: #fffaf0;
  --teal: #2d706b;
  --gold: #efbd58;
  --terracotta: #c65e47;
  --navy: #081430;
  --radius: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "CC Wild Words", "Comic Sans MS", "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}
img { max-width: 100%; display: block; }
.container { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(780px, 100%); }
.section { padding: 60px 0; }

.hero {
  background: var(--teal);
  color: white;
  border-bottom: 8px solid var(--gold);
}
.hero-inner { display: flex; align-items: center; gap: 24px; padding: 28px 0; }
.logo { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 2px; font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: .95; letter-spacing: .01em; }
.tagline { margin: 8px 0 0; font-size: clamp(.95rem, 1.7vw, 1.18rem); }
.lead { font-size: clamp(1.02rem, 1.8vw, 1.25rem); }

.visual-strip { background: #111; }
.visual-strip img { width: 100%; max-height: 430px; object-fit: cover; object-position: center; }

.heritage { background: var(--paper); }
.heritage h2, .section-heading h2 { color: #355b89; font-size: clamp(1.6rem, 2.8vw, 2.55rem); line-height: 1.15; }

.publications { background: linear-gradient(135deg, #f3c867 0 14%, var(--paper) 14% 86%, #ca624b 86%); }
.section-heading { margin-bottom: 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-weight: 700; color: var(--terracotta); margin-bottom: 8px; }

.project-card {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 40px;
  align-items: center;
  margin: 0 0 58px;
  padding: 28px;
  background: rgba(255,255,255,.92);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 12px 14px 0 rgba(23,27,35,.12);
}
.project-card.reverse .cover-wrap { order: 2; }
.cover-wrap img { width: 100%; border-radius: 22px; border: 4px solid var(--ink); }
.number { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--terracotta); color: white; font-weight: 700; margin-bottom: 14px; }
.project-copy h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.1; margin-bottom: 20px; }
.subhead { font-weight: 700; color: var(--teal); }
blockquote { margin: 20px 0; padding: 15px 19px; border-left: 8px solid var(--gold); background: #f9e5b7; font-size: 1.15em; font-weight: 700; }

footer { background: var(--navy); color: white; padding: 26px 0; text-align: center; }
footer .contact { margin: 0 0 6px; font-size: 1.05rem; }
footer .contact a { color: white; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
footer .contact a:hover, footer .contact a:focus { color: var(--gold); }
footer .copyright { margin: 0; font-size: .92rem; opacity: .85; }

@media (max-width: 780px) {
  body { font-size: 15px; }
  .container { width: min(100% - 26px, 1160px); }
  .section { padding: 42px 0; }
  .hero-inner { align-items: flex-start; gap: 16px; padding: 22px 0; }
  .logo { width: 66px; height: 66px; }
  .tagline { font-size: .95rem; }
  .project-card { grid-template-columns: 1fr; gap: 24px; padding: 18px; margin-bottom: 36px; }
  .project-card.reverse .cover-wrap { order: 0; }
  .cover-wrap { max-width: 360px; margin: 0 auto; }
  .publications { background: linear-gradient(145deg, #f3c867 0 8%, var(--paper) 8% 92%, #ca624b 92%); }
}
