:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101a24;
  color: #e9eef1;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 77% 17%, #1d3440 0, transparent 31rem), #101a24;
}

a { color: inherit; }

.shell {
  max-width: 1220px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 35px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid #87c6b6;
  border-radius: 12px;
  color: #a6e3d1;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.12em;
  padding-right: 3px;
}

.brand-dot { color: #f5bd78; margin: 0 1px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b2c0c8;
  font-size: 12px;
  letter-spacing: .02em;
}

.ecosystem-link { color: #a6e3d1; font-size: 12px; text-underline-offset: 4px; }
.ecosystem-link:hover, .ecosystem-link:focus-visible { color: #e9eef1; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a6e3d1;
  box-shadow: 0 0 0 4px #a6e3d118;
}

.hero {
  padding: clamp(110px, 17vh, 190px) 0 clamp(90px, 14vh, 150px);
  max-width: 830px;
}

.eyebrow, .detail-label {
  color: #a6e3d1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 24px 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 7.5vw, 94px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: 1.06;
}

.lead {
  max-width: 650px;
  margin: 0;
  color: #c2cdd1;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.lead strong { color: #e9eef1; font-weight: 620; }

.rule { display: flex; gap: 6px; margin-top: 48px; }
.rule span { display: block; height: 3px; border-radius: 3px; background: #a6e3d1; }
.rule span:nth-child(1) { width: 78px; }
.rule span:nth-child(2) { width: 16px; opacity: .6; }
.rule span:nth-child(3) { width: 16px; opacity: .3; }

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid #ffffff24;
  padding: 27px 0 40px;
}

.details p { margin: 11px 0 0; color: #e9eef1; font-size: 15px; }

.project-links { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-bottom: 38px; }
.project-links a { color: #a6e3d1; font-size: 14px; text-underline-offset: 4px; }
.project-links a:hover, .project-links a:focus-visible { color: #e9eef1; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  border-top: 1px solid #ffffff1b;
  padding: 21px 0 26px;
  color: #85969f;
  font-size: 12px;
}

@media (max-width: 650px) {
  .masthead { align-items: flex-start; flex-wrap: wrap; }
  .status { max-width: 110px; line-height: 1.3; }
  .hero { padding-top: 105px; padding-bottom: 95px; }
  .details { grid-template-columns: 1fr; gap: 24px; }
  footer { flex-direction: column; gap: 6px; }
}

.cite { padding: 40px 0; border-top: 1px solid #ffffff1b; max-width: 760px; }
.cite h2 { margin: 0 0 12px; font-size: 22px; }
.cite pre { margin: 6px 0 16px; padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #ffffff0d; border-radius: 6px; font-size: 13px; }
.cite a, footer a { color: inherit; }

.search-form { margin: 18px 0 8px; }
.search-row { display: flex; gap: 12px; margin-top: 8px; }
.search-row input { flex: 1; min-width: 0; padding: 11px 13px; color: #e9eef1; background: #ffffff0d; border: 1px solid #ffffff24; border-radius: 6px; font: inherit; font-size: 15px; }
.search-row input:focus-visible, .search-row button:focus-visible, .more:focus-visible { outline: 2px solid #a6e3d1; outline-offset: 2px; }
.search-row button, .more { padding: 10px 18px; color: #a6e3d1; background: transparent; border: 1px solid #87c6b6; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.search-row button:hover, .more:hover { color: #e9eef1; border-color: #e9eef1; }
.search-row button:disabled, .more:disabled { opacity: .5; cursor: progress; }
.search-status { min-height: 1.5em; margin: 14px 0 0; color: #b2c0c8; font-size: 14px; }
.search-status[data-state="error"] { color: #f5bd78; }
.results { list-style: none; margin: 8px 0 0; padding: 0; }
.result { padding: 16px 0; border-top: 1px solid #ffffff1b; }
.result-title { margin: 0 0 6px; font-size: 17px; font-weight: 650; }
.result-title a { color: #a6e3d1; text-underline-offset: 4px; }
.result-snippet { margin: 0 0 8px; color: #c2cdd1; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.result-meta, .result-note { margin: 0 0 4px; color: #85969f; font-size: 12px; overflow-wrap: anywhere; }
.more { margin-top: 14px; }
@media (max-width: 650px) { .search-row { flex-direction: column; } }
