/*
 * etpcampus.com: the Campus Map design (Oct 26).
 *
 * One stylesheet, and nothing from anywhere else: the CSP allows styles, images and fonts
 * from this site only, and no inline styles at all. The fonts are self-hosted copies of
 * Bricolage Grotesque and Figtree (SIL Open Font License; the licenses are in /fonts/).
 *
 * Light only for now. The campus illustration is drawn for daylight, and a dark theme
 * would need a night version of it rather than inverted colors.
 */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #143d33;
  --text: #22302c;
  --body: #3d4c47;
  --muted: #4a5a55;
  --on-ink: #d4e4dd;
  --on-ink-muted: #c7ddd3;
  --sign: #0f6b4f;
  --sign-hover: #0b5640;
  --sky: #d8ecf6;
  --mint: #eef5f1;
  --line: #e2ebe7;
  --dash: #9db3ab;
  --white: #ffffff;
  --ok: #157347;
  --ok-ink: #115c38;
  --ok-soft: #e3f3ea;
  --minor: #9a5a00;
  --minor-ink: #8a4700;
  --minor-soft: #fdf0de;
  --unknown: #5f6b7a;
  --unknown-ink: #3b4450;
  --unknown-soft: #eceff2;
  --draft: #b91c1c;
  --display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 18px/1.6 var(--sans);
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.35rem);
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ink);
  font-weight: 600;
}

a:hover {
  color: var(--sign);
}

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: 900px;
}

.wrap--wide {
  max-width: 1240px;
}

.section {
  padding-top: 72px;
  padding-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--white);
}

.draft-banner {
  margin: 0;
  padding: 8px 16px;
  background: var(--draft);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

/* Header and footer */

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark__mark {
  fill: var(--sign);
}

.site-header ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a {
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

main:has(> .band--ink:last-child) + .site-footer {
  margin-top: 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 40px;
  padding-top: 32px;
  padding-bottom: 44px;
}

.site-footer p {
  margin: 0;
}

/* Hero */

.hero {
  padding: 36px 0 0;
  text-align: center;
}

.hero--plain {
  padding-bottom: 8px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 600;
}

.lead {
  max-width: 40rem;
  color: var(--body);
  font-size: 1.2rem;
}

.hero .lead {
  margin-left: auto;
  margin-right: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 24px;
}

.actions--center {
  justify-content: center;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.button--primary {
  background: var(--sign);
  color: var(--white);
}

.button--primary:hover {
  background: var(--sign-hover);
  color: var(--white);
}

.button--light {
  background: var(--white);
  color: var(--ink);
}

.button--light:hover {
  background: var(--mint);
  color: var(--ink);
}

/* The campus map */

.map {
  padding-top: 36px;
}

.map__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px 24px 0 0;
  background: var(--sky);
}

.map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 28px;
  border-radius: 0 0 24px 24px;
  background: var(--ink);
  list-style: none;
}

.legend-item {
  display: flex;
  flex: 1 1 280px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  color: var(--on-ink);
}

.legend-item p {
  margin: 0;
}

.legend-item__place {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-ink-muted);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pin {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 50%;
  background: var(--sign);
  box-shadow: 0 0 0 2px var(--white);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
}

.legend-item__name {
  margin: 0;
  font-size: 1.85rem;
}

.legend-item__name a,
.legend-item__link,
.band--ink a {
  color: var(--white);
}

.legend-item__link {
  margin-top: auto;
}

/* The example dashboard */

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px 56px;
}

.split__text {
  flex: 1 1 380px;
  min-width: 0;
}

.kicker {
  margin-bottom: 10px;
  color: var(--sign);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.display {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.example {
  flex: 1 1 520px;
  min-width: 0;
  margin: 0;
}

.example__card {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 10px 10px 0 var(--sky);
}

.example__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.example__tag {
  color: var(--on-ink-muted);
  font-size: 0.85rem;
}

.example__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.example__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.example__row:last-child {
  border-bottom: 0;
}

.example__name {
  flex: 1 1 150px;
  font-weight: 700;
}

.example__note {
  flex-basis: 100%;
  padding-left: 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.icon--ok {
  color: var(--ok);
}

.icon--minor {
  color: var(--minor);
}

.icon--unknown {
  color: var(--unknown);
}

.status {
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.status--ok {
  background: var(--ok-soft);
  color: var(--ok-ink);
}

.status--minor {
  background: var(--minor-soft);
  color: var(--minor-ink);
}

.status--unknown {
  background: var(--unknown-soft);
  color: var(--unknown-ink);
}

.example figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cards, plots still to be built, and bands */

.cards,
.plots,
.elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.cards li,
.plots li {
  flex: 1 1 280px;
  min-width: 0;
  padding: 22px 24px;
  border-radius: 16px;
}

.cards li {
  background: var(--white);
}

.cards--outlined li {
  border: 2px solid var(--line);
}

.plots li {
  border: 2px dashed var(--dash);
}

.cards p,
.plots p {
  margin: 0;
  color: var(--body);
}

.plots h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.band {
  margin-top: 72px;
}

.band--mint {
  background: var(--mint);
  padding-bottom: 64px;
}

.band--ink {
  background: var(--ink);
  color: var(--on-ink);
  padding-bottom: 72px;
}

.band--ink h2 {
  color: var(--white);
}

.band--ink .lead {
  color: var(--on-ink);
}

.cta {
  text-align: center;
}

.cta .lead {
  margin-left: auto;
  margin-right: auto;
}

.disclosure {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.disclosure__box {
  flex: 1 1 380px;
  min-width: 0;
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
}

.disclosure__box h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.disclosure__box ul {
  margin: 0;
  padding-left: 22px;
  color: var(--body);
}

/* Who's behind it */

.about {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px 56px;
}

.about__text {
  flex: 1 1 520px;
  min-width: 0;
  color: var(--body);
  font-size: 1.1rem;
}

.about__cards {
  display: flex;
  flex: 1 1 360px;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.about__team {
  flex: 1 1 100%;
  min-width: 0;
}

.team {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person {
  display: flex;
  flex: 1 1 260px;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--mint);
}

.person p {
  margin: 0;
}

.person strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
}

.person p span {
  color: var(--muted);
  font-size: 0.95rem;
}

.person__photo {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.person__photo--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c8d9d1;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
}

.company {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: 16px;
}

.company strong {
  color: var(--ink);
}

.company span {
  color: var(--muted);
}

/* Tool pages */

.tool-hero {
  overflow: hidden;
  padding-top: 28px;
  background: var(--sky);
}

.breadcrumb {
  margin-bottom: 24px;
  color: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
}

.tool-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 48px;
}

.tool-hero__text {
  flex: 1 1 520px;
  min-width: 0;
  padding-bottom: 56px;
}

.tool-hero .lead,
.tool-hero .note {
  color: #2f3e39;
}

.tool-hero__art {
  display: block;
  flex: 0 1 380px;
  min-width: 0;
  width: 100%;
  max-width: 380px;
  height: auto;
}

.place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.place__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5fd39a;
}

.place--coming-soon .place__dot {
  background: var(--white);
  opacity: 0.6;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 36px 0 0;
  padding: 0;
  border-top: 4px dashed #c4d6cd;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
  padding-top: 38px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -26px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sign);
  box-shadow: 0 0 0 6px var(--white);
  color: var(--white);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
}

.steps p {
  margin: 0;
  color: var(--body);
}

.elsewhere li {
  flex: 1 1 340px;
  min-width: 0;
}

.elsewhere a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: 16px;
  color: var(--body);
  font-weight: 400;
  text-decoration: none;
}

.elsewhere a:hover {
  border-color: var(--sign);
}

.elsewhere strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.6rem;
}

.elsewhere__place {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prose {
  max-width: 44rem;
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  .map__legend {
    padding: 22px 18px;
  }

  .section {
    padding-top: 56px;
  }
}
