/* ===== Colours and sizes: change these to restyle the whole page ===== */
:root {
  --night: #081422;          /* fallback background behind the aurora */
  --panel: rgba(8, 20, 34, 0.82);
  --text: #eef3f6;
  --muted: #a8bccb;
  --accent: #9fe6d0;         /* soft aurora green for links */
  --line: rgba(238, 243, 246, 0.16);

  --font: "Century Gothic", CenturyGothic, AppleGothic, "URW Gothic", sans-serif;

  --page-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ===== Base ===== */
* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background-color: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}

/* Aurora background, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--night) url("media/Aurora.png") center / cover no-repeat;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-weight: normal; }

/* ===== Header: logo left, links right ===== */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
}

.logo { height: 2.75rem; width: auto; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: 0.95rem; }
.site-nav a { color: var(--text); }
.site-nav a:hover { color: var(--accent); }

/* ===== Introduction: fills the first screen ===== */
.intro {
  min-height: calc(100vh - 6rem);
  min-height: calc(100svh - 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
}

.intro h1 {
  font-family: var(--font);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 12em;
}

.intro-text {
  margin: 1.5rem 0 0;
  max-width: 34em;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text);
}

.intro-contact { margin: 2rem 0 0; color: var(--muted); }

/* ===== Lower content sits on a darker panel for readability ===== */
.content {
  background: linear-gradient(to bottom, rgba(8, 20, 34, 0) 0, var(--panel) 6rem);
}

.content > section {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 4rem var(--gutter);
  scroll-margin-top: 1rem;
}

.content h2 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 1.5rem;
}

/* About */
.about p { max-width: 38em; font-size: 1.125rem; margin: 0; }

/* ===== Team grid: 4 → 2 → 1 columns (no JavaScript) ===== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2.5rem;
}
@media (min-width: 560px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Line up names, roles and bullet lists across each row of the grid */
@supports (grid-template-rows: subgrid) {
  .person {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
    justify-items: center;
    align-items: start;
    align-content: start;
  }
}

.portrait {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(238, 243, 246, 0.06);
  margin-bottom: 1.25rem;
}

.person h3 {
  font-family: var(--font);
  font-size: 1.35rem;
  line-height: 1.25;
}
.honours { display: block; font-family: var(--font); font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

.role { margin: 0.75rem 0 0; font-weight: 600; }
.affiliation { margin: 0.15rem 0 0; font-size: 0.875rem; color: var(--muted); }

.person ul {
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  text-align: left;
  font-size: 0.875rem;
  color: var(--muted);
  width: 100%;
}
.person li { padding-left: 1rem; position: relative; margin-bottom: 0.5rem; }
.person li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* Launching 2027 */
.launch { text-align: center; }
.launch p {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
}

/* Contact */
.contact p { margin: 0 0 1rem; font-size: 1.25rem; }
.contact address { font-style: normal; color: var(--muted); }

/* ===== Footer ===== */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 2rem var(--gutter);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.site-footer p { margin: 0.25rem 0; }
.site-footer a { color: var(--muted); text-decoration: underline; }
