/* Light purple theme with 3:4 portrait support */
:root {
  --fg: #1f2937;       /* slate text */
  --accent: #1d4ed8;   /* blue accent */
  --link: #1d4ed8;
  --linkHover: #1e40af;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);

  /* Light-blue background with soft cloud-like blobs */
  background-color: #7fc8ff;
  background-image:
    radial-gradient(120px 80px at 12% 18%, rgba(255,255,255,0.60) 0%, rgba(255,255,255,0.0) 70%),
    radial-gradient(180px 110px at 32% 26%, rgba(255,255,255,0.50) 0%, rgba(255,255,255,0.0) 72%),
    radial-gradient(160px 100px at 55% 16%, rgba(255,255,255,0.44) 0%, rgba(255,255,255,0.0) 72%),
    radial-gradient(210px 130px at 78% 28%, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.0) 74%),
    radial-gradient(260px 150px at 18% 62%, rgba(255,255,255,0.44) 0%, rgba(255,255,255,0.0) 76%),
    radial-gradient(220px 140px at 52% 68%, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.0) 78%),
    radial-gradient(260px 160px at 84% 72%, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.0) 78%),
    linear-gradient(180deg, #55b6ff 0%, #bfe8ff 48%, #ffffff 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
header { padding: 1rem; background: rgba(255,255,255,0.78); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(0,0,0,0.08); }
header h1 { margin: 0; font-size: 1.4rem; }

/* 4-image strip between header and Research */
.hero-image-grid {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 14px 0 6px 0;
}

.hero-grid-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 18px;
}

.hero-grid-inner img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
}

@media (max-width: 900px) {
  .hero-grid-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-grid-inner img { height: 160px; }
}

@media (max-width: 520px) {
  .hero-grid-inner { grid-template-columns: 1fr; }
  .hero-grid-inner img { height: 190px; }
}

/* Full-width featured image between header and content */
.hero-image {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: min(30vh, 300px);
  background-image: url("../images/contrails-featured-image.jpg");
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
}

@media (max-width: 700px) {
  .hero-image { height: 225px; }
}

/* Modern type + section separation */
.section { background: rgba(255,255,255,0.75); backdrop-filter: blur(6px); border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 22px; margin: 18px 0; }
.section h1, .section h2 { letter-spacing: -0.4px; }
hr.section-divider { border: 0; height: 1px; background: rgba(0,0,0,0.12); margin: 44px 0; }

/* Research cards */
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* If a research-grid contains a single card, let it span full width */
.research-grid > .research-card:only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .research-grid { grid-template-columns: 1fr; } }
.research-card { background: rgba(255,255,255,0.72); border: 1px solid rgba(29,78,216,0.18); border-radius: 14px; padding: 18px; }
.research-card h3 { margin-top: 0; }
.badge { display: inline-flex; align-items: center; gap: 10px; }
.badge .icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(29,78,216,0.10); border: 1px solid rgba(29,78,216,0.25); }
.badge .icon svg { width: 20px; height: 20px; }

/* Navigation: horizontal, no bullets */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(29,78,216,0.10);
  border: 1px solid rgba(29,78,216,0.25);
  color: var(--link);
}

.social-icon:hover {
  background: rgba(29,78,216,0.16);
  border-color: rgba(29,78,216,0.35);
  color: var(--linkHover);
}
.main-nav li { display: inline; }
header a { margin-right: 0; color: var(--link); text-decoration: none; font-weight: 600; }
header a:hover { color: var(--linkHover); text-decoration: underline; }


main { padding: 3.25rem 2rem; }

/* Make the page breathe (more vertical rhythm) */
.section { margin: 26px 0; padding: 28px; }
.section p { line-height: 1.75; }
.section ul { line-height: 1.8; }
.section h1 { margin-top: 0; margin-bottom: 12px; }
.section h2 { margin-top: 0; margin-bottom: 12px; }
.section h3 { margin-top: 18px; margin-bottom: 10px; }

footer { padding: 1rem; text-align: center; font-size: 0.9rem; color: #666; }

/* About image wrapper: 3:4 aspect ratio and sizing */
.about-photo-wrapper {
  float: left;
  width: 40%;
  max-width: 420px;
  margin: 0 20px 12px 0;
}
.about-photo-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
@media (max-width: 800px) {
  .about-photo-wrapper { float: none; width: 100%; max-width: 100%; margin: 0 0 12px 0; }
  .about-photo-wrapper img { height: auto; }
}
