:root {
  --pad: #f7ec9f;
  --pad-2: #fbf4c6;
  --sheet: #fffdf0;
  --rule: #7fb596;
  --rule-soft: rgba(63, 138, 104, .28);
  --forest: #123f30;
  --ink: #1c2822;
  --muted: #4c5a52;
  --cran: #9b1d3f;
  --cran-d: #7a1431;
  --f-head: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --f-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  --ledger: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--rule-soft) 35px, var(--rule-soft) 36px);
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { font-family: var(--f-body); color: var(--ink); background: var(--sheet); font-size: 1.07rem; line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; color: var(--forest); line-height: 1.1; }
a { color: var(--cran); }
a:hover { color: var(--cran-d); }
img { max-width: 100%; }

/* ledger motifs */
.dbl {
  display: inline-block;
  padding-bottom: .12em;
  border-bottom: 3px double var(--cran);
}
.eyebrow {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cran);
  margin-bottom: .6rem;
}
.ledger-bg { background-color: var(--sheet); background-image: var(--ledger); }
.margin-line { position: relative; }
.margin-line::before {
  content: "";
  position: absolute; left: clamp(14px, 4vw, 56px); top: 0; bottom: 0;
  border-left: 2px solid rgba(155, 29, 63, .35);
  border-right: 1px solid rgba(155, 29, 63, .35);
  width: 4px;
  pointer-events: none;
}

/* utility bar + nav */
.util-bar { background: var(--forest); color: #e9f3ec; font-size: .92rem; }
.util-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.util-bar a:hover { text-decoration: underline; }
.util-bar .sep { opacity: .4; margin: 0 .7rem; }
.site-nav { background: var(--pad); border-bottom: 3px double var(--forest); padding: .55rem 0; }
.site-nav .navbar-brand { display: flex; align-items: center; gap: .7rem; white-space: normal; }
.site-nav .brand-logo { width: 46px; height: 46px; border-radius: 6px; border: 2px solid var(--forest); background: #fff; object-fit: cover; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; color: var(--forest); line-height: 1.05; display: block; }
.brand-sub { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; }
.site-nav .nav-link { font-weight: 700; color: var(--forest); padding: .5rem .8rem; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: var(--cran); }
.btn-cran { background: var(--cran); color: #fff; border: 2px solid var(--cran); font-weight: 700; border-radius: 4px; padding: .65rem 1.3rem; }
.btn-cran:hover { background: var(--cran-d); border-color: var(--cran-d); color: #fff; }
.btn-ink { background: transparent; color: var(--forest); border: 2px solid var(--forest); font-weight: 700; border-radius: 4px; padding: .65rem 1.3rem; }
.btn-ink:hover { background: var(--forest); color: #fff; }
.navbar-toggler { border: 2px solid var(--forest); }

/* hero */
.hero { background-color: var(--pad); background-image: var(--ledger); position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: clamp(14px, 4vw, 56px); top: 0; bottom: 0; width: 4px;
  border-left: 2px solid rgba(155, 29, 63, .45); border-right: 1px solid rgba(155, 29, 63, .45);
}
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); letter-spacing: -.01em; margin-bottom: 1.2rem; color: var(--forest); }
.hero .lead { font-size: 1.28rem; max-width: 36rem; color: var(--ink); }
.hero-photo { border: 3px solid var(--forest); box-shadow: 10px 10px 0 var(--cran); border-radius: 4px; transform: rotate(1.2deg); width: 100%; aspect-ratio: 9 / 5; object-fit: cover; }
.hero-tape {
  font-family: var(--f-mono); background: var(--forest); color: #fff; padding: .55rem 1rem; display: inline-block;
  font-size: .9rem; letter-spacing: .04em;
}
.tally { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 2.2rem; padding-top: 1.1rem; border-top: 2px solid var(--forest); }
.tally .num { font-family: var(--f-mono); font-weight: 700; font-size: 1.9rem; color: var(--forest); border-bottom: 3px double var(--cran); display: inline-block; line-height: 1.15; }
.tally .lbl { display: block; font-size: .9rem; color: var(--muted); margin-top: .3rem; }

/* sections */
section { padding: clamp(3.2rem, 6vw, 5.5rem) 0; }
.sec-title { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 1rem; }
.sec-intro { max-width: 40rem; color: var(--muted); font-size: 1.12rem; }

/* services as ledger sheets */
.svc-sheet { background: var(--sheet); border: 2px solid var(--forest); border-radius: 4px; height: 100%; box-shadow: 6px 6px 0 var(--pad); }
.svc-sheet header { background: var(--forest); color: #fff; padding: .85rem 1.2rem; }
.svc-sheet header h3 { color: #fff; font-size: 1.45rem; margin: 0; }
.svc-sheet .blurb { padding: 1rem 1.2rem .4rem; color: var(--muted); font-size: 1rem; margin: 0; }
.svc-sheet ul { list-style: none; margin: 0; padding: .4rem 1.2rem 1.1rem; }
.svc-sheet li { display: flex; align-items: baseline; gap: .6rem; padding: .4rem 0; border-bottom: 1px dotted var(--rule); font-weight: 600; }
.svc-sheet li:last-child { border-bottom: 0; }
.svc-sheet li::before { content: "\2713"; color: var(--cran); font-family: var(--f-mono); font-weight: 700; }
.problems { background: var(--forest); color: #fff; }
.problems h2 { color: #fff; }
.problems .dbl { border-bottom-color: var(--pad); }
.problems .eyebrow { color: var(--pad); }
.problems .chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.problems .chips li { border: 1.5px solid rgba(255,255,255,.55); border-radius: 3px; padding: .3rem .8rem; font-family: var(--f-mono); font-size: .92rem; }
.problems .btn-cran { background: var(--pad); color: var(--forest); border-color: var(--pad); }
.problems .btn-cran:hover { background: #fff; border-color: #fff; color: var(--forest); }
.problems img { border: 3px solid var(--pad); border-radius: 4px; width: 100%; aspect-ratio: 9 / 5; object-fit: cover; }

/* about */
.principle { border-top: 3px double var(--forest); padding-top: .9rem; height: 100%; }
.principle h3 { font-size: 1.5rem; }
.principle p { color: var(--muted); margin: 0; }
.about-photo { width: 100%; aspect-ratio: 9 / 5; object-fit: cover; border: 3px solid var(--forest); border-radius: 4px; box-shadow: -10px 10px 0 var(--pad); }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.4rem; }
.badges img { height: 84px; width: auto; }
.badges .bbb { font-family: var(--f-mono); font-size: .85rem; font-weight: 700; border: 2px solid var(--forest); padding: .55rem .8rem; border-radius: 4px; color: var(--forest); text-decoration: none; display: inline-block; }
.badges .bbb:hover { background: var(--forest); color: #fff; }

/* team */
.team { background: var(--pad-2); }
.partner { background: var(--sheet); border: 2px solid var(--forest); border-radius: 4px; padding: 1.4rem; height: 100%; display: flex; flex-direction: column; gap: .8rem; }
.partner .head { display: flex; gap: 1rem; align-items: center; }
.partner .head img { width: 84px; height: 100px; object-fit: cover; border: 2px solid var(--forest); border-radius: 4px; flex: none; }
.partner h3 { font-size: 1.35rem; margin: 0; }
.partner .role { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cran); margin: .2rem 0 0; }
.partner p { margin: 0; font-size: 1rem; color: var(--ink); }
.partner .creds { font-family: var(--f-mono); font-size: .85rem; color: var(--forest); }
.partner a.mail { font-weight: 700; margin-top: auto; word-break: break-word; }
.roster { list-style: none; margin: 0; padding: 0; border-top: 3px double var(--forest); }
.roster li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.roster img, .roster .noph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--forest); }
.roster .noph { background: var(--pad); display: block; border-style: dashed; }
.roster h4 { font-size: 1.15rem; margin: 0; }
.roster .r { font-size: .92rem; color: var(--muted); margin: 0; }
.roster .since { font-family: var(--f-mono); font-size: .8rem; color: var(--cran); }
.roster p.m { margin: .15rem 0 0; font-size: .95rem; }
.roster a { word-break: break-word; }
.involve { list-style: none; padding: 0; margin: 0; }
.involve li { padding: .35rem 0 .35rem 1.4rem; position: relative; }
.involve li::before { content: "\2022"; position: absolute; left: .3rem; color: var(--cran); font-weight: 700; }
.events { margin-top: 3rem; padding: 1.4rem 1.6rem; border: 2px dashed var(--forest); border-radius: 4px; background: var(--sheet); }
.events ul { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.events li::before { content: "\2192\00a0"; color: var(--cran); font-weight: 700; }

/* resources */
.res { display: block; background: var(--sheet); border: 2px solid var(--forest); border-radius: 4px; padding: 1.2rem 1.3rem; height: 100%; text-decoration: none; color: var(--ink); box-shadow: 5px 5px 0 var(--pad); transition: transform .15s ease, box-shadow .15s ease; }
.res:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--cran); color: var(--ink); }
.res h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.res span { color: var(--muted); font-size: 1rem; }
.res .go { display: block; margin-top: .7rem; font-family: var(--f-mono); font-weight: 700; color: var(--cran); font-size: .88rem; }

/* contact */
.contact { background: var(--pad); background-image: var(--ledger); }
.contact-card { background: var(--sheet); border: 2px solid var(--forest); border-radius: 4px; padding: 1.8rem; box-shadow: 8px 8px 0 var(--forest); }
.contact-card dl { margin: 0; }
.contact-card dt { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cran); margin-top: 1rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0; font-size: 1.12rem; font-weight: 600; word-break: break-word; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 3px solid var(--forest); border-radius: 4px; display: block; }

/* footer */
.site-footer { background: var(--forest); color: #dbeadf; padding: 3rem 0 1.6rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer .foot-logo { width: 54px; height: 54px; border-radius: 8px; background: var(--sheet); padding: 4px; object-fit: contain; }
.site-footer h4 { color: #fff; font-size: 1.15rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .15rem 0; }
.powered { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .9rem; }
.powered a { font-family: var(--f-mono); font-weight: 700; text-decoration: none; background: var(--pad); color: var(--forest); padding: .25rem .7rem; border-radius: 3px; }
.powered a:hover { background: #fff; }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: .8rem 0 .4rem; }
  .hero-photo { transform: none; margin-top: 1rem; }
  .about-photo { box-shadow: 8px 8px 0 var(--pad); }
}
@media (max-width: 575.98px) {
  body { font-size: 1.02rem; }
  .util-bar .hide-xs { display: none; }
  .brand-name { font-size: 1.12rem; }
  .brand-sub { font-size: .6rem; }
  .contact-card { padding: 1.3rem; box-shadow: 5px 5px 0 var(--forest); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .res { transition: none; } }
