/* Reliably AI — monospace, minimal layout inspired by research lab sites */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #f8f6f1;
  --ink: #111111;
  --muted: #4a4a4a;
  --line: #e0ddd3;
  --accent: #1f4fff;
  --accent-soft: rgba(31, 79, 255, 0.06);
  --max-width: 780px;

  --fs-body: 15px;
  --fs-small: 13px;
  --fs-h1: 28px;
  --fs-h2: 18px;

  --lh-body: 1.9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: none;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 246, 241, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  width: 36px;
  height: 32px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-toggle svg {
  display: block;
}

/* Typography */

h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 40px 0 12px;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

strong {
  color: var(--ink);
}

small {
  font-size: var(--fs-small);
  color: var(--muted);
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--accent);
}

/* Components */

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: var(--fs-small);
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(31, 79, 255, 0.15);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--ink);
  color: #fdfdfd;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.muted {
  color: var(--muted);
}

.muted-link {
  color: var(--muted);
  text-decoration: none;
}
.muted-link:hover { color: var(--ink); }

.row { display: flex; align-items: center; }

.inner, .footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-small);
}

.prose {
  color: var(--muted);
}
.prose h2 { margin: 28px 0 8px; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.prose ul { padding-left: 18px; }
.prose li { margin: 6px 0; }

/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

/* .inner styles are defined above */

/* Form */

label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}

/* Make default inputs nice without requiring classes */
input,
textarea,
select {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fdfbf5;
  padding: 8px 10px;
  font: inherit;
  color: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Responsive */

/* Media and hero responsiveness */
.hero-visual { margin: 16px 0 28px; }
.hero-video, .hero-visual img, .hero-visual video { width: 100%; height: auto; display: block; border-radius: 8px; }

/* Avoid sticky header covering in-page anchors */
section[id] { scroll-margin-top: 72px; }

@media (max-width: 840px) {
  :root { --fs-h1: 24px; --fs-h2: 16px; }
  .section { padding: 44px 0; }
}

@media (max-width: 680px) {
  :root { --fs-body: 14px; --fs-h1: 22px; }

  .container { padding: 0 16px; }

  /* Switch nav to hamburger */
  .nav-toggle { display: inline-flex; }
  .nav-links { 
    position: absolute;
    top: 56px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px 16px;
    background: rgba(248, 246, 241, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 6px 2px; width: 100%; }
}

@media (max-width: 640px) {
  .section {
    padding: 40px 0;
  }

  .nav {
    height: 64px;
  }

  .nav-links {
    gap: 14px;
  }
}

/* Hero visual */
.hero-visual { max-width: 70ch; margin: 16px auto 28px; }
.hero-visual img,
.hero-visual video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Content image (inline, clickable) */
.content-image { margin: 16px 0 8px; }
.content-image img { width: 75%; max-width: 100%; height: auto; display: block; margin: 16px auto; border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.content-image small { display: block; text-align: center; color: var(--muted); }

/* Accordion (details/summary) */
details.accordion {
  border: 1px solid var(--line);
  background: #fdfbf5;
  border-radius: 8px;
  margin: 14px 0;
}
details.accordion summary {
  cursor: pointer;
  padding: 10px 12px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.accordion summary::-webkit-details-marker { display: none; }
details.accordion summary::after {
  content: '▸';
  margin-left: 12px;
  color: var(--muted);
  transition: transform 0.2s ease;
}
details.accordion[open] summary::after { content: '▾'; }
details.accordion .accordion-content { padding: 0 12px 12px; }
details.accordion h3 { margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 100; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.25); image-rendering: auto; cursor: zoom-out; }
.lightbox .lightbox-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.9); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 10px; font-size: var(--fs-small); cursor: pointer; }

@media (max-width: 640px) {
  .content-image img { width: 100%; }
}

/* Team page */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; justify-items: center; }
.team-card { border: 1px solid var(--line); background: #fdfbf5; border-radius: 10px; padding: 12px; text-align: center; }
/* Use a cap for image size so large screens don't overscale; still responsive on narrow cols */
.team-card img {
  /* adjustable image size cap */
  --team-img-size: 220px;
  width: min(100%, var(--team-img-size));
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto 8px;
}
.team-card h3 { margin: 6px 0 2px; font-size: 16px; }
.team-card .role { font-size: var(--fs-small); color: var(--muted); margin-bottom: 8px; }
.team-card p { font-size: var(--fs-small); margin: 0; }

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

/* Team page — specific layouts */
.team-grid.founders { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-grid.advisors { grid-template-columns: 1fr; }

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