/* Tricord Genomics */

:root {
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --rule: #bfdbfe;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --hero-bg: #dbeafe;
  --hero-accent: #1d4ed8;
  --hero-muted: #1e40af;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
header {
  background: var(--hero-bg);
  border-bottom: none;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 2rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.brand a { color: var(--hero-muted); }
.brand a:hover { text-decoration: none; opacity: 0.75; }

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

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav a {
  color: var(--accent);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  text-decoration: none;
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}

nav a.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}

/* ---------- Main ---------- */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  margin-bottom: 4rem;
  color: #f0fdfa;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--hero-bg);
  z-index: -1;
}

.hero .eyebrow { color: var(--hero-accent); }
.hero h1 { color: var(--ink); }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero .lede { color: var(--muted); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

h1 em { color: var(--accent); font-style: italic; }

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.55;
}

h2 {
  font-size: 1.75rem;
  font-weight: normal;
  margin-bottom: 1.25rem;
  letter-spacing: -0.005em;
  color: var(--accent-dark);
}

h3 {
  font-size: 1.15rem;
  font-weight: normal;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; max-width: 68ch; }

.section {
  padding: 2.5rem 0;
}

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

/* ---------- Services grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem 3rem;
  margin-top: 2rem;
}

.service {
  border-top: 3px solid var(--accent);
  padding-top: 1.25rem;
}

.service h3 { font-style: normal; color: var(--ink); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; }
.service p { color: var(--muted); font-size: 0.98rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.affiliates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.associates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.associate {
  border-top: 3px solid var(--accent);
  padding-top: 1.25rem;
}

.associate-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.associate-portrait {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.associate h3 {
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

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

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

.placeholder-portrait {
  aspect-ratio: 4/5;
  background: var(--accent-soft);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-style: italic;
  font-size: 0.9rem;
}

.portrait {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
}

.profile-links {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-block {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 2rem 2.25rem;
  margin-top: 2rem;
  max-width: 540px;
}

.contact-block .email {
  display: inline-block;
  font-size: 1.35rem;
  margin-top: 0.5rem;
  color: var(--accent-dark);
}

/* ---------- Footer ---------- */
footer {
  background: var(--hero-bg);
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  color: var(--hero-muted);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

footer a { color: var(--accent); }
footer a:hover { color: var(--accent-dark); text-decoration: none; }

/* placeholder note */
.placeholder-note {
  background: #fff7e6;
  border-left: 3px solid #d4a017;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: #5c4a10;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
