:root {
  --bg: #f8f5f0;
  --text: #1a1a1a;
  --border: #e8e3dc;
  --accent: #8C1515;
  --mono: "Commit Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 4px 6px;
  border: 1px solid var(--accent);
  background: var(--bg);
  color: var(--accent);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  min-height: 100vh;
  height: 100vh;
}

.left-pane,
.center-pane,
.right-pane {
  min-height: 0;
}

.left-pane,
.center-pane {
  overflow-y: auto;
}

.left-pane {
  border-right: 1px solid var(--border);
  padding: 18px 16px;
}

.center-pane {
  padding: 42px;
}

.right-pane {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-left: 1px solid var(--border);
  overflow: hidden;
}

.rail-section {
  overflow-y: auto;
  padding: 18px 16px;
}

.wordmark-link {
  display: block;
  width: 100%;
}

.wordmark {
  display: block;
  width: 100%;
  height: auto;
}

.stars {
  margin: 16px 0 22px;
  letter-spacing: 0.14em;
}

.nav-accordion-toggle {
  display: none;
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 14px;
}

.nav-accordion-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-section {
  margin: 0 0 12px;
}

.nav-section-toggle,
.nav-leaf {
  display: block;
  width: fit-content;
}

.nav-section-toggle[aria-expanded="true"] {
  margin-bottom: 4px;
}

.nav-children {
  display: none;
  margin: 0 0 0 16px;
}

.nav-section[data-expanded="true"] .nav-children {
  display: block;
}

.nav-leaf {
  margin: 3px 0;
}

.nav-leaf.active {
  color: var(--accent);
  font-weight: 700;
}

.rail-section h2,
.page-kicker,
.file-location,
.page-meta,
.bio-role {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.file-location {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55ch;
  align-items: baseline;
}

.file-location-parent,
.file-location-close {
  color: var(--accent);
}

.file-location-directory {
  color: #6f6960;
}

.rail-list {
  display: grid;
  gap: 8px;
}

.rail-list a {
  display: block;
}

.breadcrumb-footer {
  padding: 18px 16px;
  color: var(--accent);
}

.page,
.home {
  max-width: 65ch;
}

.accelerator-about-page {
  max-width: 78ch;
}

.page h1,
.home h1 {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.page p,
.page li,
.home p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
}

.page p {
  margin: 0 0 18px;
}

.page ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.portfolio-list {
  display: grid;
  gap: 14px;
  margin: 8px 0 24px;
}

.portfolio-list li {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 24px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.portfolio-list li:last-child {
  border-bottom: 0;
}

.portfolio-list a {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.portfolio-list span {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
}

.cohort-tabs {
  margin-top: 20px;
}

.cohort-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cohort-tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.cohort-tab-button {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 14px;
  cursor: pointer;
}

.cohort-panel {
  display: none;
}

#cohort-tab-spring:checked ~ .cohort-tab-buttons .cohort-tab-button[for="cohort-tab-spring"],
#cohort-tab-fall:checked ~ .cohort-tab-buttons .cohort-tab-button[for="cohort-tab-fall"] {
  border-color: var(--accent);
  color: var(--accent);
}

#cohort-tab-spring:checked ~ .cohort-panels .cohort-panel-spring,
#cohort-tab-fall:checked ~ .cohort-panels .cohort-panel-fall {
  display: block;
}

.cohort-table {
  width: 100%;
  border-collapse: collapse;
}

.cohort-table th,
.cohort-table td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.cohort-table thead th {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.cohort-table tbody th {
  width: 34%;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.cohort-table tbody td {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .portfolio-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cohort-tab-buttons {
    flex-wrap: wrap;
  }

  .cohort-table th,
  .cohort-table td {
    padding: 8px 6px;
  }

  .cohort-table tbody th {
    width: auto;
  }
}

.bio-list {
  display: grid;
  gap: 24px;
}

.team-page {
  max-width: 92ch;
}

.team-page .bio-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  row-gap: 16px;
}

.bio-card h2 {
  margin: 0 0 2px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.bio-card p {
  margin: 0;
}

.home {
  display: grid;
  min-height: calc(100vh - 84px);
  align-content: center;
  justify-items: stretch;
  gap: 40px;
  max-width: none;
  text-align: left;
}

.home-map-frame {
  margin: 0;
  width: min(760px, 82%);
  border: 1px solid var(--border);
  background: #efebe4;
}

.home-map {
  display: block;
  width: 100%;
  height: auto;
}

.home-inner {
  display: grid;
  justify-items: start;
  gap: 14px;
  width: min(760px, 85%);
}

.home h1,
.home p {
  margin: 0;
}

.home-wordmark {
  display: block;
  width: 100%;
}

@media (max-width: 900px) {
  .site-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .left-pane,
  .center-pane,
  .right-pane {
    overflow: visible;
  }

  .left-pane {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "wordmark toggle"
      "stars    stars"
      "tree     tree";
    align-items: center;
    column-gap: 14px;
    row-gap: 8px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .wordmark-link {
    grid-area: wordmark;
    width: auto;
  }

  .wordmark {
    width: 180px;
    max-width: 180px;
  }

  .stars {
    grid-area: stars;
    margin: 0;
  }

  .nav-accordion-toggle {
    grid-area: toggle;
    display: inline-block;
    justify-self: end;
    width: auto;
    padding: 6px 10px;
    margin-bottom: 0;
  }

  .nav-tree {
    display: none;
    grid-area: tree;
  }

  .left-pane[data-mobile-expanded="true"] .nav-tree {
    display: block;
  }

  .nav-section {
    margin: 0 0 6px;
  }

  .nav-leaf {
    margin: 2px 0;
  }

  .center-pane {
    padding: 20px 18px;
  }

  .team-page .bio-list {
    grid-template-columns: 1fr;
  }

  .right-pane {
    grid-template-rows: auto auto;
    border-left: 0;
    border-top: 1px solid var(--border);
    overflow: visible;
  }

  .rail-section {
    padding: 14px 16px;
    overflow: visible;
  }

  .breadcrumb-footer {
    padding: 12px 16px;
  }

  .home {
    min-height: 0;
    align-content: start;
    gap: 18px;
  }

  .home-map-frame {
    width: 100%;
    max-width: 360px;
  }

  .home-inner {
    width: 100%;
  }

  .home-wordmark {
    max-width: 280px;
  }
}
