:root {
  --fg: #000000;
  --muted: #000000;
  --line: rgba(0, 0, 0, 0.15);
  --max-width: 1200px;
  --font: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: #ffffff;
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  top: 1.5rem;
  right: 1.75rem;
  text-align: right;
  z-index: 20;
}

.wordmark {
  display: block;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

body[data-page="home"] .topbar {
  display: none;
}

.page-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.side-nav {
  position: fixed;
  top: 50%;
  right: 1.75rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  z-index: 20;
}

.side-nav a {
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.side-nav a:hover {
  color: var(--fg);
}

.side-nav a.active {
  color: var(--fg);
  font-weight: 700;
}

footer {
  position: fixed;
  bottom: 1.25rem;
  left: 1.75rem;
  font-size: 0.68rem;
  color: var(--muted);
  z-index: 20;
}

main {
  height: 100vh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Landing page hero */

.hero-main {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-image {
  aspect-ratio: 4 / 5;
  max-height: 58vh;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-name {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.hero-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.hero-mission {
  font-size: 0.92rem;
  color: var(--fg);
  max-width: 54ch;
  margin: 0 0 1rem;
}

.hero-goal {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.hero-newsletter {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.hero-newsletter a {
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
}

/* Sub-pages */

.page-main {
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.page-main h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.page-intro {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 60ch;
  margin: 0;
  text-align: left;
}

.content-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.page-intro.solid {
  color: var(--fg);
  font-size: 0.92rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  text-align: left;
}

.block h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.block h3 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 1.1rem 0 0.6rem;
}

.affiliation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.affiliation-list li {
  font-size: 0.95rem;
  font-weight: 600;
}

.affiliation-list .tag {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 0.35rem;
}

.affiliation {
  position: relative;
  display: inline-block;
  width: fit-content;
  cursor: default;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.35);
}

.affiliation::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: max-content;
  max-width: 320px;
  white-space: pre-line;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.6rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: #000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 30;
}

.affiliation:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.guest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}

.guest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.guest-list li {
  font-size: 0.85rem;
}

.guest-list .role {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

body[data-page="podcast"] .two-col {
  margin-top: 1rem;
}

.podcast-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.podcast-links li {
  font-size: 0.85rem;
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.blog-post {
  position: relative;
  width: fit-content;
}

.blog-post a {
  font-size: 0.85rem;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.35);
}

.blog-post a:hover {
  border-color: var(--fg);
}

.blog-date {
  font-size: 0.75rem;
  color: var(--muted);
  margin-right: 0.5rem;
}

.blog-preview {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 220px;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
  padding: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 30;
}

.blog-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post:hover .blog-preview {
  opacity: 1;
  transform: translateY(0);
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plain-list li {
  font-size: 0.85rem;
}

.plain-list .tag {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 0.35rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}

.feature-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-grid li {
  font-size: 0.88rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--fg);
  color: #fff;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.82rem;
  border: none;
  font-family: inherit;
  cursor: pointer;
  margin-top: 1.25rem;
}

.btn:disabled,
.btn.btn-disabled {
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.85);
  cursor: not-allowed;
}

@media (max-width: 860px) {
  html,
  body {
    overflow: auto;
  }

  main {
    height: auto;
    min-height: 100vh;
    padding: 6rem 1.5rem 5rem;
  }

  .hero-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-image {
    max-height: 40vh;
  }

  .two-col,
  .guest-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .side-nav {
    top: auto;
    bottom: 1rem;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 0.9rem;
  }

  footer {
    display: none;
  }
}
