
:root {
  --bg: #ffffff;
  --ink: #222;
  --muted: #666;
  --brand: #1f4c8f;
  --border: #e5e7eb;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.55;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  padding: 1rem;
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  border: 2px solid var(--brand);
  padding: 0.5rem 0.75rem;
  z-index: 1000;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem;
}
.site-title {
  font-size: 1.1rem;
  margin: 0.25rem 0;
}
.site-title a { color: var(--ink); text-decoration: none; }
.site-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0.25rem 0;
  padding: 0;
}
.site-nav a {
  color: var(--brand);
  text-decoration: none;
}
.site-nav a:hover,
a:hover { text-decoration: underline; }

main { padding: 1.5rem 0 2rem; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; margin-top: 2rem; }
h3 { font-size: 1.1rem; margin-top: 1.25rem; }

.download-list {
  margin: 0.5rem 0 0 0;
  padding: 0;
  list-style: none;
}
.download-item {
  border: 1px solid var(--border);
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}
.download-link {
  font-weight: 600;
  color: var(--brand);
}
.download-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fafafa;
}
.footer-inner {
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner a { color: var(--brand); }
.muted { color: var(--muted); }

/* landing page */

.landing {
  margin: 3rem auto;
  max-width: 860px;
}

.landing-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.landing-photo {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.landing-text {
  flex: 1;
  min-width: 260px;
}

.landing-text h1 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
}

.landing-links {
  display: flex;
  gap: 1.2rem;
}

.icon-link {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.icon-link:hover {
  color: var(--brand);
}

/* consulting page */

.consult-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 1rem 0;
  transition: opacity 0.15s;
}

.consult-btn:hover {
  opacity: 0.88;
  text-decoration: none;
  color: #fff;
}

/* research page */

.research-figure {
  margin: 1.5rem 0;
}

.research-figure img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.research-figure figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 0.5rem;
}

/* figure with caption beside it */
.fig-captioned {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.fig-captioned img {
  flex: 0 0 auto;
  width: 240px;
  max-width: 240px;
}

.fig-captioned figcaption {
  flex: 1;
  min-width: 200px;
}

/* image size variants */
.research-figure.fig-full img { max-width: 100%; }
.research-figure.fig-wide img { max-width: 700px; }
.research-figure.fig-medium img { max-width: 500px; }
.research-figure.fig-small img { max-width: 360px; }

.research-figure.fig-wide figcaption { max-width: 700px; }
.research-figure.fig-medium figcaption { max-width: 500px; }
.research-figure.fig-small figcaption { max-width: 360px; }

/* side-by-side: image + text */
.research-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 1.5rem 0;
  width: 100%;
}

.research-row .research-text {
  flex: 1 1 300px;
}

.research-row .research-figure {
  flex: 0 1 340px;
  margin: 0;
}

.research-row .research-figure img {
  max-width: 100%;
}

.research-row .research-figure figcaption {
  max-width: 100%;
}

/* three-column: text + figure + caption */
.research-row-three {
  flex-wrap: nowrap;
}

.research-row-three .research-text {
  flex: 1 1 0;
  min-width: 200px;
}

.research-row-three .research-caption {
  flex: 0 1 280px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .research-row-three {
    flex-wrap: wrap;
  }
}

/* two-image gallery */
.research-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.research-gallery .research-figure {
  flex: 1;
  min-width: 260px;
  margin: 0;
}

.research-gallery .research-figure img {
  max-width: 100%;
}

.research-gallery .research-figure figcaption {
  max-width: 100%;
}

/* section dividers */
.research-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

