@charset "UTF-8";

/* ==========================================================================
   Pure Print Archeology — placeholder landing page
   i2ADS / FBAUP

   0. Fonts
   1. Design tokens (light + dark)
   2. Reset & base
   3. Typography
   4. Layout helpers
   5. Header & controls
   6. Hero
   7. Sections
   8. Footer
   9. Motion, print, reduced-motion

   Mobile-first: base rules target ~360px. Everything above is
   progressive enhancement via min-width media queries.
   ========================================================================== */


/* ==========================================================================
   0. FONTS — self-hosted variable woff2 (no third-party requests)
   Display: Montserrat        — geometric sans, carries the group's identity
   Text:    Source Serif 4    — screen-tuned serif, high legibility at 17–19px
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sourceserif-latin-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sourceserif-latin-ext-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/sourceserif-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/sourceserif-latin-ext-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ==========================================================================
   1. DESIGN TOKENS
   Light = warm paper. Dark = press-room ink.
   Accent is the students' violet, nudged for contrast on each ground.
   ========================================================================== */

:root {
  /* Type */
  --font-display: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-text: 'Source Serif 4', Charter, 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  /* Fluid scale — clamp(min, preferred, max) */
  --step--1: clamp(0.8125rem, 0.78rem + 0.17vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.01rem + 0.28vw, 1.1875rem);
  --step-1: clamp(1.1875rem, 1.10rem + 0.42vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.30rem + 1.00vw, 2.125rem);
  --step-3: clamp(1.875rem, 1.50rem + 1.90vw, 3rem);
  /* Sized so the longest word, ARCHEOLOGY, still clears the gutter at 320px */
  --step-4: clamp(2.375rem, 0.95rem + 7.05vw, 7rem);

  /* Space — 4px rhythm, fluid at the large end */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: clamp(3.5rem, 2.4rem + 5vw, 6rem);
  --sp-9: clamp(5rem, 3rem + 9vw, 9rem);

  /* Measure & gutters */
  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 76rem;

  /* Colour — light (default) */
  --paper: #fbfaf7;
  --paper-2: #f2efe8;
  --ink: #16151a;
  --ink-soft: #52505c;
  --rule: #ddd8ce;
  --accent: #4a3fe0;
  --accent-hi: #5b4ff2;

  /* Always-dark surfaces (footer, hero) keep the identity's black */
  --night: #101014;
  --night-2: #1b1b22;
  --night-ink: #edebe6;
  --night-soft: #a5a1ac;
  --night-rule: #2e2e38;
  --night-accent: #9e95ff;

  --grain-blend: multiply;
  --grain-opacity: 0.05;

  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

/* Dark — follows the OS unless the user has chosen light explicitly */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #101014;
    --paper-2: #191921;
    --ink: #edebe6;
    --ink-soft: #a5a1ac;
    --rule: #2e2e38;
    --accent: #9e95ff;
    --accent-hi: #b3abff;
    --grain-blend: screen;
    --grain-opacity: 0.045;
    color-scheme: dark;
  }
}

/* Dark — chosen explicitly with the toggle */
:root[data-theme='dark'] {
  --paper: #101014;
  --paper-2: #191921;
  --ink: #edebe6;
  --ink-soft: #a5a1ac;
  --rule: #2e2e38;
  --accent: #9e95ff;
  --accent-hi: #b3abff;
  --grain-blend: screen;
  --grain-opacity: 0.045;
  color-scheme: dark;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.62;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

/* Paper grain — ties the two themes to the subject matter. Never interactive. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img {
  height: auto;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hi);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100%;
  z-index: 200;
  padding: var(--sp-3) var(--sp-4);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus-visible {
  top: var(--sp-4);
  color: #fff;
}

/* --- Language switching -------------------------------------------------
   Both languages live in the markup. CSS shows one; JS only flips the
   attribute, so the page still reads correctly with JavaScript disabled.
   The switch's own buttons keep their lang attribute (screen readers should
   pronounce "PT"/"EN" correctly) but are exempt from being hidden. */
:root[data-lang='pt'] [lang='en']:not([data-set-lang]) {
  display: none;
}

:root[data-lang='en'] [lang='pt']:not([data-set-lang]) {
  display: none;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 650;
}

cite {
  font-style: italic;
}

sup {
  font-size: 0.65em;
  vertical-align: 0.45em;
  line-height: 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

/* Hairline rule that fills the rest of the line — keeps a minimum length
   so it never collapses to nothing when the label wraps */
.eyebrow::after {
  content: '';
  flex: 1 0 3rem;
  height: 1px;
  background: var(--rule);
}

.eyebrow--invert {
  color: var(--night-soft);
}

.eyebrow--invert::after {
  background: var(--night-rule);
}

.section__title {
  font-size: var(--step-3);
  max-width: 18ch;
  margin-bottom: var(--sp-5);
}

.section__title--sm {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: none;
  margin-bottom: var(--sp-4);
}

.prose p + p {
  margin-top: var(--sp-4);
}

.prose {
  max-width: var(--measure);
  color: var(--ink);
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sp-8);
  border-top: 1px solid var(--rule);
}

.section--about {
  border-top: 0;
  padding-block-start: var(--sp-9);
}


/* ==========================================================================
   5. HEADER & CONTROLS
   ========================================================================== */

.site-head {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 90;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
  background-color: var(--paper);
  border-bottom: 1px solid var(--rule);
}

/* Transparent while it sits over the hero photograph */
.site-head[data-over-hero='true'] {
  background-color: transparent;
  border-bottom-color: transparent;
  color: #fff;
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--sp-3) var(--gutter);
  min-height: 3.5rem;
}

/* --- Wordmark --- */
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
}

.wordmark__abbr {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wordmark__dot {
  color: var(--accent);
}

.site-head[data-over-hero='true'] .wordmark__dot {
  color: var(--night-accent);
}

.wordmark__full {
  display: none;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* --- Controls --- */
.controls {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.switch {
  display: flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px;
  opacity: 0.85;
}

.switch__label {
  display: none;
}

.switch__btn {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  /* 44px tall hit area, visually compact */
  min-height: 2.25rem;
  min-width: 2.5rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  color: inherit;
  opacity: 0.6;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.switch__btn:hover {
  opacity: 1;
}

.switch__btn[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}

.site-head[data-over-hero='true'] .switch__btn[aria-pressed='true'] {
  background: #fff;
  color: var(--night);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: inherit;
  transition: background-color 0.25s var(--ease);
}

.theme-toggle:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.theme-toggle__icons {
  display: grid;
  place-items: center;
}

.theme-toggle__icons > svg {
  grid-area: 1 / 1;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}

/* Show the icon for the state you would switch TO */
.icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

:root[data-theme='dark'] .icon-sun {
  opacity: 1;
  transform: none;
}

:root[data-theme='dark'] .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-sun {
    opacity: 1;
    transform: none;
  }

  :root:not([data-theme='light']) .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
  }
}

@media (min-width: 40rem) {
  .wordmark__full {
    display: block;
  }

  .switch__label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
    padding-inline: 0.6rem 0.2rem;
  }
}


/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--sp-9) var(--gutter) var(--sp-8);
  background: var(--night);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

/* Two scrims, each doing one job: one anchored to the bottom so the type
   always has a dark ground whatever the photograph does, one at the top
   for the header. The photograph stays open in the middle. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top,
      rgba(8, 8, 12, 0.95) 0%,
      rgba(8, 8, 12, 0.88) 24%,
      rgba(8, 8, 12, 0.45) 48%,
      rgba(8, 8, 12, 0) 70%),
    linear-gradient(to bottom,
      rgba(8, 8, 12, 0.6) 0%,
      rgba(8, 8, 12, 0.18) 14%,
      rgba(8, 8, 12, 0) 26%);
}

.hero__body {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.hero__eyebrow {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--sp-4);
}

.hero__eyebrow::after {
  background: rgba(255, 255, 255, 0.28);
  max-width: 6rem;
}

.hero__title {
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.hero__line {
  display: block;
}

.hero__line--accent {
  color: var(--night-accent);
}

.hero__lede {
  max-width: 34ch;
  font-size: var(--step-1);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.hero__cue {
  position: absolute;
  inset-inline-end: var(--gutter);
  inset-block-end: var(--sp-6);
  color: rgba(255, 255, 255, 0.55);
  display: none;
}

@media (min-width: 48rem) {
  .hero__title {
    letter-spacing: -0.045em;
  }

  .hero__lede {
    max-width: 44ch;
  }

  .hero__cue {
    display: block;
    animation: cue 2.6s var(--ease) infinite;
  }
}

/* One orchestrated entrance, staggered */
.hero__eyebrow,
.hero__line,
.hero__lede {
  animation: rise 0.9s var(--ease) both;
}

.hero__line:nth-child(1) { animation-delay: 0.08s; }
.hero__line:nth-child(2) { animation-delay: 0.16s; }
.hero__line:nth-child(3) { animation-delay: 0.24s; }
.hero__lede { animation-delay: 0.36s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.9rem);
  }
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(0.35rem); opacity: 0.9; }
}


/* ==========================================================================
   7. SECTIONS
   ========================================================================== */

/* --- About --- */
.about__grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 56rem) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: var(--sp-7);
    align-items: start;
  }

  .section__title {
    margin-bottom: 0;
    position: sticky;
    top: 6rem;
  }
}

/* --- Research lines --- */
.lines {
  display: grid;
  gap: 0;
  counter-reset: line;
}

.line {
  padding-block: var(--sp-5);
  border-top: 1px solid var(--rule);
}

.line:first-child {
  border-top: 0;
  padding-block-start: 0;
}

.line__num {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-2);
}

.line__title {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: var(--sp-2);
}

.line__text {
  color: var(--ink-soft);
  max-width: 52ch;
}

@media (min-width: 48rem) {
  .lines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-6);
  }

  .line {
    border-top: 1px solid var(--rule);
    padding-block: var(--sp-5) 0;
  }

  .line:first-child {
    border-top: 1px solid var(--rule);
    padding-block-start: var(--sp-5);
  }
}

/* --- Publications --- */
.pubs {
  margin-bottom: var(--sp-7);
  max-width: var(--measure);
}

/* Two columns so the dates always align, like a contents page */
.pubs li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 var(--sp-4);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--rule);
  line-height: 1.4;
}

.pubs li:first-child {
  border-top: 1px solid var(--rule);
}

.pubs__year {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- Team --- */
.team {
  display: grid;
  gap: var(--sp-5);
}

.team__group dt {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
}

.team__group dd {
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.55;
  max-width: 48ch;
}

@media (min-width: 48rem) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6) var(--sp-7);
  }
}

/* --- Notice --- */
.section--notice {
  padding-block-end: var(--sp-9);
}

.notice {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-5);
}

.notice__tag {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.notice__text {
  max-width: 48ch;
  color: var(--ink-soft);
  margin-bottom: var(--sp-5);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 2.875rem;
  padding: 0 var(--sp-5);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn__arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(0.2rem);
}

@media (min-width: 48rem) {
  .notice {
    padding: var(--sp-7);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'tag tag'
      'text btn';
    align-items: end;
    gap: var(--sp-5) var(--sp-6);
  }

  .notice__tag { grid-area: tag; margin-bottom: 0; }
  .notice__text { grid-area: text; margin-bottom: 0; }
  .btn { grid-area: btn; }
}


/* ==========================================================================
   8. FOOTER — always the identity's black, in both themes
   (the institutional logos are white-on-transparent PNGs)
   ========================================================================== */

.site-foot {
  background: var(--night);
  color: var(--night-ink);
  /* In dark mode the page and the footer share the same black — the hairline
     is what tells you the footer has started */
  border-top: 1px solid var(--night-rule);
  padding-block: var(--sp-8) var(--sp-6);
}

.foot__grid {
  display: grid;
  gap: var(--sp-7);
}

.foot__address {
  font-style: normal;
  line-height: 1.55;
  color: var(--night-soft);
}

.foot__address strong {
  color: var(--night-ink);
  font-weight: 650;
}

.foot__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  color: var(--night-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--night-rule);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.foot__link:hover {
  color: var(--night-accent);
  border-bottom-color: var(--night-accent);
}

.foot__address + .foot__link {
  margin-top: var(--sp-4);
}

.foot__list li + li {
  margin-top: var(--sp-1);
}

.foot__social-label {
  margin-top: var(--sp-6);
}

.foot__social {
  display: flex;
  gap: var(--sp-2);
}

.foot__social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--night-rule);
  border-radius: 999px;
  color: var(--night-ink);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.foot__social a:hover {
  color: var(--night);
  background: var(--night-accent);
  border-color: var(--night-accent);
}

.foot__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5) var(--sp-6);
}

.foot__logos img {
  width: auto;
  height: 2rem;
  object-fit: contain;
  opacity: 0.9;
}

.foot__logos img:nth-child(4) { height: 2.25rem; }
.foot__logos img:nth-child(5) { height: 2rem; }

.foot__base {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--night-rule);
  display: grid;
  gap: var(--sp-2);
  font-size: var(--step--1);
  color: var(--night-soft);
}

.foot__credit {
  max-width: 52ch;
}

@media (min-width: 48rem) {
  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot__logos img { height: 2.25rem; }
}

@media (min-width: 64rem) {
  .foot__grid {
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: var(--sp-6);
  }

  .foot__base {
    grid-template-columns: auto 1fr;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--sp-5);
  }

  .foot__credit {
    text-align: right;
  }
}


/* ==========================================================================
   9. MOTION, PRINT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body::after,
  .site-head,
  .hero__cue,
  .hero__media {
    display: none !important;
  }

  .hero {
    min-height: auto;
    color: #000;
    background: none;
    padding-block: 0 2rem;
  }

  .hero::before { display: none; }
  .hero__lede, .hero__eyebrow { color: #000; }
  .hero__line--accent { color: #000; }

  .site-foot {
    background: none;
    color: #000;
  }

  .section { break-inside: avoid; }

  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    word-break: break-all;
  }
}
