:root {
  --paper: #f6f8f7;
  --white: #ffffff;
  --ink: #1b2a2c;
  --muted: #55666a;
  --green: #0f3d3a;
  --green-dark: #0a2c2a;
  --brass: #b08a3e;
  --rule: #d3dcd9;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Header ribbon */
.ribbon {
  position: sticky; top: 0; z-index: 10;
  background: var(--green);
  color: #fff;
  border-bottom: 3px solid var(--brass);
}
.ribbon-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.ribbon nav { display: flex; gap: 0.25rem; }
.ribbon nav a {
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.ribbon nav a:hover { border-bottom-color: rgba(255,255,255,0.6); }
.ribbon nav a.active { border-bottom-color: var(--brass); }
.menu-btn {
  display: none;
  font: inherit; font-weight: 500;
  color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.4rem 0.9rem; cursor: pointer;
}

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; background: var(--white); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; color: var(--green); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 1.25rem 0 2rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--green); color: #fff;
  padding: 0.8rem 1.6rem;
  transition: background 0.2s;
}
.btn:hover { background: var(--green-dark); }

/* Ledger panel: the one memorable element */
.ledger {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--green);
  font-variant-numeric: tabular-nums;
}
.ledger > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.25rem; }
.ledger-head { font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--green); font-size: 0.95rem; }
.ledger-row { border-bottom: 1px solid var(--rule); }
.ledger-row span:last-child { color: var(--muted); text-align: right; }
.ledger-total {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--green);
  padding-top: 1.1rem !important;
}
.ledger-total span:last-child { border-bottom: 5px double var(--green); line-height: 1.2; }

/* Photos */
.band { margin: 0; }
.band img { display: block; width: 100%; height: clamp(200px, 30vw, 360px); object-fit: cover; object-position: center 45%; }
.about-photo { margin: 2rem 0 0; max-width: 38rem; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 4px solid var(--brass); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.two-col { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.prose p { max-width: 38rem; margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
p.prose { max-width: 38rem; margin: 0 0 1.5rem; }

/* Services as ledger entries */
.services { margin-top: 2.5rem; border-top: 2px solid var(--green); }
.service {
  display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 1.5rem 2.5rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--rule);
}
.service h3 { font-size: 1.6rem; }
.service p { margin: 0; color: var(--muted); }
.service ul { margin: 0; padding-left: 1.1rem; }
.service li { margin-bottom: 0.3rem; }
.service li::marker { color: var(--brass); }

/* Contact */
.contact { margin: 0; border-top: 2px solid var(--green); max-width: 32rem; }
.contact > div { display: grid; grid-template-columns: 6rem 1fr; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.contact dt { font-weight: 600; color: var(--muted); }
.contact dd { margin: 0; }
.contact a { text-decoration-color: var(--brass); text-underline-offset: 3px; }

/* Footer */
.footer { background: var(--green-dark); color: #d6e2df; font-size: 0.95rem; }
.footer a { text-decoration-color: var(--brass); text-underline-offset: 3px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 1.5rem 0; }

/* Mobile */
@media (max-width: 800px) {
  .menu-btn { display: block; }
  .ribbon nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--green); padding: 0.5rem 1.25rem 1rem;
    border-bottom: 3px solid var(--brass);
  }
  .ribbon nav.open { display: flex; }
  .ribbon nav a { padding: 0.75rem 0; }
  .hero-grid, .two-col, .service { grid-template-columns: 1fr; }
}

/* Scroll reveal: content is only hidden when JS is running */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--delay, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
