/* Mamaroneck Student Capital — design system
   Palette sampled from the club's own logo (claw-mark mark). */

:root {
  --cream: #F9F1E5;
  --paper: #FFFDF8;
  --ink: #0A0A08;
  --ink-soft: #55504A;
  --orange: #E07A33;
  --orange-dark: #C4661F;
  --rule: #E3D9C8;
  --negative: #A3432D;

  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --wrap: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Ticker band ---------- */
.ticker-band {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 10px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 640px) {
  .ticker-band {
    flex-direction: column;
    gap: 4px;
    font-size: 10.5px;
    padding: 10px 20px;
  }
}
.ticker-band span:last-child { opacity: 0.65; }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
}
.nav-brand .wordmark {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.25;
}
.nav-brand .wordmark small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-top: 2px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.is-active {
  border-bottom-color: var(--orange);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
}

@media (max-width: 780px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links a { display: block; padding: 16px 28px; }
  .nav-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 26px;
  border: 2px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  padding: 68px 0 56px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mark img {
  width: 100%;
  max-width: 380px;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  display: inline-block;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.12;
  max-width: 34ch;
  margin: 0 0 18px;
}
.hero h1 .hl { color: var(--orange); }
.hero .lede {
  font-size: 19px;
  max-width: 50ch;
  color: var(--ink-soft);
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 52px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 120px; }
.section:last-of-type { border-bottom: none; }
.section--dark { background: var(--ink); color: var(--cream); border-bottom: none; }
.section--dark .eyebrow { color: var(--orange); }
.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 28px;
}
.section .section-lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: -12px 0 32px;
}
.section--dark .section-lede { color: #d8d2c8; }

.prose p { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); max-width: 68ch; }
.prose p + p { margin-top: 18px; }

.callout {
  border-left: 3px solid var(--orange);
  padding: 4px 0 4px 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-top: 28px;
}

/* Page header banner (non-home pages) */
.page-header {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--rule);
}
.page-header .eyebrow { margin-bottom: 8px; }
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  white-space: nowrap;
  margin: 0 0 10px;
}

@media (max-width: 640px) {
  .page-header h1 { white-space: normal; }
}
.page-header p { font-size: 17px; color: var(--ink-soft); max-width: 60ch; margin: 0; }

/* ---------- Highlight cards (home) ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.highlight-card {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 26px;
}
.highlight-card .no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange-dark);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.highlight-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 17px; margin: 0 0 10px; }
.highlight-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

@media (max-width: 780px) {
  .highlights { grid-template-columns: 1fr; }
}

/* ---------- Annual cycle diagram (signature element) ---------- */
.cycle-wrap { display: flex; justify-content: center; padding: 10px 0 4px; }
.cycle-wrap svg { width: 100%; max-width: 600px; height: auto; }
.cycle-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; fill: var(--ink); }
.cycle-title { font-family: var(--font-display); font-size: 14px; font-weight: 400; fill: var(--ink); }
.cycle-sub { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-soft); }

.timeline-detail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.timeline-phase {
  border-top: 3px solid var(--orange);
  padding-top: 18px;
}
.timeline-phase .no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange-dark);
  font-weight: 600;
}
.timeline-phase h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  margin: 8px 0 14px;
}
.timeline-phase ul { margin: 0; padding-left: 18px; }
.timeline-phase li {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .timeline-detail { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .timeline-detail { grid-template-columns: 1fr; }
}

/* ---------- Team ---------- */
.advisor-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 30px;
  align-items: start;
}
.advisor-card .avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
}
.advisor-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin: 0 0 4px; }
.advisor-card .role { font-family: var(--font-mono); font-size: 12px; color: var(--orange-dark); font-weight: 600; margin-bottom: 14px; }
.advisor-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; margin: 0; }
.advisor-card .email { margin-top: 14px; font-size: 14px; }
.advisor-card .email a { color: var(--orange-dark); font-weight: 600; text-decoration: none; }

@media (max-width: 600px) {
  .advisor-card { grid-template-columns: 1fr; }
}

.group-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  font-weight: 600;
  margin: 0 0 16px;
}

/* ---------- Org chart ---------- */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 20px;
}
.org-tier {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}
.org-tier--leadership-row { padding-bottom: 36px; }

.org-subgroup {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.org-subgroup::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 36px;
  background: var(--ink);
  transform: translateX(-1px);
}

.org-tier--branch { border-top: 2px solid var(--ink); padding-top: 36px; }
.org-tier--branch .org-node { position: relative; }
.org-tier--branch .org-node::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 50%;
  width: 2px;
  height: 36px;
  background: var(--ink);
  transform: translateX(-1px);
}

.org-node {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 18px 16px;
  width: 168px;
  text-align: center;
}
.org-node--advisor { width: 184px; }
.org-node--advisor-side { border-style: dashed; }
.org-node--group { width: 200px; text-align: left; }

.org-divider {
  width: 2px;
  align-self: stretch;
  background: var(--rule);
}

.org-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  overflow: hidden;
  margin: 0 auto 12px;
}
.org-node--group .org-avatar { display: none; }
.org-avatar img { width: 100%; height: 100%; object-fit: cover; }

.org-node h4 { font-family: var(--font-display); font-weight: 400; font-size: 15px; margin: 0 0 5px; }
.org-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.org-node--group .org-role { display: block; margin-bottom: 10px; }

.org-member-list { list-style: none; margin: 0; padding: 0; }
.org-member-list li {
  font-size: 13.5px;
  padding: 5px 0;
  border-top: 1px solid var(--rule);
}
.org-member-list li:first-child { border-top: none; }

@media (max-width: 700px) {
  .org-tier,
  .org-tier--branch,
  .org-tier--leadership-row,
  .org-subgroup {
    flex-direction: column;
    align-items: center;
    border-top: none;
    padding-top: 0;
    padding-bottom: 20px;
    gap: 20px;
  }
  .org-subgroup::after,
  .org-tier--branch .org-node::before {
    display: none;
  }
  .org-divider {
    display: none;
  }
  .org-node,
  .org-node--advisor,
  .org-node--group {
    width: 100%;
    max-width: 280px;
  }
}

.member-list {
  columns: 3;
  column-gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.member-list li {
  font-size: 14.5px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  break-inside: avoid;
}

@media (max-width: 780px) {
  .member-list { columns: 2; }
}
@media (max-width: 480px) {
  .member-list { columns: 1; }
}

.roster-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 20px;
}

/* ---------- Donate placeholder ---------- */
.donate-box {
  border: 2px dashed var(--orange-dark);
  background: var(--paper);
  padding: 34px;
  text-align: left;
  max-width: 560px;
}
.donate-box .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}
.donate-box h3 { font-family: var(--font-display); font-weight: 400; font-size: 19px; margin: 0 0 12px; }
.donate-box p { font-size: 15px; color: var(--ink-soft); margin: 0 0 20px; }

/* ---------- Newsletter ---------- */
.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.newsletter-card {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 24px;
}
.newsletter-card.is-empty {
  border-style: dashed;
  border-color: var(--orange-dark);
}
.newsletter-card .date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-dark);
  display: block;
  margin-bottom: 12px;
}
.newsletter-card.is-empty .date { color: var(--ink-soft); }
.newsletter-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 17px; margin: 0 0 16px; }
.newsletter-card .btn { font-size: 13px; padding: 10px 18px; }

@media (max-width: 780px) {
  .newsletter-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-block {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 30px;
  max-width: 480px;
  margin: 0 auto;
}
.contact-block .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  font-weight: 600;
}
.contact-block .value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  margin: 8px 0 22px;
  word-break: break-word;
}
.contact-block .value a { text-decoration: none; color: var(--ink); }
.contact-block .value a:hover { color: var(--orange-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 30px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  opacity: 0.8;
}

/* ---------- Portfolio: summary stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat-card {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 20px;
}
.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
}
.stat-card .stat-value.is-negative { color: var(--negative); }

@media (max-width: 780px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ---------- Portfolio: allocation donut ---------- */
.portfolio-chart-wrap {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.portfolio-donut {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  flex-shrink: 0;
}
.portfolio-donut-center {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}
.portfolio-donut-center .value { font-family: var(--font-display); font-size: 19px; line-height: 1.1; }
.portfolio-donut-center .label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.portfolio-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 220px; }
.portfolio-legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.portfolio-legend .swatch { width: 14px; height: 14px; flex-shrink: 0; border-radius: 2px; }
.portfolio-legend .lbl { flex: 1; }
.portfolio-legend .amt { color: var(--ink-soft); font-size: 13px; }
.portfolio-legend .pct { font-family: var(--font-mono); font-size: 13px; font-weight: 600; min-width: 44px; text-align: right; }

/* ---------- Portfolio: holdings table ---------- */
.table-scroll { overflow-x: auto; }
.portfolio-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 740px; }
.portfolio-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}
.portfolio-table th:nth-child(3),
.portfolio-table th:nth-child(4),
.portfolio-table th:nth-child(5) { text-align: right; }
.portfolio-table td {
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.portfolio-table .name { font-weight: 600; }
.portfolio-table .thesis { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.portfolio-table .sector { color: var(--ink-soft); white-space: nowrap; }
.portfolio-table .amt-col {
  font-family: var(--font-mono);
  text-align: right;
  white-space: nowrap;
  color: var(--ink-soft);
}
.portfolio-table .ret {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.portfolio-table .ret.is-negative { color: var(--negative); }
.portfolio-table .ret.is-positive { color: var(--orange-dark); }

.ticker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}
.portfolio-legend .ticker { margin-left: 2px; }

.donation-stat {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 640px;
}
.donation-stat .stat-value { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin-top: 8px; }
