/* Modern Wealth — shared styles */
:root {
  --paper: #ffffff;
  --grid-minor: #f0f0f0;
  --grid-major: #e2e2e2;
  --ink: #1a1a1a;
  --ink-2: #4d4d4d;
  --ink-3: #858585;
  --rule: #cfcfcf;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; min-height: 72px;
}
.logo {
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.22em; text-decoration: none; color: var(--ink);
}
.nav { display: flex; gap: 28px; font-family: var(--sans); font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--sans); color: var(--ink); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lede { font-size: 1.3rem; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); }

/* Buttons */
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600;
  display: inline-block; padding: 12px 22px; text-decoration: none;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
}
.btn:hover { background: #333; border-color: #333; }
.btn.secondary { background: var(--paper); color: var(--ink); }
.btn.secondary:hover { background: #f4f4f4; }

/* Hero (home) */
.hero { position: relative; padding: 96px 0 0; overflow: hidden; }
.hero h1 { max-width: 12em; }
.hero .lede { margin-top: 24px; }
.hero-chart { display: block; width: 100%; height: auto; margin-top: 56px; }
.hero-chart path {
  fill: none; stroke: var(--ink); stroke-width: 2.5;
  stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 2600; stroke-dashoffset: 2600;
  animation: draw 2.6s ease-out 0.3s forwards;
}
.hero-chart circle { fill: var(--ink); opacity: 0; animation: appear 0.4s ease-out 2.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-chart path { animation: none; stroke-dashoffset: 0; }
  .hero-chart circle { animation: none; opacity: 1; }
}

/* Sheets: white panels sitting on the grid */
.sheet { background: var(--paper); border: 1px solid var(--rule); padding: 48px; }
.section { padding: 72px 0; }
.section-head { margin-bottom: 32px; max-width: 40em; }
.section-head p { color: var(--ink-2); margin-top: 12px; }

/* Asset columns */
.assets { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.asset { padding: 28px 28px 8px 0; }
.asset + .asset { padding-left: 28px; border-left: 1px solid var(--rule); }
.asset h3 { margin-bottom: 12px; }
.asset p { color: var(--ink-2); font-size: 1.05rem; }

/* Principles list */
.principles { list-style: none; margin: 0; padding: 0; }
.principles li {
  display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 32px;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
}
.principles li:first-child { border-top: 1px solid var(--rule); }
.principles h3 { font-size: 1.15rem; }
.principles p { margin: 0; color: var(--ink-2); }

/* Notice */
.notice { border-left: 3px solid var(--ink); padding: 4px 0 4px 20px; max-width: 42em; }
.notice p:last-child { margin-bottom: 0; }

/* Article list */
.article-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.article-item { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.article-item h3 { font-size: 1.35rem; margin-bottom: 8px; }
.article-item h3 a { text-decoration: none; }
.article-item h3 a:hover { text-decoration: underline; }
.article-item p { margin: 0; color: var(--ink-2); max-width: 38em; }
.article-meta { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-3); margin-bottom: 6px; }
.article-links { font-family: var(--sans); font-size: 0.92rem; display: flex; flex-direction: column; gap: 6px; text-align: right; white-space: nowrap; }
.status { color: var(--ink-3); }

/* About */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.photo {
  aspect-ratio: 4 / 5; border: 1px solid var(--rule); background: #f6f6f6;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.9rem; color: var(--ink-3); text-align: center;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { margin: 24px 0 0; font-family: var(--sans); font-size: 0.95rem; }
.facts dt { color: var(--ink-3); font-size: 0.85rem; }
.facts dd { margin: 2px 0 14px; }
.prose { max-width: 38em; }
.prose h2 { font-size: 1.45rem; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }

/* Article page */
.video {
  position: relative; aspect-ratio: 16 / 9; background: #f2f2f2; border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; margin: 32px 0 12px;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { font-family: var(--sans); font-size: 0.92rem; color: var(--ink-3); margin-bottom: 40px; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--rule); padding: 48px 0 40px; font-family: var(--sans); font-size: 0.92rem; color: var(--ink-2); }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.disclaimer { font-size: 0.82rem; line-height: 1.6; color: var(--ink-3); max-width: 60em; }
.disclaimer p { margin-bottom: 0.7em; }

/* Responsive */
@media (max-width: 860px) {
  .assets { grid-template-columns: 1fr; }
  .asset, .asset + .asset { padding: 24px 0 4px; border-left: 0; }
  .asset + .asset { border-top: 1px solid var(--rule); }
  .principles li { grid-template-columns: 1fr; gap: 8px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .photo { max-width: 280px; }
  .sheet { padding: 28px 22px; }
  .article-item { grid-template-columns: 1fr; gap: 12px; }
  .article-links { text-align: left; flex-direction: row; gap: 20px; }
  .hero { padding-top: 64px; }
  .hero-chart { height: 150px; }
  .nav { gap: 20px; }
}
