:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --bg-deep: #ede4d3;
  --paper: #fbf8f2;
  --paper-strong: #fffdf8;
  --ink: #162027;
  --ink-soft: #50606c;
  --line: rgba(22, 32, 39, 0.12);
  --line-strong: rgba(22, 32, 39, 0.2);
  --accent: #165f63;
  --accent-soft: rgba(22, 95, 99, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 36%, #f8f4ed 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.68;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(22, 95, 99, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

code {
  padding: 0.14rem 0.4rem;
  border-radius: 0.4rem;
  background: var(--accent-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.page-noise,
.page-glow {
  pointer-events: none;
}

.page-noise {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 32, 39, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 32, 39, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 90%);
}

.page-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.35;
}

.page-glow-left {
  top: -10rem;
  left: -10rem;
  background: rgba(22, 95, 99, 0.14);
}

.page-glow-right {
  top: 2rem;
  right: -12rem;
  background: rgba(196, 158, 89, 0.16);
}

.site-shell {
  position: relative;
  width: min(74rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0 1.3rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark::before {
  content: "";
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 0.24rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 55%, #c8a66b 55%, #c8a66b 100%);
}

.topbar-note {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-panel {
  padding: clamp(1.5rem, 3vw, 2.4rem) 0 2rem;
  border-bottom: 1px solid var(--line-strong);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 0.9fr);
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title,
.section-heading,
.faq-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

.hero-title {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 0.95;
}

.hero-summary {
  max-width: 45rem;
  margin: 1rem 0 0;
  font-size: 1.16rem;
}

.hero-supporting {
  max-width: 44rem;
  margin: 0.95rem 0 0;
  color: var(--ink-soft);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.48);
}

.hero-sidebar {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  padding-top: 0.55rem;
}

.trust-card,
.nav-card {
  padding-top: 0.2rem;
}

.trust-card h2,
.nav-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.trust-card p,
.nav-card p {
  color: var(--ink-soft);
}

.trust-list {
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-item {
  display: flex;
  gap: 0.72rem;
}

.trust-item + .trust-item {
  margin-top: 0.6rem;
}

.trust-item::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: var(--accent);
  flex: none;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.section-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.section-nav a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.editorial-flow {
  display: grid;
  gap: 2.4rem;
  margin-top: 1.75rem;
}

.editorial-section {
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}

.editorial-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.editorial-section-emphasis {
  padding: 1.2rem 0 0;
}

.section-heading-wrap {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.25rem);
}

.section-kicker {
  max-width: 52rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.capability-list,
.resource-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list {
  border-top: 1px solid var(--line);
}

.capability-item {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.capability-index {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.capability-text {
  margin: 0;
}

.supporting-note,
.contact-line,
.footer-copy {
  color: var(--ink-soft);
}

.supporting-note {
  margin: 0.9rem 0 0;
}

.editorial-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.editorial-columns-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-column {
  padding-top: 0.1rem;
}

.detail-title,
.result-title,
.resource-title {
  margin: 0 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.detail-copy,
.result-body,
.resource-body {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.detail-copy-muted {
  margin-top: 0.85rem;
}

.detail-list {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
}

.detail-list li + li {
  margin-top: 0.36rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 2rem;
}

.result-entry {
  padding-top: 0.15rem;
}

.resource-list {
  border-top: 1px solid var(--line);
}

.resource-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.resource-link {
  white-space: nowrap;
  font-weight: 600;
}

.resource-link::after {
  content: " →";
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border-top: 1px solid var(--line);
  background: transparent;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 600;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 0 0.9rem;
  color: var(--ink-soft);
}

.footer-panel {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-copy {
  margin: 0;
}

.not-found-panel {
  padding: 2rem 0;
  border-top: 1px solid var(--line-strong);
}

@media (max-width: 980px) {
  .hero-grid,
  .editorial-columns,
  .editorial-columns-compact,
  .results-grid,
  .resource-item {
    grid-template-columns: 1fr;
  }

  .resource-link {
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .site-shell {
    width: min(100% - 1rem, 48rem);
    padding-top: 0.5rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-summary {
    font-size: 1.05rem;
  }

  .capability-item {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.8rem;
  }
}
