:root {
  --bg: #111111;
  --text: #d6d6d6;
  --heading: #ffffff;
  --muted: #8d8d8d;
  --quote: #909090;
  --line: #4a4a4a;
  --accent: #ff0044;
  --pill: #0000ff;
  --button: #32373c;
  --container: 1200px;
  --header-pad: 48px;
  --font: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.733;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--heading);
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-150%);
  background: #fff;
  color: #111;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  transform: none;
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: var(--bg);
}

.logo-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  padding: 16px var(--header-pad) 8px;
  min-height: 84px;
}

.logo-bar-left,
.logo-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-bar-right {
  justify-content: flex-end;
}

.logo {
  display: flex;
  justify-content: center;
}

.logo img {
  width: 48px;
  height: 48px;
  display: block;
}

.icon-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.search-wrap {
  position: relative;
}

.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(320px, 80vw);
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 25px -10px rgba(0, 0, 0, 0.45);
  padding: 12px;
  z-index: 40;
}

.search-panel form {
  display: flex;
  gap: 8px;
}

.search-panel input {
  flex: 1;
  background: #111;
  color: #fff;
  border: 1px solid #3a3a3a;
  border-radius: 2px;
  padding: 8px 10px;
  font: inherit;
}

.search-panel input:focus {
  outline: 1px solid #fff;
}

.search-panel .icon-btn {
  background: #fff;
  color: #111;
  border-radius: 2px;
}

.search-results {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.search-results a {
  display: block;
  padding: 6px 4px;
  color: var(--text);
  line-height: 1.4;
}

.search-results a strong {
  display: block;
  color: #fff;
  font-weight: 600;
}

.search-results p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.join-btn,
.file-btn,
.save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  border: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.join-btn:hover,
.file-btn:hover,
.save-btn:hover {
  color: #0a0a0a;
  transform: scale(1.06);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: #fff;
  margin-left: 8px;
}

.nav-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  justify-content: center;
}

.nav > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  padding: 14px 0;
  font-size: 0.9375rem;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: #fff;
}

.nav > ul > li > a[aria-current="page"]::after,
.nav-item-row > a[aria-current="page"]::after,
.nav > ul > li > a:hover::after,
.nav-item-row > a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: #fff;
}

.has-sub {
  position: relative;
}

.nav-item-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sub-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 14px 2px;
  display: inline-flex;
  align-items: center;
}

.chevron {
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  display: inline-block;
  margin-top: 1px;
}

.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 250px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.085);
  box-shadow: 0 15px 25px -10px rgba(50, 52, 54, 0.125);
  z-index: 30;
}

.has-sub:hover > .sub,
.has-sub:focus-within > .sub,
.has-sub.open > .sub {
  display: block;
}

.sub a {
  display: block;
  color: #30373e;
  padding: 8px 22px;
  line-height: 1.45;
}

.sub a::after {
  display: none;
}

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

.page-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 18px;
}

.page-header h1 {
  margin: 0;
  color: var(--heading);
  font-size: 2.375rem;
  font-weight: 600;
  line-height: 1.1;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.875rem;
  white-space: nowrap;
  padding-bottom: 6px;
}

.crumbs a {
  color: var(--text);
}

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

.entry {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.entry p {
  margin: 0 0 1.35em;
}

.entry h2,
.entry h3,
.entry h4,
.entry h5 {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 1.6em 0 0.55em;
}

.entry h2 {
  font-size: 1.75rem;
}

.entry h3 {
  font-size: 1.35rem;
}

.entry h4,
.entry .section-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.entry h5 {
  font-size: 1.05rem;
}

.home-entry {
  padding-top: 160px;
}

.wordmark-wrap {
  width: 100%;
  max-width: 635px;
  margin: 0 auto 150px;
}

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

.home-entry .verse {
  width: 100%;
  max-width: none;
  margin: 0 auto 120px;
  text-align: center;
  color: var(--quote);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.7;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 72px;
}

.milestone-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pill {
  flex: 0 0 auto;
  background: var(--pill);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 400;
}

.milestone-line {
  flex: 1;
  height: 1px;
  background: #6d6d6d;
}

.milestone h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.milestone p {
  margin: 0;
  color: #8b8b8b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.center-page {
  text-align: center;
  padding-top: 48px;
}

.center-page h1 {
  margin: 0 0 28px;
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
}

.qr {
  width: 282px;
  height: auto;
  display: block;
  margin: 0 auto 28px;
  background: #fff;
}

.save-btn {
  background: var(--button);
  color: #fff;
  min-width: 148px;
  padding: 12px 22px;
}

.save-btn:hover {
  color: #fff;
}

.file-block {
  margin-top: 12px;
}

.file-block iframe,
.file-block object {
  width: 100%;
  height: 640px;
  border: 0;
  background: #2a2a2a;
}

.file-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.file-btn {
  background: var(--button);
  color: #fff;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.file-btn:hover {
  color: #fff;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0 28px;
}

.site-footer p {
  margin: 0;
  color: var(--text);
  font-size: 0.875rem;
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: #111;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 980px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
}

@media (max-width: 782px) {
  .logo-bar {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    width: 100%;
  }

  .logo-bar-left {
    order: 1;
  }

  .logo {
    order: 0;
    margin-right: auto;
  }

  .logo-bar-right {
    order: 2;
    gap: 6px;
    flex: 0 0 auto;
  }

  .join-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .icon-btn,
  .menu-toggle {
    width: 32px;
    flex: 0 0 32px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-bar {
    display: none;
    background: #fff;
    border: 0;
  }

  .nav-bar.is-open {
    display: block;
  }

  .nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
  }

  .nav > ul > li > a,
  .nav-item-row > a {
    color: #222;
    display: flex;
    justify-content: space-between;
    padding: 12px 22px;
    border-bottom: 1px solid #eaeaea;
  }

  .nav > ul > li > a[aria-current="page"],
  .nav > ul > li > a:hover,
  .nav-item-row > a[aria-current="page"],
  .nav-item-row > a:hover {
    color: #111;
  }

  .nav > ul > li > a[aria-current="page"]::after,
  .nav > ul > li > a:hover::after,
  .nav-item-row > a[aria-current="page"]::after,
  .nav-item-row > a:hover::after {
    display: none;
  }

  .sub-toggle {
    color: #222;
    padding: 12px 18px 12px 8px;
  }

  .sub,
  .has-sub:hover > .sub,
  .has-sub:focus-within > .sub {
    position: static;
    display: none;
    min-width: 0;
    box-shadow: none;
    border: 0;
    background: #f8f8f8;
    padding: 0;
  }

  .has-sub.open > .sub {
    display: block;
  }

  .nav-item-row {
    border-bottom: 1px solid #eaeaea;
  }

  .nav > ul > li > a,
  .nav-item-row > a {
    border-bottom: 0;
    flex: 1;
  }

  .sub a {
    padding-left: 36px;
  }

  .page-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .crumbs {
    padding-bottom: 0;
  }

  .timeline {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .wordmark-wrap {
    margin: 0 auto 72px;
  }

  .home-entry .verse {
    margin-bottom: 64px;
  }

  .home-entry {
    padding-top: 56px;
  }
}
