:root {
  --bg: #0b0b0c;
  --ink: #efece4;
  --ink-dim: #9a968c;
  --accent: #c6813f;
  --border: #232320;
  --max-width: 780px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  padding: 2rem 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wordmark {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--ink-dim);
  font-weight: 500;
  text-transform: uppercase;
}

.byline {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  opacity: 0.6;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.eyebrow {
  max-width: var(--max-width);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  color: var(--ink-dim);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

h1 {
  max-width: var(--max-width);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.lede {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 1.25rem;
}

.territory {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 3rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  max-width: 100%;
}

.action {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-bottom: 0.4rem;
  transition: color 0.2s ease;
}

.action::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--border);
  transition: background 0.2s ease;
}

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

.action:hover::after {
  background: var(--accent);
}

.feed {
  width: 100%;
  max-width: 460px;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.feed-heading {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0.7;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.feed-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.feed-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feed-item a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

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

.feed-date {
  font-size: 0.7rem;
  color: var(--ink-dim);
  opacity: 0.6;
}

.feed-loading,
.feed-fallback {
  font-size: 0.85rem;
  color: var(--ink-dim);
}

.feed-fallback a {
  color: var(--accent);
  text-decoration: none;
}

.substack-embeds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  max-width: 700px;
  margin-top: 3rem;
}

.substack-post-embed,
.substack-embeds iframe {
  width: 480px;
  max-width: 100%;
}

.edge-labs-link {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.edge-labs-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.page-nav {
  padding: 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.wordmark-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  width: fit-content;
}

.page-menu {
  justify-content: flex-start;
  max-width: none;
  gap: 0.6rem 1.4rem;
}

.action.is-active {
  color: var(--accent);
}

.action.is-active::after {
  background: var(--accent);
}

.action--separated {
  margin-left: 1.25rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

.article {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  text-align: left;
}

.article .kicker {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0.7;
  font-weight: 500;
  margin-bottom: 1rem;
}

.article h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.article .subtitle {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--ink-dim);
  margin-bottom: 2.5rem;
}

.article h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--ink);
  margin: 3rem 0 1.1rem;
}

.article p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-dim);
  margin-bottom: 1.25rem;
}

.article ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.article ul li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-dim);
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.article ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.exp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.exp-table th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-dim);
  opacity: 0.65;
  padding: 0 1rem 0.75rem 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.exp-table td {
  padding: 0.9rem 1rem 0.9rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-dim);
  line-height: 1.5;
  vertical-align: top;
}

.exp-table td:first-child {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.exp-table tr:last-child td {
  border-bottom: none;
}

.stanza {
  margin: 1.5rem 0;
}

.stanza p {
  margin-bottom: 0.2rem;
}

.pull-quote {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
  max-width: 520px;
  margin: 2.5rem auto;
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-link:hover {
  border-color: var(--accent);
}

.closing-stanza {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.7;
}

.article--wide {
  max-width: 980px;
}

.research-intro {
  max-width: 640px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.research-item {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
}

.research-head {
  padding-right: 4.75rem;
  margin-bottom: 0.75rem;
}

.research-head h2,
.research-head h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
  color: var(--ink);
  margin: 0;
}

.status {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status--active .status-dot,
.status-dot.dot-active {
  background: #4caf6e;
  box-shadow: 0 0 6px rgba(76, 175, 110, 0.6);
}

.status--planned .status-dot,
.status-dot.dot-planned {
  background: #e0b23e;
  box-shadow: 0 0 6px rgba(224, 178, 62, 0.5);
}

.pub-table td:first-child {
  width: 2.5rem;
}

.pub-table .status-dot {
  position: relative;
  top: 1px;
}

.status--stopped .status-dot {
  background: #d1453a;
  box-shadow: 0 0 6px rgba(209, 69, 58, 0.5);
}

.status--edge .status-dot {
  background: #4a90d9;
  box-shadow: 0 0 6px rgba(74, 144, 217, 0.5);
}

.status--future .status-dot {
  background: transparent;
  border: 1px solid var(--ink-dim);
}

.pipeline-date {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  opacity: 0.65;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.section-dot--active {
  background: #4caf6e;
  box-shadow: 0 0 6px rgba(76, 175, 110, 0.6);
}

.section-dot--planned {
  background: #e0b23e;
  box-shadow: 0 0 6px rgba(224, 178, 62, 0.5);
}

.section-dot--edge {
  background: #4a90d9;
  box-shadow: 0 0 6px rgba(74, 144, 217, 0.5);
}

.section-dot--future {
  background: transparent;
  border: 1px solid var(--ink-dim);
}

.research-head--plain {
  padding-right: 0;
}

.item-theme {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-dim);
  opacity: 0.75;
  margin-bottom: 0.9rem;
}

.section-intro {
  max-width: 640px;
  margin-top: -0.5rem;
}

.research-item p.research-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-dim);
  margin-bottom: 1.25rem;
}

.projects-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0.6;
  margin-bottom: 0.6rem;
}

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

.projects-list li {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink-dim);
  position: relative;
  padding-left: 1rem;
}

.projects-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.site-footer {
  padding: 1.5rem 2rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-dim);
  opacity: 0.6;
}

.site-footer .tagline {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-contact {
  margin-top: 0.6rem;
}

.footer-contact a {
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .site-header.page-nav {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .hero {
    padding: 3rem 1.25rem;
  }

  .article {
    padding: 2.5rem 1.25rem 3.5rem;
  }

  .actions {
    gap: 0.6rem 1rem;
  }

  .action {
    font-size: 0.82rem;
  }

  .action--separated {
    margin-left: 0.6rem;
    padding-left: 0.9rem;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .substack-embeds {
    flex-direction: column;
    align-items: center;
  }

  .footer-contact {
    word-break: break-word;
  }
}

@media (max-width: 380px) {
  .action {
    font-size: 0.76rem;
  }

  .action--separated {
    margin-left: 0.4rem;
    padding-left: 0.65rem;
  }
}
