:root {
  color-scheme: light;
  --bg: #f8f6ef;
  --bg-elev: #ffffff;
  --text: #101827;
  --text-soft: #334155;
  --muted: #647084;
  --faint: #9aa3b2;
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.22);
  --accent: #0b2748;
  --accent-soft: rgba(191, 164, 106, 0.28);
  --serif: "Fraunces", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1140px;
  --pad-x: 48px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

main { width: min(var(--maxw), calc(100% - var(--pad-x))); margin: 0 auto; }

/* ─── Site header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 246, 239, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  width: min(var(--maxw), calc(100% - var(--pad-x)));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.brand .mark {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.brand .wordmark {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
}
.site-nav {
  display: flex;
  gap: 30px;
  font-size: 0.9rem;
}
.site-nav a {
  position: relative;
  color: var(--text-soft);
  padding-bottom: 2px;
  transition: color 140ms ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { opacity: 1; transform: scaleX(1); }
.site-nav a.ext::before {
  content: "↗";
  margin-right: 4px;
  color: var(--faint);
  font-size: 0.85em;
}
.site-nav a.ext::after { display: none; }

/* ─── Hero ────────────────────────────────────────────────────── */

.hero {
  padding: 112px 0 72px;
}
.eyebrow {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 32px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--accent-soft);
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0 0 32px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  max-width: 920px;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  margin: 0 0 42px;
}

/* Buttons */

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: #143b68;
  border-color: #143b68;
  color: #ffffff;
}
.btn.ghost { color: var(--text); }
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Editorial bands ─────────────────────────────────────────── */

.band {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.band-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.band-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 600;
  padding-top: 6px;
}
.band-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 720px;
}
.band-body p.lede {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.55;
}

blockquote {
  margin: 36px 0 0;
  padding: 0 0 0 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.9vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--text);
  max-width: 760px;
  border-left: 2px solid var(--accent);
}

/* ─── Focus grid ──────────────────────────────────────────────── */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.focus-grid article {
  background: var(--bg-elev);
  padding: 32px 28px;
  transition: background 160ms ease;
}
.focus-grid article:hover { background: var(--bg-elev); }
.focus-grid .num {
  display: block;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.focus-grid h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}
.focus-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ─── Principles list ─────────────────────────────────────────── */

.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 760px;
}
.principles li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.002em;
}

/* ─── Documents list ──────────────────────────────────────────── */

.docs {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 760px;
}
.docs li { border-top: 1px solid var(--line); }
.docs li:last-child { border-bottom: 1px solid var(--line); }
.docs a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  padding: 22px 0;
  color: var(--text);
  transition: color 140ms ease, padding 140ms ease;
}
.docs a:hover { color: var(--accent); padding-left: 6px; }
.doc-title {
  font-size: 1.05rem;
  font-weight: 500;
}
.doc-sub {
  font-style: normal;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
  flex-shrink: 0;
}
.docs a::after {
  content: "↗";
  color: var(--faint);
  font-size: 0.95rem;
  margin-left: 6px;
}

/* ─── Contact ─────────────────────────────────────────────────── */

.contact-list {
  display: grid;
  gap: 1px;
  max-width: 760px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  background: var(--bg-elev);
  transition: background 160ms ease, color 140ms ease;
}
.contact-list a:hover {
  background: #f1eee5;
  color: var(--accent);
}
.contact-list span {
  color: var(--muted);
  font-size: 0.9rem;
}
.contact-list strong {
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.004em;
}
.contact-list a:hover strong { color: var(--accent); }

/* ─── Article pages ───────────────────────────────────────────── */

.article-page {
  padding: 88px 0 32px;
}
.article {
  max-width: 820px;
}
.article h1 {
  max-width: 820px;
  margin-bottom: 42px;
}
.article h2 {
  margin: 56px 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--text);
}
.article h3 {
  margin: 32px 0 10px;
  font-size: 1.05rem;
  color: var(--text);
}
.article p,
.article li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}
.article p { margin: 0 0 18px; }
.article .lede {
  color: var(--text-soft);
  font-size: 1.12rem;
}
.article ul,
.article ol {
  margin: 18px 0 28px;
  padding-left: 24px;
}
.article li { margin: 8px 0; }
.article strong { color: var(--text); }
.article blockquote {
  margin: 32px 0 38px;
}

/* ─── Footer ──────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 64px;
  margin-top: 40px;
}
.footer-inner {
  width: min(var(--maxw), calc(100% - var(--pad-x)));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-brand .mark {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
  color: var(--text);
}
.foot-brand .tag {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.foot-meta {
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
}
.foot-meta p { margin: 0 0 4px; }
.foot-meta a { transition: color 140ms ease; }
.foot-meta a:hover { color: var(--accent); }
.disclaimer {
  width: min(var(--maxw), calc(100% - var(--pad-x)));
  margin: 40px auto 0;
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.65;
  max-width: 820px;
}

/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 860px) {
  :root { --pad-x: 32px; }
  .hero { padding: 64px 0 56px; }
  .band { padding: 56px 0; }
  .band-grid { grid-template-columns: 1fr; gap: 20px; }
  .band-label { padding-top: 0; }
  .focus-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 18px; font-size: 0.82rem; }
  .site-nav a.ext { display: none; }
  .docs a { flex-direction: column; gap: 4px; padding: 20px 0; }
  .docs a:hover { padding-left: 0; }
  .doc-sub { text-align: left; }
  .contact-list a { flex-direction: column; gap: 4px; }
  .article-page { padding: 64px 0 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .foot-meta { text-align: left; }
}

@media (max-width: 520px) {
  :root { --pad-x: 24px; }
  .brand .wordmark { display: none; }
  .actions { gap: 10px; }
  .btn { padding: 11px 18px; font-size: 0.86rem; }
  .site-nav { gap: 14px; }
}

/* ─── Profile & holdings pages ────────────────────────────────── */

.profile-card,
.holdings-grid section {
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.profile-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  padding: 32px;
  margin: 42px 0 48px;
}
.profile-card h2,
.holdings-grid h2 {
  margin-top: 8px;
}
.profile-label {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}
.profile-meta {
  display: grid;
  gap: 1px;
  align-content: start;
  background: var(--line);
  border: 1px solid var(--line);
}
.profile-meta a {
  display: block;
  padding: 18px 20px;
  background: var(--bg);
}
.profile-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.profile-meta strong {
  font-size: 0.95rem;
  font-weight: 500;
}
.holdings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 40px 0 48px;
}
.holdings-grid section {
  padding: 28px;
}
.holdings-grid p { margin-bottom: 0; }

@media (max-width: 860px) {
  .profile-card,
  .holdings-grid { grid-template-columns: 1fr; }
}

/* ─── Allocation snapshot ─────────────────────────────────────── */

.allocation-card {
  margin: 34px 0 28px;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.allocation-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}
.allocation-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.allocation-row strong,
.allocation-row span,
.allocation-row em {
  position: relative;
  z-index: 1;
}
.allocation-row strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}
.allocation-row span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}
.allocation-row em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
}
.allocation-row i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: var(--w);
  background: linear-gradient(90deg, var(--accent), rgba(191, 164, 106, 0.72));
}

@media (max-width: 860px) {
  .allocation-head,
  .allocation-row { grid-template-columns: 1fr; }
  .allocation-row { gap: 8px; }
}

/* ─── Performance metrics ─────────────────────────────────────── */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 30px 0 28px;
  background: var(--line);
  border: 1px solid var(--line);
}
.metrics-grid section {
  background: var(--bg-elev);
  padding: 22px 20px;
}
.metrics-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.metrics-grid strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 8px;
}
.metrics-grid em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .metrics-grid { grid-template-columns: 1fr; }
}

/* ─── Performance chart ───────────────────────────────────────── */

.performance-chart {
  margin: 30px 0 28px;
  padding: 0;
}
.performance-chart img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #ffffff;
}
.performance-chart figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ─── Historical records ──────────────────────────────────────── */

.history-table {
  margin: 28px 0 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.history-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.history-table th,
.history-table td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.history-table th {
  color: var(--text);
  font-weight: 600;
  background: #f1eee5;
}
.history-table td {
  color: var(--muted);
}
.history-table tr:last-child td { border-bottom: 0; }
.data-links {
  font-size: 0.9rem !important;
}
.data-links a {
  color: var(--accent);
  font-weight: 500;
}

/* ─── Detailed snapshot history ───────────────────────────────── */

.history-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 34px 0 34px;
  background: var(--line);
  border: 1px solid var(--line);
}
.history-summary section {
  background: var(--bg-elev);
  padding: 22px;
}
.history-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.history-summary strong {
  color: var(--text);
  font-size: 1.2rem;
}
.snapshot-list {
  display: grid;
  gap: 22px;
  margin: 34px 0;
}
.snapshot-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 30px;
}
.snapshot-card.latest {
  border-color: rgba(11, 39, 72, 0.26);
}
.snapshot-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.snapshot-head h2 {
  margin: 8px 0 0;
}
.snapshot-nav {
  text-align: right;
}
.snapshot-nav strong {
  display: block;
  color: var(--accent);
  font-size: 1.7rem;
  line-height: 1;
}
.snapshot-nav span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 8px;
}
.snapshot-allocation {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.snapshot-allocation div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.snapshot-allocation span,
.snapshot-allocation em {
  position: relative;
  z-index: 1;
}
.snapshot-allocation span { color: var(--text-soft); }
.snapshot-allocation em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}
.snapshot-allocation i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--w);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(191, 164, 106, 0.72));
}
@media (max-width: 860px) {
  .history-summary { grid-template-columns: 1fr; }
  .snapshot-head { flex-direction: column; }
  .snapshot-nav { text-align: left; }
}
