/* The Retention Ledger (huntington.top) — "Punch Card" visual.
   Warm cream ground (#f3e9db) + clay-brown accent (#8a4b23) + espresso ink (#2e2016).
   Motif: a punched membership card — stamp grids, punched-hole strips, card slots.
   Corners are square everywhere EXCEPT the round stamps (.stamp). Sans-serif throughout. */

:root {
  --bg: #f3e9db;
  --panel: #fffaf2;
  --ink: #2e2016;
  --muted: #7a6654;
  --line: #dcc9b2;
  --accent: #8a4b23;
  --accent-d: #6d3a19;
  --hole: rgba(46, 32, 22, .16);
  --k-points: #8a4b23;
  --k-tier: #b8860b;
  --k-sub: #2f6f68;
  --k-metric: #7a3b6b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Trebuchet MS", "Segoe UI", "Gill Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.66;
  font-size: 16px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); text-decoration: underline; }

/* ---- stamps: the ONLY rounded element on the site ---- */
.stamp {
  display: inline-block; width: 20px; height: 20px; border-radius: 50%;
  border: 4px solid var(--accent); background: var(--panel);
}
.stamp.sm { width: 12px; height: 12px; border-width: 3px; }
.stamp-row { display: flex; gap: 9px; align-items: center; }

/* ---- header: cream bar over a punched-hole strip ---- */
.punch-head { background: var(--panel); border-bottom: 3px solid var(--accent); }
.punch-head-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; }
.punch-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.punch-mark { display: inline-flex; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; letter-spacing: .2px; }
.brand-tag { font-size: 11px; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; }
.punch-nav { display: flex; gap: 22px; }
.punch-nav a {
  color: var(--ink); font-size: 14px; font-weight: 700; padding: 3px 0;
  border-bottom: 2px solid transparent;
}
.punch-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }
.punch-strip {
  padding: 0 20px 9px;
  background-image: radial-gradient(circle, var(--hole) 2.4px, transparent 3px);
  background-size: 15px 15px; background-position: 0 50%;
  min-height: 22px; display: flex; align-items: flex-end;
}

/* ---- hero: a punched card face ---- */
.punch-hero {
  background-color: var(--panel);
  background-image: radial-gradient(circle, var(--hole) 2px, transparent 2.6px);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--line);
  padding: 50px 0;
}
.hero-kicker { color: var(--accent); font-size: 12px; letter-spacing: 2.5px; font-weight: 700; margin-bottom: 12px; }
.punch-hero h1 { font-size: 35px; line-height: 1.14; font-weight: 700; margin-bottom: 14px; max-width: 780px; }
.hero-lede { max-width: 700px; color: var(--muted); font-size: 17px; }

/* ---- sections ---- */
section { padding: 28px 0; }
.rail-label {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  font-weight: 700; margin-bottom: 14px;
}
.stack-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.stack-head h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.stack-dot { display: inline-block; width: 14px; height: 14px; background: var(--accent); }
.stack-dot.k-tier { background: var(--k-tier); }
.stack-dot.k-sub { background: var(--k-sub); }
.stack-dot.k-metric { background: var(--k-metric); }
.stack-more { font-size: 13px; font-weight: 700; }

/* ---- card slots (category nav) ---- */
.slot-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.slot-card {
  display: flex; flex-direction: column; gap: 4px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-top: 7px solid var(--accent);
  padding: 14px 16px;
}
.slot-card:hover { text-decoration: none; border-color: var(--accent); }
.slot-card .slot-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.slot-card .slot-name { font-weight: 700; font-size: 16px; }
.slot-card.k-tier { border-top-color: var(--k-tier); }
.slot-card.k-sub { border-top-color: var(--k-sub); }
.slot-card.k-metric { border-top-color: var(--k-metric); }
.rail-inline { padding-top: 4px; }

/* ---- the program wall + member-card tiles ---- */
.card-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.program-tile {
  display: flex; flex-direction: column; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-bottom: 4px solid var(--accent);
}
.program-tile:hover { border-color: var(--accent); text-decoration: none; }
.tile-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; border-bottom: 1px dashed var(--line);
}
.tile-tag { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.k-points { color: var(--k-points); }
.k-tier { color: var(--k-tier); }
.k-sub { color: var(--k-sub); }
.k-metric { color: var(--k-metric); }
.tile-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.tile-title { font-weight: 700; font-size: 16px; line-height: 1.32; }
.tile-facts { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.frow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.frow .fk { flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.frow .fv { text-align: right; color: var(--ink); }
.tile-note { font-size: 13px; color: var(--muted); }
.tile-punch { padding: 11px 14px; border-top: 1px dashed var(--line); }
.tile-punch .stamp-row { gap: 7px; }

/* ---- page head ---- */
.crown { padding: 34px 0 10px; }
.trail { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.trail a { color: var(--muted); }
.crown h1 { font-size: 30px; line-height: 1.2; font-weight: 700; }
.crown-lede { color: var(--muted); margin-top: 8px; }

/* ---- entry layout: program doc + article ---- */
.ledger-grid { display: grid; grid-template-columns: 322px 1fr; gap: 26px; padding-top: 22px; padding-bottom: 40px; }
.program-doc { align-self: start; background: var(--panel); border: 1px solid var(--line); border-top: 7px solid var(--accent); }
.doc-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc-cap { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 14px 6px; }
.spec-list { font-variant-numeric: tabular-nums; }
.spec-row { display: flex; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row:last-child { border-bottom: 0; }
.spec-k {
  flex: 0 0 44%; padding: 9px 14px; color: var(--muted); border-right: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.spec-v { flex: 1; padding: 9px 14px; }
.spec-row.is-key { background: rgba(138, 75, 35, .08); box-shadow: inset 4px 0 0 var(--accent); }
.spec-row.is-key .spec-v { font-weight: 600; }

.program-article { background: var(--panel); border: 1px solid var(--line); padding: 26px 30px; }
.program-article-legal h2 { font-size: 18px; font-weight: 700; margin: 18px 0 8px; }
.program-article-legal p { margin-bottom: 12px; }
.note-block { margin-bottom: 24px; }
.note-block:last-child { margin-bottom: 0; }
.note-block h2 { display: flex; align-items: baseline; gap: 10px; font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.note-num { font-size: 12px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); padding: 1px 6px; font-variant-numeric: tabular-nums; }
.program-article p { margin-bottom: 12px; color: #40301f; }
.program-article p:last-child { margin-bottom: 0; }
.backlinks-list { list-style: none; }
.backlinks-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.backlinks-list li:last-child { border-bottom: 0; }

/* ---- footer ---- */
.punch-foot { background: var(--panel); border-top: 3px solid var(--accent); margin-top: 24px; }
.punch-foot .punch-strip { padding-top: 9px; align-items: flex-start; }
.punch-foot-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding: 22px 20px 28px; }
.foot-brand { flex: 1 1 340px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.foot-nav { display: flex; gap: 16px; }
.foot-nav a { color: var(--ink); font-size: 14px; font-weight: 700; }
.fine-print { flex: 1 1 100%; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .card-wall { grid-template-columns: repeat(2, 1fr); }
  .slot-rail { grid-template-columns: repeat(2, 1fr); }
  .ledger-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .card-wall, .slot-rail { grid-template-columns: 1fr; }
  .punch-head-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .punch-nav { gap: 14px; }
  .punch-hero h1 { font-size: 27px; }
  .program-article { padding: 20px 18px; }
}
