/* American Dividend Fund — design system
   Paper, ink, and a restrained gold: a bond certificate that learned to read. */

:root {
  --paper: #F7F4EC;
  --paper-deep: #F1EDE1;
  --card: #FDFCF8;
  --ink: #131B26;
  --ink-soft: #3A4353;
  --muted: #6E6A5F;
  --gold: #A5852E;
  --gold-deep: #8A6E24;
  --gold-tint: #F1E8CF;
  --line: rgba(19, 27, 38, 0.13);
  --line-strong: rgba(19, 27, 38, 0.32);
  --serif: 'Libre Caslon Text', 'Iowan Old Style', Georgia, serif;
  --sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px;
  --prose: 720px;
}

/* ---------------------------------------------------------------- reset-ish */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'liga' 1;
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgba(165, 133, 46, 0.55); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.wrap-prose { max-width: calc(var(--prose) + 5rem); }
.center { text-align: center; margin-top: 3.5rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.masthead.scrolled { box-shadow: 0 1px 0 var(--line-strong); }
.masthead-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-top: 0.8rem; padding-bottom: 0.8rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--ink); }
.brand .seal { color: var(--ink); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--serif); font-size: 1.02rem; letter-spacing: 0.14em;
  text-transform: uppercase; white-space: nowrap;
}
.brand-sub {
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.6rem); flex-wrap: wrap; }
.nav a {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft); padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.nav-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--gold-deep); border: 1px solid var(--gold); border-radius: 3px;
  padding: 0.25rem 0.55rem; font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* -------------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-guilloche {
  position: absolute; top: 50%; right: -14%; width: min(58vw, 780px);
  transform: translateY(-50%); pointer-events: none; color: var(--ink);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(4rem, 9vw, 8rem);
}
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  line-height: 1.06; letter-spacing: -0.015em;
}
.kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 1.4rem;
}
.kicker-light { color: var(--gold-tint); }
.lede {
  font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.72; color: var(--ink-soft); max-width: 38em; margin-top: 1.8rem;
}
.cta-row { display: flex; gap: 1rem; margin-top: 2.6rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.85rem 1.6rem; border-radius: 4px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--ink); transition: background 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #24344d; color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #10161f; }
.btn-gold:hover { background: var(--gold-tint); border-color: var(--gold-tint); color: #10161f; }

.hero-ring { justify-self: center; width: min(100%, 460px); }
.ring250 { width: 100%; color: var(--ink); }
.ring250 .tk { stroke: var(--line-strong); stroke-width: 1; }
.ring250 .tk.on { stroke: var(--gold); stroke-width: 2.2; }
.ring-num { font-family: var(--serif); font-size: 108px; fill: var(--ink); letter-spacing: -0.02em; }
.ring-cap { font-family: var(--sans); font-size: 14.5px; font-weight: 700; letter-spacing: 4.5px; fill: var(--ink-soft); }
.ring-sub { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 3.5px; fill: var(--gold-deep); }

/* ------------------------------------------------------------------ ticker */

.ticker { background: var(--ink); color: var(--paper); overflow: hidden; border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; white-space: nowrap; width: max-content; animation: tick 70s linear infinite; }
.ticker-track span {
  padding: 0.62rem 1.2rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.17em; text-transform: uppercase; color: #E9E2CF;
}
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-track span + span { display: none; }
  .ticker-track { white-space: normal; width: auto; }
}

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-label {
  display: flex; align-items: center; gap: 1.1rem; margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.sec-rule { flex: 1; height: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.15; letter-spacing: -0.01em;
}
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split-body { font-size: 1.02rem; line-height: 1.75; color: var(--ink-soft); max-width: 34em; }
.split-body p + p { margin-top: 1.1rem; }

.arrow-link {
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--gold-deep); border-bottom: 1px solid var(--gold);
  padding-bottom: 0.15rem;
}
.arrow-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.arrow-link::after { content: ' \2192'; }

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin-top: clamp(2.8rem, 5vw, 4.5rem);
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 0.7rem;
}
.stat-n {
  font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.stat-l { font-size: 0.85rem; line-height: 1.55; color: var(--muted); }

/* ----------------------------------------------------------- pillars chips */

.chip {
  display: inline-block; padding: 0.22rem 0.7rem; border-radius: 999px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
}
.chip-gold  { background: #F1E8CF; color: #7A6120; }
.chip-green { background: #E7EDE4; color: #40593E; }
.chip-blue  { background: #E2EBF1; color: #2E566E; }
.chip-clay  { background: #F4E6DC; color: #7C4A2F; }
.chip-plum  { background: #ECE6EF; color: #5A4767; }

/* ------------------------------------------------------------------- cards */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.9rem 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 0.85rem;
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.pcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.pnum {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}
.pcard-title { font-family: var(--serif); font-weight: 400; font-size: 1.32rem; line-height: 1.25; }
.pcard-title a { text-decoration: none; }
.pcard-title a:hover { color: var(--gold-deep); }
.pcard-title a::after { content: ''; position: absolute; inset: 0; }
.pcard { position: relative; }
.pcard-sum { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); flex: 1; }
.pcard-meta { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* -------------------------------------------------------------- principles */

.prin-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem;
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
}
.prin {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.9rem 1.7rem;
}
.prin-num {
  font-family: var(--serif); font-size: 0.95rem; color: var(--gold-deep);
  display: block; margin-bottom: 1.1rem;
}
.prin h3 { font-family: var(--serif); font-weight: 400; font-size: 1.18rem; margin-bottom: 0.7rem; }
.prin p { font-size: 0.88rem; line-height: 1.62; color: var(--ink-soft); }

/* -------------------------------------------------------------- press band */

.pressband { background: var(--ink); color: var(--paper); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.pressband-in { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.pressband h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2; max-width: 22em;
}
.pressband-sub { color: #B9B29E; margin-top: 1rem; max-width: 40em; font-size: 0.98rem; }

/* --------------------------------------------------------------- page head */

.pagehead {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.pagehead h1 { max-width: 14em; }
.pagehead .lede { max-width: 44em; }
.epigraph {
  margin-top: 2.6rem; padding-left: 1.4rem; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic; color: var(--muted); max-width: 36em;
}

/* -------------------------------------------------------------------- wall */

.wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.6rem;
}
.cell {
  border: 1px dashed var(--line); border-radius: 6px; padding: 0.85rem 0.9rem;
  min-height: 5.4rem; display: flex; flex-direction: column; gap: 0.3rem;
  font-size: 0.72rem; color: var(--muted); text-decoration: none;
}
.cell-n { font-weight: 700; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; color: inherit; }
.cell-t { font-family: var(--serif); font-size: 0.88rem; line-height: 1.3; color: var(--ink-soft); }
.cell-d { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: auto; }
.cell-on { border: 1px solid var(--line-strong); background: var(--card); }
.cell-on .cell-n { color: var(--gold-deep); }
.cell-on .cell-t { color: var(--ink); }
.cell-on:hover { border-color: var(--gold); }
.cell-tease { border-style: dashed; border-color: var(--line-strong); }

/* ----------------------------------------------------------------- article */

.art-head { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 4vw, 3rem); }
.art-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 16em; }
.standfirst {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.6; color: var(--muted); margin-top: 1.4rem; max-width: 34em;
}
.art-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.linkbtn {
  font: inherit; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: none; border: 1px solid var(--line-strong); border-radius: 3px; padding: 0.35rem 0.8rem;
  color: var(--ink-soft); cursor: pointer; text-decoration: none;
}
.linkbtn:hover { border-color: var(--ink); color: var(--ink); }

.prose { font-family: var(--serif); font-size: 1.13rem; line-height: 1.78; color: #222B38; padding-bottom: 1rem; }
.prose p + p { margin-top: 1.25rem; }
.prose h2 {
  font-family: var(--serif); font-weight: 400; font-size: 1.65rem; line-height: 1.25;
  margin: 2.8rem 0 1.1rem; padding-top: 2.2rem; border-top: 1px solid var(--line);
}
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin: 2.4rem 0 0.9rem; }
.prose ul, .prose ol { margin: 1.25rem 0 1.25rem 1.4rem; }
.prose li { margin-bottom: 0.65rem; }
.prose li::marker { color: var(--gold-deep); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose blockquote { margin: 1.8rem 0; padding-left: 1.4rem; border-left: 2px solid var(--gold); font-style: italic; color: var(--muted); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose a { color: var(--gold-deep); }
.prose code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.85em; background: var(--gold-tint); padding: 0.1em 0.35em; border-radius: 3px; }
.table-wrap { overflow-x: auto; margin: 1.8rem 0; border: 1px solid var(--line); border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.88rem; background: var(--card); }
.prose th {
  text-align: left; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 0.8rem 1rem; border-bottom: 1px solid var(--line-strong);
}
.prose td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: none; }

/* Sources section (last h3 + list) reads as a colophon */
.prose h3:last-of-type { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.prose h3:last-of-type ~ ul { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

.prose-essay > p:first-of-type::first-letter {
  font-size: 4.6em; float: left; line-height: 0.82; padding: 0.08em 0.12em 0 0;
  color: var(--gold-deep);
}

.steal {
  margin: 3rem 0 2.5rem; padding: 1.8rem 2rem; background: var(--gold-tint);
  border: 1px solid rgba(165, 133, 46, 0.4); border-radius: 8px;
}
.steal-head { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-bottom: 0.6rem; }
.steal p { font-size: 0.93rem; line-height: 1.65; color: #4A4230; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0 0 4.5rem; }
.pn-a {
  border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem 1.4rem;
  text-decoration: none; display: flex; flex-direction: column; gap: 0.35rem; background: var(--card);
}
.pn-a:hover { border-color: var(--line-strong); }
.pn-a span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-deep); }
.pn-a strong { font-family: var(--serif); font-weight: 400; font-size: 1.02rem; }
.pn-next { text-align: right; align-items: flex-end; }

/* ----------------------------------------------------------------- two-col */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.def-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 2rem 1.9rem; }
.def-card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-bottom: 1rem;
  padding-bottom: 0.8rem; border-bottom: 1px solid var(--line);
}
.def-card ul { list-style: none; }
.def-card li { padding-left: 1.3rem; position: relative; margin-bottom: 0.8rem; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
.def-card li::before { content: '\2014'; position: absolute; left: 0; color: var(--gold); }

/* ------------------------------------------------------------------ footer */

.footer { background: var(--ink); color: #C8C2B0; margin-top: 0; }
.footer .wrap { padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(247, 244, 236, 0.14); }
.foot-brand .seal { color: var(--gold); }
.foot-tag { font-family: var(--serif); font-size: 1.25rem; color: var(--paper); margin-top: 1.2rem; }
.foot-mission { font-size: 0.88rem; line-height: 1.65; margin-top: 0.7rem; max-width: 30em; }
.foot-col h3 {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.foot-col a { display: block; font-size: 0.9rem; text-decoration: none; color: #C8C2B0; padding: 0.28rem 0; }
.foot-col a:hover { color: var(--paper); }
.foot-legal { padding-top: 2rem; }
.foot-legal p { font-size: 0.78rem; line-height: 1.7; max-width: 75em; color: #948E7C; }
.foot-fine { margin-top: 1rem; }

/* ------------------------------------------------------------------ reveal */

[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-ring { width: min(75%, 380px); order: -1; }
  .hero-guilloche { display: none; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat-row, .card-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .stat-row, .card-grid, .two-col, .pn { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .brand-sub { display: none; }
  .nav { gap: 0.8rem; }
  .nav-badge { display: none; }
  .pn-next { text-align: left; align-items: flex-start; }
}

/* ------------------------------------------------------------------- print */

@media print {
  .masthead, .ticker, .footer, .steal, .pn, .cta-row, .art-meta, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose { font-size: 11pt; }
  a { text-decoration: none; color: #000; }
  .art-head { padding-top: 0; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
