/* Imaginative Futures — a fond farewell.
   Rebuilt from the Squarespace original. Palette and type lifted from the
   site's own design tokens: Poppins, navy #1D1A40, indigo accent #3F4E9F. */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/poppins-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/poppins-700.woff2') format('woff2');
}

:root {
  --navy:   #1D1A40;
  --indigo: #3F4E9F;
  --pink:   #DD9BC4;
  --off-white: #F8F8F8;
  --white:  #FFFFFF;

  --measure: 46rem;
  --gutter: clamp(1.25rem, 6vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--indigo); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
  max-width: 90rem;
  margin: 0 auto;
}

.brand img { width: clamp(74px, 9vw, 104px); height: auto; }

/* ---------- hero ---------- */

.hero img { width: 100%; }

/* The desktop art is a wide band that dissolves into white; the mobile art is
   a tall portrait crop. Squarespace swapped whole sections at 640px — same
   breakpoint here, but with <picture> instead of duplicated markup. */

/* ---------- letter ---------- */

.letter {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

h1 {
  font-weight: 700;
  font-size: clamp(2.1rem, 3.6vw + 1rem, 4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.25em;
}

.letter p { margin: 0 0 1.5rem; }
.letter p:last-child { margin-bottom: 0; }

.signoff { margin-top: 2.5rem; }

/* ---------- rainbow rule ---------- */

.rainbow {
  border: 0;
  height: clamp(9px, 1.1vw, 14px);
  margin: 0 auto;
  width: min(100% - (2 * var(--gutter)), 68rem);
  background-image: url('assets/line.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* ---------- contacts ---------- */

.contacts {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  text-align: center;
}

h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 2.16vw + 1rem, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 2.5rem;
}

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 700px) {
  .people {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.75rem 2rem;
  }
}

.name {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
}

.links {
  margin: 0;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* The original separated these with literal "|" characters. They sit outside
   the anchors so they are neither clickable nor underlined, and aria-hidden
   keeps them from being announced between link names. */
.sep {
  color: var(--navy);
  opacity: 0.3;
  margin: 0 0.35rem;
  user-select: none;
}

.links a {
  color: var(--indigo);
  text-decoration: none;
  border-bottom: 1px solid rgb(63 78 159 / 0.3);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.links a:hover {
  color: var(--navy);
  border-bottom-color: var(--pink);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  display: grid;
  place-items: center;
  padding: clamp(3rem, 7vw, 4.5rem) var(--gutter);
}

.site-footer img { width: clamp(96px, 12vw, 140px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
