/* ==========================================================================
   PACC LAB WEBSITE: STYLES
   --------------------------------------------------------------------------
   Most people only ever need PART 1 (colors, fonts, sizes).
   Everything below it controls layout, and you can usually leave it alone.

     PART 1  Theme: colors, fonts, sizes        ← edit here
     PART 2  Basics: page defaults, links, buttons
     PART 3  Header & menu
     PART 4  Hero (top photo)
     PART 5  Shared section layout
     PART 6  What We Study
     PART 7  Cards (Research & Teaching)
     PART 8  Publications
     PART 9  Teaching numbers
     PART 10 People
     PART 11 Join & Contact
     PART 12 Footer
     PART 13 Small screens & accessibility preferences
   ========================================================================== */


/* ==========================================================================
   PART 1: THEME
   Change a color here and it changes everywhere on the site.
   Colors are hex codes (#RRGGBB). Pick new ones at https://coolors.co and
   check readability at https://webaim.org/resources/contrastchecker/
   (text needs a ratio of at least 4.5 : 1 against its background).
   ========================================================================== */
:root {
  /* Brand colors */
  --clay:        #A64B2A;  /* main accent: buttons, links, highlights */
  --clay-dark:   #8A3B1F;  /* button hover */
  --teal:        #1E5552;  /* secondary accent: tags, headings on cards */
  --teal-dark:   #163F3D;  /* dark panels */
  --gold:        #E3A548;  /* decorative only (lines, dots); not for text on white */
  --gold-soft:   #E8B96A;  /* gold text on dark backgrounds */

  /* Backgrounds */
  --white:       #FFFFFF;
  --cream:       #FBF6EF;  /* alternating section background */
  --sand:        #F4EADC;  /* tags, soft boxes */
  --sand-deep:   #EBD9C2;  /* borders, decorative shapes */

  /* Text */
  --ink:         #2A2320;  /* main text */
  --ink-soft:    #5B504A;  /* secondary text */

  /* Fonts: loaded in index.html from Google Fonts.
     To swap a font, change it here AND in the Google Fonts <link> in index.html. */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script:  "Caveat", "Segoe Print", "Bradley Hand", cursive;

  /* Sizes */
  --container:  1160px;   /* max width of page content */
  --header-h:   68px;     /* height of the top menu bar */
  --radius:     16px;     /* roundness of cards */
  --shadow:     0 6px 24px rgba(42, 35, 32, 0.08);
  --shadow-lg:  0 14px 40px rgba(42, 35, 32, 0.14);

  /* Icon used on the "Related papers" buttons (you can ignore this) */
  --icon-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3Cpath d='M10 9H8'/%3E%3C/svg%3E");
}


/* ==========================================================================
   PART 2: BASICS
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);   /* keeps headings from hiding under the menu */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;       /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

a {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--clay-dark); text-decoration-thickness: 2px; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

.icon {
  width: 1.25em; height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }

.btn--primary { background: var(--clay); color: var(--white); }
.btn--primary:hover { background: var(--clay-dark); color: var(--white); }

.btn--outline { border-color: var(--clay); color: var(--clay); background: transparent; }
.btn--outline:hover { background: var(--clay); color: var(--white); }

.btn--ghost { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--ghost:hover { background: var(--white); color: var(--teal-dark); }

.btn--light { background: var(--cream); color: var(--teal-dark); }
.btn--light:hover { background: var(--white); color: var(--teal-dark); }


/* ==========================================================================
   PART 3: HEADER & MENU
   Transparent over the top photo, then turns solid white once you scroll.
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 2px 16px rgba(42, 35, 32, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-script);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}
.logo:hover { color: inherit; text-decoration: none; }
.is-scrolled .logo,
.menu-open .logo { color: var(--clay); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.16); color: inherit; }
.is-scrolled .site-nav a:hover { background: var(--sand); }

.site-nav a.is-active { background: var(--clay); color: var(--white); }
.site-header .site-nav a.is-active:hover { background: var(--clay-dark); color: var(--white); }
.site-nav .nav-cta { border: 2px solid currentColor; margin-left: 0.35rem; padding: 0.4rem 1rem; }
.site-nav .nav-cta.is-active { border-color: var(--clay); }

/* On the dark photo, focus rings are gold so they stay visible */
.site-header:not(.is-scrolled):not(.menu-open) :focus-visible { outline-color: var(--gold-soft); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }


/* ==========================================================================
   PART 4: HERO (top photo)
   The colored overlay (.hero::before) keeps white text readable. Make the
   numbers after "rgba(...," bigger (up to 1) for a darker overlay.
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2.5rem) 0 4.5rem;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background: var(--teal-dark);
}
.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(22, 63, 61, 0.78) 0%,
      rgba(22, 63, 61, 0.62) 45%,
      rgba(96, 40, 18, 0.74) 100%);
}
.hero__content { max-width: 880px; }
.hero :focus-visible { outline-color: var(--gold-soft); }

.hero__kicker {
  margin-bottom: 0.4rem;
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold-soft);
}
.hero__title { margin: 0 0 1.25rem; color: var(--white); }
.hero__lab {
  display: block;
  font-size: clamp(3.25rem, 10vw, 6.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero__name {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.hero__lede {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  opacity: 0.96;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}
.hero__affil {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.92;
}


/* ==========================================================================
   PART 5: SHARED SECTION LAYOUT
   Sections alternate between white and cream (.section--cream).
   ========================================================================== */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--cream { background: var(--cream); }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  margin-bottom: 0.9rem;
}
.section-head h2::after {       /* small gold underline */
  content: "";
  display: block;
  width: 56px; height: 4px;
  margin: 0.8rem auto 0;
  border-radius: 4px;
  background: var(--gold);
}
.section-intro {
  margin: 0;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.subhead {
  margin: 3.5rem 0 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}


/* ==========================================================================
   PART 6: WHAT WE STUDY (three icons)
   ========================================================================== */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.focus { text-align: center; }
.focus h3 { font-size: 1.35rem; margin-top: 1.1rem; }
.focus p { color: var(--ink-soft); margin: 0 auto; max-width: 22rem; }

.focus__icon {
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  margin: 0 auto;
  border-radius: 50%;
  color: var(--white);
}
.focus__icon .icon { width: 42px; height: 42px; stroke-width: 1.75; }
.focus__icon--clay { background: var(--clay); }
.focus__icon--teal { background: var(--teal); }
.focus__icon--gold { background: var(--gold); color: var(--ink); }


/* ==========================================================================
   PART 7: CARDS (Research & Teaching)
   ========================================================================== */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.card__body { display: flex; flex-direction: column; padding: 1.25rem 1.35rem 1.5rem; flex: 1; }
.card__body p { font-size: 0.98rem; color: var(--ink-soft); }
.card__body p:last-child { margin-bottom: 0; }
.card__title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card__meta {
  margin-bottom: 0.4rem;
  font-size: 0.8rem !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal) !important;
}

/* "Related papers" buttons at the bottom of research cards */
.card__links-label {
  margin: auto 0 0.5rem !important;     /* auto pushes the buttons to the card bottom */
  padding-top: 0.75rem;
  font-size: 0.78rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.paper-links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.paper-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--sand-deep);
  border-radius: 12px;
  background: var(--cream);
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.paper-link::before {                  /* small document icon */
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon-doc) center / contain no-repeat;
          mask: var(--icon-doc) center / contain no-repeat;
}
.paper-link:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  text-decoration: none;
}

/* ==========================================================================
   PART 8: PUBLICATIONS
   ========================================================================== */
.pub-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.5rem;
  background: var(--cream);
  border-top: 6px solid var(--clay);
  border-radius: var(--radius);
}
/* The stripe color cycles clay → teal → gold across the featured cards */
.pub-card:nth-child(3n+2) { border-top-color: var(--teal); }
.pub-card:nth-child(3n+3) { border-top-color: var(--gold); }

.pub-card__meta {
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--teal);
}
.pub-card__year {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  font-style: normal;
}
.pub-card__title { font-size: 1.2rem; line-height: 1.3; margin-bottom: 0.75rem; }
.pub-card__title a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.pub-card__title a:hover { color: var(--clay); }
.pub-card__summary { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.75rem 0 0;
}
.news {
  max-width: 60rem;
  margin: 3rem auto 0;
}
.news__title { font-size: 1.35rem; text-align: center; margin-bottom: 1.25rem; }
.news__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0; padding: 0;
  list-style: none;
}
.news__list li {
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--gold);
  background: var(--cream);
  border-radius: 0 12px 12px 0;
}
.news__source {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.news__list a { font-weight: 700; }


/* ==========================================================================
   PART 9: TEACHING NUMBERS
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}
.stat {
  padding: 1.4rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--clay);
}
.stat__label { display: block; margin-top: 0.35rem; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.4; }


/* ==========================================================================
   PART 10: PEOPLE
   ========================================================================== */
.pi {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 62rem;
  margin: 0 auto;
}
.pi__photo-wrap { position: relative; }
.pi__photo-wrap::before {          /* warm offset shape behind the photo */
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 50% 50% 46% 54% / 55% 45% 55% 45%;
  background: var(--gold);
  opacity: 0.55;
}
.pi__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
}
.pi__role {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}
.pi__name { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin-bottom: 0.3rem; }
.pi__title { font-weight: 700; color: var(--teal); }
.pi__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.25rem;
  background: var(--cream);
  border-radius: var(--radius);
  text-align: center;
}
.person__photo {
  width: 136px; height: 136px;
  margin-bottom: 1rem;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}
.person__name { display: block; margin-bottom: 0.2rem; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; }
.person__role {
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
}
.person__bio { display: block; margin: 0; font-size: 0.93rem; color: var(--ink-soft); }

.person--join {
  justify-content: center;
  border: 2px dashed var(--clay);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}
.person--join:hover { background: var(--cream); color: var(--ink); text-decoration: none; transform: translateY(-3px); }
.person--join__icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--clay);
  color: var(--white);
}
.person--join__icon .icon { width: 34px; height: 34px; }
.person--join .person__name { color: var(--clay); }

.alumni { max-width: 46rem; margin: 0 auto; }


/* ==========================================================================
   PART 11: JOIN & CONTACT
   ========================================================================== */
.join-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.join-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.9rem;
  background: var(--cream);
  border-radius: var(--radius);
}
.join-card h3 { font-size: 1.45rem; }
.join-card > p { color: var(--ink-soft); }
.join-card__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--clay);
  color: var(--white);
}
.join-card__icon--teal { background: var(--teal); }
.join-card__icon .icon { width: 28px; height: 28px; }
.join-card__how { color: var(--ink) !important; }
.join-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.steps {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 0.85rem 2.6rem;
  font-size: 0.97rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--clay);
  color: var(--clay);
  font-weight: 800;
  font-size: 0.9rem;
}

.checks { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.checks li {
  position: relative;
  padding: 0 0 0.55rem 1.9rem;
  font-size: 0.97rem;
}
.checks li::before {          /* check mark */
  content: "";
  position: absolute;
  left: 0.2rem; top: 0.3rem;
  width: 0.5rem; height: 0.9rem;
  border: solid var(--teal);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  overflow: hidden;
  background: var(--teal-dark);
  color: var(--white);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
}
.contact-panel__img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.contact-panel__body { padding: clamp(2rem, 4vw, 3rem); }
.contact-panel__title { color: var(--white); font-size: 1.9rem; margin-bottom: 1.5rem; }
.contact-panel a { color: var(--gold-soft); }
.contact-panel a:hover { color: var(--white); }
.contact-panel :focus-visible { outline-color: var(--gold-soft); }

.contact-list { display: grid; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-soft);
}
.contact-list__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand-deep);
}
.contact-list address { font-style: normal; }


/* ==========================================================================
   PART 12: FOOTER
   ========================================================================== */
.site-footer {
  padding: 3.5rem 0 2rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.95rem;
}
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--gold-soft); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-logo {
  margin-bottom: 0.4rem;
  font-family: var(--font-script);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold-soft);
}
.footer-brand p:last-child { margin: 0; opacity: 0.9; }
.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0 2.5rem;
  margin: 0; padding: 0;
  list-style: none;
}
.footer-nav a { display: inline-block; padding: 0.6rem 0; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { display: inline-block; padding: 0.7rem 0; }
.credits p a { display: inline; padding: 0; }
.credits { max-width: 40rem; }
.credits summary { padding: 0.7rem 0; cursor: pointer; color: var(--gold-soft); font-weight: 600; }
.credits p { margin-top: 0.6rem; opacity: 0.9; }


/* ==========================================================================
   PART 13: SMALL SCREENS & ACCESSIBILITY PREFERENCES
   ========================================================================== */

/* Tablets and small laptops */
@media (max-width: 1080px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Switch to the ☰ menu button */
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    padding: 0.5rem 16px 1.25rem;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(42, 35, 32, 0.12);
  }
  .js .menu-open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .js .site-nav a { padding: 0.8rem 1rem; border-radius: 12px; font-size: 1.05rem; color: var(--ink); }
  .js .site-nav a:hover { background: var(--sand); }
  .js .site-nav a.is-active { background: var(--clay); color: var(--white); }
.site-header .site-nav a.is-active:hover { background: var(--clay-dark); color: var(--white); }
  .js .site-nav .nav-cta { margin: 0.5rem 0 0; text-align: center; border-color: var(--clay); color: var(--clay); }
  .js .site-nav .nav-cta.is-active { color: var(--white); }

  .card-grid--3,
  .news__list { grid-template-columns: 1fr; }
  .pi { grid-template-columns: 1fr; text-align: center; }
  .pi__photo-wrap { max-width: 240px; margin: 0 auto; }
  .pi__links { justify-content: center; }
  .join-grid,
  .contact-panel { grid-template-columns: 1fr; }
  .contact-panel__img { max-height: 280px; }
}

/* Phones */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding-left: 16px; padding-right: 16px; }
  .focus-grid,
  .card-grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat { padding: 1.1rem 0.75rem; }
  .stat__num { font-size: 2.1rem; }
  .stat__label { font-size: 0.85rem; }
  .hero__actions .btn { width: 100%; max-width: 300px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .join-card { padding: 1.5rem 1.25rem; }
  .footer-nav ul { grid-template-columns: repeat(2, auto); gap: 0 1.5rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .person { padding: 1.25rem 0.75rem; }
  .person__photo { width: 96px; height: 96px; }
  .person__name { font-size: 1.05rem; }
  .person__role { font-size: 0.72rem; }
  .person__bio { font-size: 0.86rem; }
  .person--join__icon { width: 56px; height: 56px; }
}

/* If JavaScript is off, keep the menu visible and the header solid */
.no-js .site-header { position: static; background: var(--white); color: var(--ink); height: auto; min-height: var(--header-h); }
.no-js .hero { padding-top: 3rem; }
.no-js .header-inner { flex-wrap: wrap; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.no-js .site-nav ul { flex-wrap: wrap; }
.no-js .logo { color: var(--clay); }
.no-js .nav-toggle { display: none !important; }

/* Respect "reduce motion" system settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .btn:hover, .person--join:hover { transform: none; }
}

/* Printing */
@media print {
  .site-header, .hero__actions, .nav-toggle, .skip-link { display: none; }
  .hero { min-height: 0; color: var(--ink); background: none; padding: 1rem 0; }
  .hero::before, .hero__img { display: none; }
  .hero__title, .hero__kicker { color: var(--ink); }
  .contact-panel, .site-footer { background: none; color: var(--ink); box-shadow: none; }
  .contact-panel__img { display: none; }
  .contact-panel__title, .contact-panel a, .site-footer a, .footer-logo, .contact-list__label { color: var(--ink); }
}
