/* ============================================================
   leedennistax.com — design tokens
   Palette: ledger green ink on cool paper, red-ink accent
   Type: Bitter (display slab) / Public Sans (body, the US
   government's own typeface) / IBM Plex Mono (labels, figures)
   Signature: the accountant's double rule — the single-then-
   double underline that closes a totaled column.
   ============================================================ */

:root {
  --paper: #f7f6f1;
  --ink: #17211b;
  --pine: #1f4a38;
  --pine-deep: #143528;
  --ledger-red: #b23a2b;
  --graphite: #5b6360;
  --rule: #d9d6ca;
  --rule-strong: #878c86;
  --card: #fdfcf9;

  --font-display: "Bitter", Georgia, serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;

  --measure: 62ch;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--pine-deep); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ledger-red);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand .brand-ea {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ledger-red);
  margin-left: 0.5rem;
  vertical-align: 0.12em;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--graphite);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ledger-red);
}

/* ---------- signature: the double rule ---------- */

.double-rule {
  border: 0;
  height: 7px;
  margin: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
  background: transparent;
}

.double-rule--red {
  border-top-color: var(--ledger-red);
  border-bottom-color: var(--ledger-red);
}

/* ---------- eyebrows / labels ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0 0 0.9rem;
}

.eyebrow .tick { color: var(--ledger-red); }

/* ---------- hero (home) ---------- */

.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.3rem;
  max-width: 21ch;
}

.hero .lede {
  max-width: var(--measure);
  font-size: 1.15rem;
  color: var(--graphite);
  margin: 0 0 2.2rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.btn {
  display: inline-block;
  background: var(--pine);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 3px;
  transition: background 120ms ease;
}
.btn:hover { background: var(--pine-deep); color: var(--paper); }

.btn-ghost {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 2px;
}
.btn-ghost:hover { border-bottom-color: var(--ledger-red); }

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

.section { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin: 0 0 1.6rem;
}

.section p { max-width: var(--measure); }

/* ---------- ledger rows (service lists) ---------- */

.ledger { list-style: none; margin: 0; padding: 0; }

.ledger li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.5rem 1.4rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}

.ledger li:last-child { border-bottom: 0; }

.ledger .line-no {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ledger-red);
  padding-top: 0.35rem;
}

.ledger h2,
.ledger h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}

.ledger p { margin: 0; color: var(--graphite); max-width: 58ch; }

/* ---------- page title block (interior pages) ---------- */

.page-title { padding: clamp(2.8rem, 7vw, 4.5rem) 0 0; }

.page-title h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
  max-width: 24ch;
}

.page-title .lede {
  max-width: var(--measure);
  color: var(--graphite);
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

.page-title .double-rule { margin-bottom: 0; }

/* ---------- credential strip ---------- */

.cred-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--graphite);
  padding: 1.1rem 0;
}

.cred-strip span::before {
  content: "✓ ";
  color: var(--pine);
}

/* ---------- prose / about ---------- */

.prose p { max-width: var(--measure); margin: 0 0 1.2rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- contact card ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.5rem 1.6rem;
}

.contact-card .eyebrow { margin-bottom: 0.5rem; }

.contact-card .big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-card p { margin: 0.4rem 0 0; color: var(--graphite); font-size: 0.95rem; }

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

.site-footer { margin-top: clamp(2rem, 5vw, 3.5rem); }

.site-footer .inner {
  padding: 1.6rem 0 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--graphite);
}

.site-footer a { color: var(--graphite); }
.site-footer a:hover { color: var(--ink); }

.footer-id { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; }

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .site-nav { gap: 0.8rem; font-size: 0.85rem; }
  .site-nav a { padding: 0.5rem 0.15rem 2px; }
  .ledger li { grid-template-columns: 2.4rem 1fr; }
}

/* ---------- contact form ---------- */

.contact-form { max-width: 36rem; }

.form-row { margin-bottom: 1.2rem; }

.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--pine);
  outline-offset: 1px;
  border-color: var(--pine);
}

.contact-form .btn { border: 0; cursor: pointer; font-family: var(--font-body); }

.form-status {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--pine-deep);
  min-height: 1.2em;
}

/* ---------- hero with photo ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(14rem, 19rem);
  gap: 3rem;
  align-items: center;
}

.hero-photo { margin: 0; }

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo { max-width: 13rem; }
}

/* ---------- alternating bio rows (About) ---------- */

.bio-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: 1.8rem 0;
}

.bio-row + .bio-row { border-top: 1px solid var(--rule); }

.bio-row--rev { grid-template-columns: 1fr 1.6fr; }
.bio-row--rev .bio-text { order: 2; }
.bio-row--rev .bio-photo { order: 1; }

.bio-text p:not(.eyebrow) { max-width: 58ch; margin: 0; }

.bio-photo { margin: 0; max-width: 21rem; justify-self: center; }

.bio-photo--wide { max-width: 24rem; }

.bio-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

.bio-photo figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--graphite);
  margin-top: 0.55rem;
  line-height: 1.45;
}

.cred-strip { border-top: 1px solid var(--rule); margin-top: 1rem; }

@media (max-width: 680px) {
  .bio-row, .bio-row--rev { grid-template-columns: 1fr; }
  .bio-row--rev .bio-text { order: 1; }
  .bio-row--rev .bio-photo { order: 2; }
  .bio-photo { max-width: 16rem; justify-self: start; }
}

/* ---------- paired bio photos ---------- */

.bio-photo--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  max-width: 24rem;
}

/* stacked bio row: text full-width on top, photos beneath */
.bio-row--stack { grid-template-columns: 1fr; }
.bio-row--stack .bio-photo { max-width: 36rem; justify-self: start; margin-top: 0.4rem; }

@media (max-width: 680px) {
  .bio-row--stack .bio-photo { max-width: 100%; }
}

/* ---------- accessibility utilities ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--pine);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 3px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- contact form note ---------- */

.form-note {
  max-width: 36rem;
  color: var(--graphite);
  font-size: 0.95rem;
  margin: -0.6rem 0 1.4rem;
}

/* keep eyebrow phrases intact when wrapping on small screens */
.nb { white-space: nowrap; }

/* honeypot field — offscreen, not display:none, so bots still fill it */
.hp-offscreen {
  position: absolute;
  left: -9999px;
}
