:root {
  --bg: #07060c;
  --ivory: #f6efe2;
  --soft: #e7dcc8;
  --pink: #ff5fa2;
  --blue: #2f7bff;
  --orange: #ff9a2c;
  --purple: #a44bff;
  --green: #2fbf6a;
  --yellow: #f2d230;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: transparent;
  color: var(--ivory);
  font-family: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
}

.page-background__photo {
  position: absolute;
  inset: -24px;
  background-image: url("../images/website-background.jpg");
  background-repeat: no-repeat;
  background-position: center 58%;
  background-size: cover;
  filter: blur(4px);
}

.page-background__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(7, 6, 12, 0.62), rgba(7, 6, 12, 0.74));
}

main {
  flex: 1 0 auto;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 16px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0 8px;
}

.site-nav {
  display: flex;
  align-items: flex-start;
  align-self: flex-start;
  order: 3;
  gap: 18px;
  margin-left: auto;
  font-size: 18px;
  line-height: 1.2;
}

.site-nav a,
.site-nav button {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  color: var(--ivory);
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav a:hover,
.site-nav button:hover,
.site-nav a[aria-current="page"] {
  color: var(--yellow);
}

.site-nav a:focus-visible,
.site-nav button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.nav-menu {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2;
  width: 230px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  background: #14111c;
  border: 1px solid rgba(246, 239, 226, 0.2);
  border-radius: 8px;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 0;
  left: 0;
  height: 8px;
}

.nav-dropdown li {
  margin: 0;
  padding: 0;
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.nav-dropdown .nav-icon {
  flex: 0 0 16px;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(246, 239, 226, 0.14);
}

.nav-dropdown a:focus-visible {
  outline-offset: -2px;
}

.logo {
  display: block;
  width: 300px;
  height: auto;
  flex: 0 0 auto;
}

.hero-copy h1 {
  margin: 0 0 4px;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
}

.tagline {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.35;
  color: #fff8ee;
}

.hero-copy p:last-child {
  margin: 0;
}

.network {
  margin: 8px auto 0;
}

.network svg {
  display: block;
  width: min(640px, 100%);
  height: auto;
  margin: 0 auto;
}

.person text {
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
}

.edge-label text {
  font-family: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
  paint-order: stroke;
  stroke: #07060c;
  stroke-width: 4px;
}

.network figcaption {
  margin: 4px 0 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  color: var(--soft);
}

main p {
  margin: 0 0 10px;
}

.goals {
  margin-top: 4px;
}

h2 {
  margin: 12px 0 8px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.goal {
  position: relative;
  margin: 0 0 10px;
  padding: 8px 12px 4px 14px;
  background: rgba(7, 6, 12, 0.28);
  border-left: 3px solid transparent;
  border-radius: 0 12px 12px 0;
}

.goal::before {
  content: "";
  position: absolute;
  left: -3px;
  width: 3px;
  top: calc(8px + (1.15rem * 0.3) / 2);
  bottom: calc(14px + (1lh - 1em) / 2);
  background: var(--pink);
}

.goal h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.goal-pink::before { background: var(--pink); }
.goal-blue::before { background: var(--blue); }
.goal-purple::before { background: var(--purple); }
.goal-green::before { background: var(--green); }
.goal-yellow::before { background: var(--yellow); }

.story-intro,
.story-panel {
  border: 1px solid rgba(246, 239, 226, 0.18);
  background: rgba(7, 6, 12, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.story-intro {
  margin-top: 20px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 28px;
}

.story-panel {
  margin-top: 28px;
  padding: clamp(24px, 3vw, 30px);
  border-radius: 26px;
}

.story-label {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.story-page h1 {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.story-lede {
  margin: 0;
  max-width: 760px;
  color: var(--soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.story-lede + .story-lede {
  margin-top: 22px;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.story-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(246, 239, 226, 0.22);
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.08);
  color: var(--ivory);
  font-weight: 650;
  text-decoration: none;
}

.story-button-primary {
  border-color: rgba(164, 75, 255, 0.72);
  background: rgba(164, 75, 255, 0.92);
  color: #fff;
  font-weight: 700;
}

.story-button:hover,
.story-button:focus-visible {
  background: rgba(255, 248, 238, 0.16);
}

.story-button-primary:hover,
.story-button-primary:focus-visible {
  background: rgba(184, 110, 255, 0.98);
}

.story-page a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.story-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.story-panel p {
  margin: 0;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.55;
}

.story-panel a {
  color: var(--ivory);
}

.goals-coda {
  margin: 22px 0 0;
  color: var(--ivory);
  font-size: 20px;
  line-height: 1.55;
}

footer {
  width: 100%;
  margin-top: auto;
  padding: 10px 16px;
  text-align: center;
  background: rgba(7, 6, 12, 0.45);
}

footer p {
  margin: 0;
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .site-nav {
    order: -1;
    align-self: flex-end;
    margin-left: 0;
  }

  .logo {
    width: min(280px, 100%);
  }

  .hero-copy h1 {
    font-size: 36px;
  }
}
