/* Common Cents — A Ledger Society | shared stylesheet */

:root {
  --navy: #16213E;
  --navy-deep: #0D1428;
  --parchment: #F4EEDF;
  --parchment-dim: #EBE1C6;
  --brass: #B4914A;
  --brass-light: #D8C388;
  --brass-deep: #8B6E32;
  --brick: #9C3B2E;
  --ink: #1C2333;
  --ink-soft: #5B6270;
  --line: rgba(28,35,51,0.14);
  --line-on-navy: rgba(244,238,223,0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, blockquote { font-family: 'Cormorant Garamond', serif; color: var(--ink); }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 44px; }

/* ---------- NAV ---------- */
nav.site {
  background: var(--navy);
  border-bottom: 1px solid var(--line-on-navy);
  position: sticky; top: 0; z-index: 50;
}
nav.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brandmark { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.seal {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: block;
}
.brand-text { line-height: 1.15; color: var(--parchment); }
.brand-text .name { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.28rem; letter-spacing: 0.01em; }
.brand-text .sub { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--brass-light); text-transform: uppercase; }

nav.site ul { list-style: none; display: flex; gap: 34px; font-size: 0.9rem; }
nav.site ul a { text-decoration: none; color: rgba(244,238,223,0.72); transition: color .15s; }
nav.site ul a:hover, nav.site ul a.active { color: var(--brass-light); }

.menu-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer;
  padding: 0;
}
.menu-toggle span { display: block; width: 100%; height: 1.5px; background: var(--parchment); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--navy);
  border-top: 1px solid var(--line-on-navy);
  border-bottom: 1px solid var(--line-on-navy);
  padding: 8px 44px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; }
.mobile-menu ul li { border-bottom: 1px solid var(--line-on-navy); }
.mobile-menu ul li:last-child { border-bottom: none; }
.mobile-menu ul a {
  display: block; padding: 16px 0; text-decoration: none;
  color: rgba(244,238,223,0.85); font-size: 1.02rem;
}
.mobile-menu ul a.active { color: var(--brass-light); }
.mobile-menu .btn { display: block; text-align: center; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brass); color: var(--navy-deep);
  font-weight: 600; font-size: 0.86rem;
  padding: 12px 24px; border-radius: 1px;
  text-decoration: none; letter-spacing: 0.01em;
  transition: background .15s;
  border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn:hover { background: var(--brass-light); }
.btn.outline {
  background: transparent; color: var(--parchment);
  border: 1px solid rgba(244,238,223,0.5);
}
.btn.outline:hover { background: rgba(244,238,223,0.08); border-color: var(--brass-light); color: var(--brass-light); }
.btn.outline.on-parchment { color: var(--ink); border-color: var(--line); }
.btn.outline.on-parchment:hover { background: rgba(28,35,51,0.05); border-color: var(--brass-deep); color: var(--brass-deep); }
.btn.dark { background: var(--navy); color: var(--parchment); }
.btn.dark:hover { background: var(--navy-deep); }

/* ---------- PAGE HERO (interior pages) ---------- */
header.page-hero {
  background: var(--navy);
  color: var(--parchment);
  padding: 64px 0 60px;
}
header.page-hero .eyebrow { color: var(--brass-light); margin-bottom: 16px; }
header.page-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 600; line-height: 1.08; color: var(--parchment); max-width: 20ch; }
header.page-hero p { margin-top: 18px; color: rgba(244,238,223,0.75); max-width: 56ch; font-size: 1.05rem; }

.ledger-tear {
  height: 40px;
  background: var(--parchment);
  clip-path: polygon(0% 100%, 4% 40%, 8% 100%, 12% 45%, 16% 100%, 20% 42%, 24% 100%, 28% 38%, 32% 100%, 36% 44%, 40% 100%, 44% 40%, 48% 100%, 52% 42%, 56% 100%, 60% 38%, 64% 100%, 68% 44%, 72% 100%, 76% 40%, 80% 100%, 84% 42%, 88% 100%, 92% 38%, 96% 100%, 100% 42%, 100% 100%);
}

/* ---------- HOME HERO ---------- */
header.hero { background: var(--navy); color: var(--parchment); padding: 88px 0 0; position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-bottom: 70px; }
.hero-inner { max-width: 720px; }
.hero .eyebrow { color: var(--brass-light); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.9rem, 5.4vw, 4.6rem); line-height: 1.06; font-weight: 600; letter-spacing: -0.005em; color: var(--parchment); }
.hero h1 em { font-style: italic; color: var(--brass-light); font-weight: 600; }
.hero .tagline { margin-top: 26px; font-size: 1.14rem; color: rgba(244,238,223,0.78); max-width: 46ch; font-family: 'Inter', sans-serif; }
.hero .cta-row { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.medallion {
  position: absolute; right: -20px; top: 30px; width: 300px; height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.medallion img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); }

/* ---------- shared section ---------- */
section { padding: 90px 0; border-top: 1px solid var(--line); }
section.tight { padding: 64px 0; }
section .kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
section .kicker .dash { width: 30px; height: 1.5px; background: var(--brass-deep); }
section h2 { font-size: 2.2rem; font-weight: 600; margin-bottom: 10px; }
section > .wrap > p.lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 62ch; margin-bottom: 30px; }

/* ---------- MISSION / QUOTE BLOCK ---------- */
.mission { background: var(--parchment-dim); border-top: none; }
.mission .wrap { max-width: 900px; }
.mission blockquote { font-size: clamp(1.4rem, 2.3vw, 1.8rem); line-height: 1.5; font-style: italic; font-weight: 500; color: var(--navy); border-left: 3px solid var(--brass); padding-left: 30px; }

/* ---------- TWO COL ---------- */
.two-col .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.two-col p { color: var(--ink-soft); margin-top: 10px; font-size: 1.02rem; }
.two-col p + p { margin-top: 14px; }

/* ---------- MEMBER CARD ---------- */
.member-card {
  background: var(--navy); color: var(--parchment);
  border: 1px solid var(--brass-deep); border-radius: 3px;
  padding: 26px 28px; position: relative;
}
.member-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(180,145,74,0.4); pointer-events: none; }
.member-card .eyebrow { color: var(--brass-light); }
.member-card .row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 0.88rem; border-bottom: 1px dotted rgba(244,238,223,0.25); }
.member-card .row:last-child { border-bottom: none; }
.member-card .row span:first-child { color: rgba(244,238,223,0.6); }

/* ---------- Q&A GRID (about) ---------- */
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; margin-top: 12px; }
.qa-item .q { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.28rem; margin-bottom: 8px; }
.qa-item .a { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- LEDGER ENTRIES ---------- */
.entries { margin-top: 36px; }
.entry { display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; align-items: baseline; padding: 22px 0; border-bottom: 1px dotted var(--line); }
.entry:first-child { border-top: 1px solid var(--ink); }
.entry .no { font-family: 'IBM Plex Mono', monospace; color: var(--brass-deep); font-size: 0.85rem; padding-top: 3px; }
.entry .body h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.32rem; font-weight: 600; margin-bottom: 4px; }
.entry .body p { color: var(--ink-soft); font-size: 0.94rem; max-width: 62ch; }
.entry .time { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; }

.not-doing { margin-top: 30px; padding: 20px 24px; background: var(--parchment-dim); border-left: 2px solid var(--brick); font-size: 0.88rem; color: var(--ink-soft); }
.not-doing .label { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--brick); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 6px; }

.callout { margin-top: 30px; padding: 24px 26px; background: var(--parchment); border: 1px solid var(--brass-deep); font-size: 0.94rem; color: var(--ink-soft); }
.callout .label { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--brass-deep); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 10px; }
.callout ul { margin-top: 10px; padding-left: 20px; }
.callout li { margin-bottom: 6px; }

/* ---------- Meeting summary cards ---------- */
.meeting-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.meeting-card { background: var(--parchment-dim); border: 1px solid var(--line); padding: 28px; position: relative; }
.meeting-card .tag { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--brass-deep); text-transform: uppercase; letter-spacing: 0.1em; }
.meeting-card h3 { font-size: 1.5rem; margin: 10px 0 12px; }
.meeting-card p { color: var(--ink-soft); font-size: 0.94rem; }
.meeting-card .status { position: absolute; top: 24px; right: 24px; font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--brass-deep); color: var(--brass-deep); }

/* ---------- GLOSSARY (dark section) ---------- */
.glossary { background: var(--navy); color: var(--parchment); border-top: none; }
.glossary .kicker .dash { background: var(--brass-light); }
.glossary .eyebrow { color: var(--brass-light); }
.glossary h2 { color: var(--parchment); }
.glossary p.lede { color: rgba(244,238,223,0.7) !important; }
.index-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.index-card { background: rgba(244,238,223,0.05); border: 1px solid rgba(180,145,74,0.35); padding: 24px; }
.index-card .term { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.3rem; color: var(--brass-light); }
.index-card .rule { height: 1px; background: rgba(180,145,74,0.3); margin: 12px 0; }
.index-card .plain { font-size: 0.92rem; color: rgba(244,238,223,0.75); }
.glossary-group { margin-top: 54px; }
.glossary-group:first-of-type { margin-top: 10px; }
.glossary-group .group-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 18px; opacity: 0.85; }

.topics { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.topics span { font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; padding: 7px 15px; border: 1px solid rgba(180,145,74,0.4); color: rgba(244,238,223,0.8); }

/* ---------- JOIN / CTA ---------- */
.join { text-align: center; }
.join .kicker { justify-content: center; }
.join h2 { max-width: 20ch; margin: 0 auto 14px; }
.join p.lede { margin: 0 auto 0; text-align: center; }
.join .cta-row { display: flex; justify-content: center; gap: 16px; margin-top: 30px; }

/* ---------- CONTACT FORM ---------- */
.contact-layout .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
form.rsvp { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-deep); }
.field input, .field select, .field textarea {
  font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--ink);
  background: var(--parchment); border: 1px solid var(--ink); border-radius: 1px;
  padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }

.contact-info-card { background: var(--navy); color: var(--parchment); border: 1px solid var(--brass-deep); padding: 30px 32px; position: relative; }
.contact-info-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(180,145,74,0.4); pointer-events: none; }
.contact-info-card .eyebrow { color: var(--brass-light); margin-bottom: 18px; }
.contact-info-card .row { display: flex; justify-content: space-between; padding: 12px 0; font-size: 0.92rem; border-bottom: 1px dotted rgba(244,238,223,0.25); }
.contact-info-card .row:last-child { border-bottom: none; }
.contact-info-card .row span:first-child { color: rgba(244,238,223,0.6); }
.contact-info-card .note { margin-top: 20px; font-size: 0.82rem; color: rgba(244,238,223,0.55); line-height: 1.6; }

.subscribe-band {
  background: var(--navy-deep);
  border-top: 1px solid var(--line-on-navy);
  padding: 56px 0;
}
.subscribe-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.subscribe-band .copy { max-width: 40ch; }
.subscribe-band .eyebrow { color: var(--brass-light); margin-bottom: 10px; }
.subscribe-band h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--parchment); font-weight: 600; }
.subscribe-band p { color: rgba(244,238,223,0.65); font-size: 0.9rem; margin-top: 8px; }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-form input[type="email"] {
  font-family: 'Inter', sans-serif; font-size: 0.92rem; color: var(--ink);
  background: var(--parchment); border: 1px solid transparent; border-radius: 1px;
  padding: 12px 16px; min-width: 260px;
}
.subscribe-form input[type="email"]:focus { outline: 2px solid var(--brass-light); outline-offset: 1px; }
.subscribe-form button { white-space: nowrap; }
.subscribe-note { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: rgba(244,238,223,0.4); margin-top: 10px; }
.subscribe-success { display: none; color: var(--brass-light); font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; }

footer {
  padding: 36px 0; background: var(--navy); color: rgba(244,238,223,0.55);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .two-col .wrap, .index-row, .qa-grid, .meeting-summary, .contact-layout .wrap { grid-template-columns: 1fr; }
  nav.site ul { display: none; }
  nav.site .wrap > a.btn { display: none; }
  .menu-toggle { display: flex; }
  .medallion { display: none; }
  .entry { grid-template-columns: 40px 1fr; }
  .entry .time { grid-column: 2; }
  .subscribe-band .wrap { flex-direction: column; align-items: flex-start; }
  .subscribe-form { width: 100%; }
  .subscribe-form input[type="email"] { flex: 1; min-width: 0; }
}
