/* Science2Market — Step 1 placeholder site */
:root {
  --teal: #1A7F7A;
  --teal-dark: #0F5257;
  --teal-pale: #E8F3F2;
  --text: #1E2B2A;
  --line: #E1E8E7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 26px; padding-bottom: 26px;
}
.logo { flex: 0 1 507px; min-width: 0; }
.logo img { width: 100%; max-width: 507px; height: auto; }
.site-nav { display: flex; gap: 10px; flex: none; }
.site-nav a {
  text-decoration: none; font-size: 15px; line-height: 1;
  padding: 11px 18px; border: 1.5px solid var(--teal); border-radius: 4px;
  color: var(--teal); background: #fff;
  transition: background .2s, color .2s;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] {
  background: var(--teal); color: #fff;
}

/* Main */
main { padding: 64px 0 80px; }
h1 { color: #2E9E98; font-size: 32px; line-height: 1.25; margin: 8px 0 20px; } /* top 8px lines up with the larger home strapline */
.home h1 { font-size: 40px; margin: 0 0 80px; }
.intro {
  display: grid; grid-template-columns: 1fr 330px;
  column-gap: 48px; row-gap: 16px; align-items: center;
}
.intro p { margin: 0; max-width: none; font-size: 18px; line-height: 1.75; }
.intro img { width: 330px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
h2 { color: var(--teal-dark); font-size: 21px; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 18px; max-width: 760px; }
.home p { line-height: 1.75; margin-bottom: 24px; }

/* Home photo row */
.photo-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 32px 0 36px;
}
.home .photo-row { gap: 24px; margin: 48px 0 52px; }
.photo-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }

/* Team */
.member {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.member:last-child { border-bottom: 0; }
.member img { width: 300px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }
.member p { margin: 0; }
.member strong { font-size: 21px; font-weight: 700; color: var(--teal-dark); } /* matches the old name headings */
.member:nth-child(even) { grid-template-columns: 1fr 300px; }
.member:nth-child(even) img { order: 2; }

/* Contact */
.contact-box {
  background: var(--teal-pale); border-radius: 6px;
  max-width: 520px; margin: 24px auto 0; padding: 36px 40px; text-align: center;
}
.contact-box h2 { margin-bottom: 16px; }
.contact-box p { margin: 0 auto; }
.contact-box address { font-style: normal; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: #5B6B6A; }
.site-footer .wrap { padding-top: 20px; padding-bottom: 24px; }

/* Header: stack logo above buttons on tablets and phones */
@media (max-width: 920px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
  .logo { flex: none; width: 100%; }
  .logo img { width: 100%; max-width: 507px; }
}

/* Phones */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  main { padding: 32px 0 48px; }
  h1 { font-size: 25px; margin-top: 3px; }
  .home h1 { font-size: 28px; margin: 0 0 40px; }
  .intro { grid-template-columns: 1fr; row-gap: 20px; }
  .intro img { width: 100%; margin-bottom: 16px; }
  .home .photo-row { gap: 16px; margin: 32px 0 36px; }
  .photo-row { grid-template-columns: 1fr; }
  .member, .member:nth-child(even) { grid-template-columns: 1fr; gap: 16px; }
  .member:nth-child(even) img { order: 0; }
  .member img { width: 100%; max-width: 300px; }
  .contact-box { padding: 28px 20px; }
}
