@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&&display=swap');

:root {
  --navy: #000080;
  --cream: #ffeeaa;
  --white: #ffffff;
  --placeholder: #cccccc;
  --button-text: #f9f9f9;
  --max-width: 1310px; /* matches the 1185px content column + 142.5px margins from the mockup */
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream);
  color: var(--navy);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

.bg-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 72vw;
  max-height: 1066px;
  background-image: url('assets/map-background.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 0.26;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 30px 0;
}

.site-header.has-logo {
  justify-content: space-between;
}

.logo-lockup img {
  height: 40px;
  display: block;
}

.nav-pill {
  background: var(--white);
  border-radius: 999px;
  padding: 22px 40px;
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
  justify-content: center;
}

.nav-pill a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.nav-pill a:hover {
  text-decoration: underline;
}

.nav-pill a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Shared typography ---------- */

.headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-align: center;
  font-size: clamp(32px, 5vw, 56px);
  margin: 0.6em auto 0.5em;
  max-width: 900px;
}

.lede, .body-copy {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.5;
}

.lede {
  /* font-style: italic; */
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2em;
}

.body-copy {
  font-style: normal;
  text-align: left;
  max-width: 900px;
  margin: 2em auto 0;
}

/* ---------- Home page ---------- */

.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 30px 100px;
  text-align: center;
}

.logo-mark {
  width: min(320px, 60vw);
  height: auto;
  margin: 0px auto 60px;
  display: block;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
  justify-content: center;
  align-items: flex-start;
  margin: 2.5em;
}

.partners p {
  margin: 0 0 32px;
  text-align: center;
}

.partners div {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
}

.partners img {
  max-width: 100px;
}

.subscribe {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 2.5em;
}

.subscribe input[type="email"] {
  flex: 1 1 380px;
  max-width: 390px;
  background: var(--white);
  border: none;
  border-radius: 999px;
  padding: 22px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--navy);
}

.subscribe input[type="email"]::placeholder {
  color: var(--placeholder);
}

.subscribe button {
  flex: 0 0 auto;
  background: var(--navy);
  color: var(--button-text);
  border: none;
  border-radius: 999px;
  padding: 22px 44px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
}

.subscribe button:hover {
  opacity: 0.9;
}

/* ---------- Internal / Histoire page ---------- */

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

.photo {
  margin: 2.5em 0;
  border: 2px navy solid;
}

.photo img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 20px 0;
  }
  .nav-pill {
    padding: 16px 20px;
    gap: 16px;
  }
}
