/* Lambda Chi Capital — one stylesheet, no framework.
   Palette is the official brand set; nothing here is decorative for its own sake. */

@font-face {
  font-family: "Bevan";
  src: url("/assets/bevan.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --purple: #542a76;
  --gold: #e7b93c;
  --aubergine: #2e1747;
  --cream: #f6f1e4;
  --paper: #fffdf8;
  --brown: #8a5a2b;
  --ink: #2b1d3a;
  --muted: #6e5c83;
  --rule: #ded2bc;
  --rule-soft: #ece3d2;

  --hit: #1f7a4d;
  --miss: #a8341f;
  --open: #7a6a2e;

  --display: "Bevan", Georgia, "Times New Roman", serif;
  --prose: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --wide: 1120px;
  --read: 680px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--prose);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: var(--purple); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--aubergine); }

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

.masthead {
  background: var(--aubergine);
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 40;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 62px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
  padding: 9px 0;
}
.brand img { width: 46px; height: auto; display: block; }
.brand b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.055em;
  color: var(--cream);
  line-height: 1.15;
  text-transform: uppercase;
}
.brand span {
  display: block;
  font-family: var(--ui);
  font-size: 9.5px;
  letter-spacing: 0.17em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
}
nav.top {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}
nav.top a {
  font-family: var(--ui);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #d9cbe8;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 4px;
}
nav.top a:hover { background: rgba(255,255,255,.09); color: #fff; }
nav.top a[aria-current="page"] { color: var(--aubergine); background: var(--gold); }

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

.hero {
  background: var(--aubergine);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}
/* varsity stripes, the same motif as the channel banner */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg, transparent 0 62px, rgba(255,255,255,.035) 62px 106px);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-top: 54px; padding-bottom: 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 260px;
  gap: 44px;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5.1vw, 52px);
  line-height: 1.06;
  margin: 0 0 18px;
  letter-spacing: 0.005em;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lede {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.55;
  color: #e4d9f0;
  margin: 0 0 26px;
  max-width: 40em;
}
.hero-mark { justify-self: center; }
.hero-mark .disc {
  background: var(--cream);
  border: 5px solid var(--gold);
  border-radius: 50%;
  width: 250px;
  height: 250px;
  display: grid;
  place-items: center;
  padding: 34px 30px 34px 22px;
}
.hero-mark img { width: 100%; height: auto; display: block; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font-family: var(--ui);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 5px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--aubergine);
  display: inline-block;
  transition: transform .08s ease;
}
.btn:hover { color: var(--aubergine); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgba(231,185,60,.14); color: var(--gold); }

/* ---------- counters ---------- */

.counters {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.counters .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  padding: 0;
  background: var(--cream);
}
.counter {
  background: var(--cream);
  padding: 22px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.counter b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  color: var(--purple);
}
.counter span {
  display: block;
  font-family: var(--ui);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

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

section.band { padding: 58px 0; }
section.band.alt { background: var(--cream); border-block: 1px solid var(--rule); }

h2.kicker {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(23px, 3.3vw, 32px);
  line-height: 1.15;
  color: var(--aubergine);
  margin: 0 0 6px;
}
p.sub {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
  font-weight: 600;
}
p.sub.dark { color: var(--brown); }

.cards.four { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--purple);
  border-radius: 3px;
  padding: 22px 22px 24px;
}
.card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  margin: 0 0 9px;
  color: var(--purple);
  line-height: 1.25;
}
.card p { margin: 0 0 10px; font-size: 16px; color: #43354f; }
.card p:last-child { margin-bottom: 0; }
.card a.more {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
}
.card a.more:hover { text-decoration: underline; }

/* the standing promise block */
.promise {
  border-left: 5px solid var(--gold);
  background: var(--cream);
  padding: 24px 26px;
  margin: 30px 0 0;
  border-radius: 0 4px 4px 0;
}
.promise h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  color: var(--aubergine);
  text-transform: uppercase;
}
.promise p { margin: 0 0 10px; font-size: 16.5px; }
.promise p:last-child { margin: 0; }

/* ---------- prose pages ---------- */

.page-head {
  background: var(--aubergine);
  color: var(--cream);
  border-bottom: 4px solid var(--gold);
  padding: 40px 0 34px;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.1;
  margin: 0;
}
.page-head p {
  margin: 12px 0 0;
  color: #ddd0ec;
  font-size: 17px;
  max-width: 46em;
}

article.prose { padding: 44px 0 60px; }
article.prose h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.6vw, 33px);
  line-height: 1.15;
  color: var(--aubergine);
  margin: 46px 0 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--gold);
}
article.prose h1:first-child { margin-top: 0; }
article.prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(19px, 2.7vw, 24px);
  line-height: 1.2;
  color: var(--purple);
  margin: 38px 0 10px;
}
article.prose h3 {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--aubergine);
  margin: 26px 0 8px;
}
article.prose p { margin: 0 0 16px; }
article.prose ul, article.prose ol { margin: 0 0 18px; padding-left: 24px; }
article.prose li { margin-bottom: 7px; }
article.prose strong { color: var(--aubergine); }
article.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 34px 0;
}
article.prose blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  background: var(--cream);
  border-left: 5px solid var(--gold);
  border-radius: 0 4px 4px 0;
}
article.prose blockquote p:last-child { margin: 0; }
article.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--cream);
  border: 1px solid var(--rule-soft);
  padding: 1px 5px;
  border-radius: 3px;
}
article.prose em { color: #4a3a5c; }

.table-scroll { overflow-x: auto; margin: 0 0 22px; }
article.prose table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--ui);
  font-size: 15px;
  min-width: 460px;
}
article.prose th {
  text-align: left;
  background: var(--aubergine);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 12px;
  font-weight: 600;
}
article.prose td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
article.prose tbody tr:nth-child(even) { background: #faf6ec; }

/* table of contents for long pages */
.toc {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 18px 22px;
  margin: 0 0 34px;
}
.toc b {
  font-family: var(--ui);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 9px;
}
.toc ol { margin: 0; padding-left: 19px; font-family: var(--ui); font-size: 15px; }
.toc li { margin-bottom: 4px; }

/* ---------- ledger ---------- */

.controls {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  position: sticky;
  top: 62px;
  z-index: 30;
}
.controls .wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.controls select, .controls input {
  font-family: var(--ui);
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
.controls input { min-width: 210px; flex: 1 1 210px; }
.controls select:focus, .controls input:focus {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}
#count {
  font-family: var(--ui);
  font-size: 12.5px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}
button.reset {
  font-family: var(--ui);
  font-size: 12.5px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 4px;
  cursor: pointer;
  color: var(--muted);
}
button.reset:hover { border-color: var(--purple); color: var(--purple); }

.claims { padding: 26px 0 60px; }
.claim {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--purple);
  border-radius: 3px;
  background: var(--paper);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.claim .meta {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--ui);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 9px;
}
.claim .creator {
  font-weight: 700;
  color: var(--aubergine);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.claim .quote {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 11px;
  color: #372a45;
}
.claim .quote::before { content: "\201C"; color: var(--gold); }
.claim .quote::after  { content: "\201D"; color: var(--gold); }
.claim .foot {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--ui);
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed var(--rule-soft);
  padding-top: 9px;
}
.claim .foot a { font-weight: 600; text-decoration: none; }
.claim .foot a:hover { text-decoration: underline; }
.claim .id { font-family: var(--mono); font-size: 11px; color: #9a8bab; }

.tag {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: var(--cream);
  color: var(--muted);
  white-space: nowrap;
}
.tag.asset { background: var(--purple); color: #fff; border-color: var(--purple); }
.tag.type  { background: #efe6f7; color: var(--purple); border-color: #d9c8ea; }
.tag.open  { background: #fdf5da; color: var(--open); border-color: #e8d79a; }
.tag.hit   { background: #dff2e7; color: var(--hit); border-color: #a9d9c0; }
.tag.miss  { background: #fbe3de; color: var(--miss); border-color: #eab5a9; }
.tag.commentary { background: #f0eef2; color: #7d7288; border-color: #ddd7e3; }
.tag.dir-up   { background: #dff2e7; color: var(--hit); border-color: #a9d9c0; }
.tag.dir-down { background: #fbe3de; color: var(--miss); border-color: #eab5a9; }

.empty {
  text-align: center;
  padding: 54px 20px;
  color: var(--muted);
  font-family: var(--ui);
}

.notice {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 18px 22px;
  margin: 0 0 26px;
  font-size: 16.5px;
}
.notice b { color: var(--aubergine); }
.notice p { margin: 0 0 9px; }
.notice p:last-child { margin: 0; }

/* ---------- signup ---------- */

.signup {
  background: var(--aubergine);
  color: var(--cream);
  border-block: 4px solid var(--gold);
  padding: 46px 0;
}
.signup h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 30px);
  margin: 0 0 10px;
}
.signup p { color: #ded1ee; margin: 0 0 20px; max-width: 44em; }
.signup .fineprint { font-size: 13.5px; color: #b6a4cb; margin-top: 14px; }

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

footer.site {
  background: #241239;
  color: #bfaed3;
  padding: 40px 0 30px;
  font-family: var(--ui);
  font-size: 14px;
}
footer.site .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
footer.site b {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
footer.site a { color: #d9cbe8; text-decoration: none; display: block; margin-bottom: 6px; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .legal {
  border-top: 1px solid #3b2554;
  padding-top: 18px;
  font-size: 12.5px;
  color: #9b88b1;
  line-height: 1.6;
}
footer.site .legal strong { color: #cbbcdd; }

@media (max-width: 780px) {
  body { font-size: 17px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-mark { order: -1; justify-self: start; }
  .masthead .wrap { min-height: 0; }
  nav.top {
    margin-left: 0;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  nav.top::-webkit-scrollbar { display: none; }
  /* a hint that there is more nav off the right edge */
  nav.top { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
            mask-image: linear-gradient(90deg, #000 88%, transparent); }
  nav.top a { flex: 0 0 auto; }
  .hero-mark .disc { width: 178px; height: 178px; padding: 26px 22px 26px 16px; }
  .controls { position: static; }
  #count { margin-left: 0; width: 100%; }
}

@media print {
  .masthead, .controls, footer.site, .signup, .cta-row { display: none; }
  body { background: #fff; font-size: 11pt; }
}
