/* ============================================
   REMOTE Lab — Design Tokens
   ============================================ */

:root {
  --ink: #12181F;
  --paper: #F7F5F1;
  --text: #1B2430;
  --text-soft: #4B5563;
  --signal: #3E6259;
  --signal-soft: #E7EDEA;
  --clay: #C97A4A;
  --rule: #D8D3C8;
  --rule-dark: #2A323C;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { max-width: 62ch; color: var(--text-soft); }

.lede {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 56ch;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--ink);
  color: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  flex-wrap: wrap;
}

nav.primary-nav a {
  text-decoration: none;
  color: rgba(247,245,241,0.75);
  font-size: 0.95rem;
  transition: color 0.15s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav.primary-nav a:hover,
nav.primary-nav a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--signal);
}

nav.primary-nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--clay);
}

.nav-toggle {
  display: none;
}

@media (max-width: 640px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  nav.primary-nav ul {
    gap: 1rem 1.25rem;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(247,245,241,0.75);
  margin-top: 6rem;
}

.site-footer .wrap {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer h4 {
  color: var(--paper);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.site-footer a {
  text-decoration: none;
  color: rgba(247,245,241,0.75);
}

.site-footer a:hover {
  color: var(--paper);
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid var(--rule-dark);
  font-size: 0.82rem;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 720px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sections / rules ---------- */

section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.rule-top {
  border-top: 1px solid var(--rule);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--signal);
  margin-bottom: 0.75rem;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 800px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ---------- Buttons / links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid currentColor;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--paper);
}

.btn-primary:hover {
  background: #325149;
}

.btn-ghost {
  color: var(--paper);
  border-color: rgba(247,245,241,0.4);
}

.btn-ghost:hover {
  border-color: var(--paper);
}

.text-link {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(62,98,89,0.4);
}

.text-link:hover {
  text-decoration-color: var(--signal);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  color: var(--paper);
  margin-bottom: 1.25rem;
}

.hero p {
  color: rgba(247,245,241,0.8);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-diagram {
  width: 100%;
  height: auto;
}

/* ---------- REMOTE acronym ---------- */

.acronym-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

@media (max-width: 640px) {
  .acronym-list {
    grid-template-columns: 1fr;
  }
}

.acronym-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.acronym-letter {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--signal);
  line-height: 1;
  min-width: 1.2ch;
}

.acronym-word {
  font-size: 1rem;
  color: var(--text);
}

/* ---------- Cards / list rows (no shadow) ---------- */

.plain-list {
  list-style: none;
}

.plain-row {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.plain-row:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 720px) {
  .plain-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ---------- Team directory ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--signal-soft);
  filter: grayscale(15%);
}

.team-member > a {
  display: block;
  text-decoration: none;
}

.team-name {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.team-affil {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.team-name a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.team-name a:hover {
  border-bottom-color: var(--signal);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--signal-soft);
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin-bottom: 0.25rem;
}

/* ---------- Utility ---------- */

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
