/* =========================================================================
   Barry J. Bendes — Ink Editorial
   Warm paper · near-black ink · oxblood accent
   Fraunces (display) · Source Serif 4 (body) · Hanken Grotesk (UI labels)
   No frameworks. One stylesheet. Hand-written.
   ========================================================================= */

:root {
  --paper:        #f6f4ef;
  --paper-deep:   #efeae0;
  --ink:          #16140f;
  --ink-80:       #34302a;
  --muted:        #6b6357;
  --accent:       #6e1f24;   /* oxblood */
  --accent-deep:  #4e1419;
  --accent-soft:  #9c5258;
  --link:         #6e1f24;
  --link-hover:   #4e1419;
  --link-visited: #7c3a3f;
  --rule:         #ddd6c8;
  --rule-strong:  #c7bda8;
  --header-bg:    #16140f;
  --header-text:  #f6f4ef;
  --focus:        #6e1f24;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui:      "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure:      720px;
  --measure-wide: 1020px;
}

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

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.66;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.14;
  letter-spacing: -0.012em;
}

h1 { font-size: 2.6rem; font-weight: 600; }
h2 { font-size: 1.75rem; margin-top: 1.9em; }
h3 { font-size: 1.3rem; font-weight: 600; margin-top: 1.7em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--ink-80);
}

strong, b { font-weight: 600; }

em, i { font-style: italic; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-skip-ink: auto;
  transition: color 150ms ease;
}
a:visited { color: var(--link-visited); }
a:hover   { color: var(--link-hover); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 1px;
}

img { max-width: 100%; height: auto; display: block; }

ul { margin: 0 0 1.15em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5em 0;
}

/* small tracked uppercase label, used throughout */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 2.1rem 1.5rem 1.8rem;
  text-align: center;
}
.masthead__inner { max-width: var(--measure-wide); margin: 0 auto; }

.masthead__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.15rem;
  letter-spacing: 0.005em;
  margin: 0 0 0.5rem;
  line-height: 1.08;
}
.masthead__name a,
.masthead__name a:visited { color: var(--header-text); text-decoration: none; }
.masthead__name a:hover { color: var(--header-text); }

.masthead__cred {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, 0.66);
  margin: 0;
}
.masthead__cred .sep { color: var(--accent-soft); margin: 0 0.55em; }

/* ---------- Nav ---------- */
.site-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-nav__list {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.site-nav__item { margin: 0; }
.site-nav__item a {
  display: inline-block;
  padding: 0.9rem 0.78rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 150ms ease, border-color 150ms ease;
}
.site-nav__item a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.site-nav__item--active a,
.site-nav__item--active a:hover { border-bottom-color: var(--accent); color: var(--ink); }
.site-nav__item a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
  border-radius: 1px;
}

/* ---------- Page ---------- */
.page { flex: 1; padding: 3.25rem 1.5rem 4rem; }
.page__inner { max-width: var(--measure); margin: 0 auto; }
.page__inner--wide { max-width: var(--measure-wide); }

.page__title { margin: 0 0 0.6rem; }
.page__intro { max-width: 660px; margin-bottom: 0; }

/* ---------- Hero (home) ---------- */
.hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero__headline {
  font-size: 2.95rem;
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}
.hero__sub {
  font-size: 1.2rem;
  line-height: 1.52;
  color: var(--ink-80);
  margin: 0 auto;
  max-width: 620px;
}
.hero__rule { width: 60px; height: 2px; background: var(--accent); border: 0; margin: 1.7rem auto 0; }

/* ---------- Proof strip ---------- */
.proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: var(--measure-wide);
  margin: 2.9rem auto 0;
  padding: 1.15rem 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.proof__item {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 1.25rem;
}
.proof__item strong { color: var(--ink); font-weight: 700; }
.proof__item + .proof__item { border-left: 1px solid var(--rule); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem;
  margin: 3.5rem auto 0;
  max-width: var(--measure-wide);
}
.pillar__index {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin: 0 0 0.55rem;
}
.pillar__title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.16;
  margin: 0 0 0.55rem;
}
.pillar p { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--ink-80); }

/* ---------- Generic centered home section ---------- */
.band {
  margin-top: 3.75rem;
  padding-top: 3.25rem;
  border-top: 1px solid var(--rule);
}
.band--center { text-align: center; }
.band__title { font-size: 1.65rem; margin: 0 0 0.5rem; }
.band__intro { max-width: 620px; margin: 0 auto 1.9rem; color: var(--ink-80); }

/* practice mini-grid on home */
.minigrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: var(--measure-wide);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  text-align: left;
}
.minigrid__cell {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: 1.4rem 1.5rem;
}
.minigrid__cell h3 {
  font-size: 1.12rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.minigrid__cell p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.55; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  margin-top: 3.75rem;
  padding: 3rem 1.5rem;
  background: var(--header-bg);
  color: var(--header-text);
}
.cta__title { color: var(--header-text); font-size: 1.7rem; margin: 0 0 0.55rem; }
.cta p { max-width: 540px; margin: 0 auto 1.5rem; color: rgba(246,244,239,0.78); }

.button {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--header-text);
  background: transparent;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--accent-soft);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.button:visited { color: var(--header-text); }
.button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.button--ink {
  color: var(--header-text);
  background: var(--ink);
  border-color: var(--ink);
}
.button--ink:visited { color: var(--header-text); }
.button--ink:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Section (interior pages) ---------- */
.section { margin-top: 2.9rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.section:first-of-type { margin-top: 2rem; }
.section__title { margin-top: 0; }

/* ---------- Practice areas ---------- */
.practice { margin-top: 2.75rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.practice:first-of-type { margin-top: 1.75rem; padding-top: 0; border-top: 0; }
.practice__title { font-size: 1.45rem; margin: 0 0 0.6rem; display: flex; align-items: baseline; gap: 0.7rem; }
.practice__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.practice p { max-width: 660px; }
.tags { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-80);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  padding: 0.3rem 0.72rem;
}

/* ---------- Representative matters ---------- */
.matter { margin-top: 2.1rem; padding-top: 2.1rem; border-top: 1px solid var(--rule); }
.matter:first-of-type { margin-top: 1.5rem; padding-top: 0; border-top: 0; }
.matter__kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.45rem;
}
.matter__title { font-size: 1.28rem; margin: 0 0 0.5rem; }
.matter p { margin: 0 0 0.65rem; }
.matter__cite { font-style: italic; color: var(--muted); font-size: 0.93rem; }

.note {
  font-size: 0.92rem;
  color: var(--muted);
  border-left: 2px solid var(--rule-strong);
  padding: 0.15rem 0 0.15rem 1.05rem;
  margin: 1.6rem 0 0;
}

/* ---------- About / movements ---------- */
.movement { margin-top: 2.9rem; padding-top: 2.6rem; border-top: 1px solid var(--rule); }
.movement:first-of-type { margin-top: 2.2rem; }
.movement__era {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.45rem;
}
.movement__title { font-size: 1.55rem; margin: 0 0 0.95rem; }

.pullquote {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.32;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 1.4rem;
  margin: 2.4rem 0;
  max-width: 640px;
}

/* ---------- Credentials block ---------- */
.credentials { padding-bottom: 0.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.credentials__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 0 0 0.5rem; }
.credentials p { margin-bottom: 0.4rem; }

/* ---------- Bio (about intro with portrait) ---------- */
.bio {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.2rem;
  align-items: start;
  margin-bottom: 0.5rem;
}
.bio__photo {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-strong);
  box-shadow: 0 1px 0 var(--rule), 0 14px 30px -20px rgba(22, 20, 15, 0.55);
}
.bio__text { margin: 0; }
@media (max-width: 760px) {
  .bio { grid-template-columns: 1fr; gap: 1.4rem; justify-items: start; }
  .bio__photo { max-width: 200px; }
}

/* ---------- Definition-style reclist (recognition) ---------- */
.reclist { margin: 1.3rem 0 0; padding: 0; list-style: none; }
.reclist > li {
  margin: 0;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.4rem;
}
.reclist > li:first-child { border-top: 0; }
.reclist__term {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.12rem;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}
.reclist__def { margin: 0; }
.reclist__def ul { margin: 0; padding-left: 1.1em; }

/* ---------- Two-column list ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 1.5rem; }
.two-col__heading {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.8rem;
}

/* ---------- Publications ---------- */
.articles-group { margin-top: 2.6rem; padding-top: 2.1rem; border-top: 1px solid var(--rule); }
.articles-group:first-of-type { margin-top: 1.25rem; padding-top: 0; border-top: 0; }
.articles-group__heading {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.3rem;
}
.article {
  margin-bottom: 1rem;
  line-height: 1.5;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}
.article:last-child { margin-bottom: 0; }
.article__title { font-weight: 600; }
.article__meta { color: var(--muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.office {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: 1.5rem 1.75rem;
}
.office__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin: 0 0 0.5rem; }
.office p { margin-bottom: 0.3rem; font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }
.office p:last-child { margin-bottom: 0; }
.contact-line { font-size: 1.05rem; margin-bottom: 0.4rem; font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--header-bg);
  color: var(--header-text);
  border-top: 1px solid var(--ink);
  padding: 2.25rem 1.5rem 2.4rem;
  margin-top: 4rem;
}
.site-footer__inner { max-width: var(--measure-wide); margin: 0 auto; text-align: center; }
.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--header-text);
}
.site-footer__contact {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
  color: rgba(246, 244, 239, 0.78);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}
.site-footer__contact a, .site-footer__contact a:visited { color: var(--header-text); }
.site-footer__sep { color: var(--accent-soft); margin: 0 0.5em; }
.site-footer__meta { font-size: 0.78rem; color: rgba(246, 244, 239, 0.5); margin: 0.7rem 0 0; }

/* ---------- Page-load reveal (subtle, respects reduced-motion) ---------- */
.reveal { opacity: 0; transform: translateY(10px); animation: rise 620ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal-2 { animation-delay: 90ms; }
.reveal-3 { animation-delay: 180ms; }
.reveal-4 { animation-delay: 270ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  html { font-size: 16.5px; }

  .masthead { padding: 1.5rem 1rem 1.2rem; }
  .masthead__name { font-size: 1.6rem; }
  .masthead__cred { font-size: 0.64rem; letter-spacing: 0.14em; }
  .masthead__cred .sep { margin: 0 0.35em; }

  .site-nav { padding: 0 0.4rem; position: static; }
  .site-nav__item a { padding: 0.65rem 0.62rem; font-size: 0.82rem; }

  .page { padding: 2.25rem 1.25rem 2.5rem; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.18rem; }

  .hero__headline { font-size: 2.05rem; }
  .hero__sub { font-size: 1.08rem; }

  .proof { flex-direction: column; gap: 0.55rem; padding: 1.1rem; }
  .proof__item { padding: 0; }
  .proof__item + .proof__item { border-left: 0; }

  .pillars { grid-template-columns: 1fr; gap: 2rem; }
  .minigrid { grid-template-columns: 1fr; }
  .offices, .two-col { grid-template-columns: 1fr; gap: 1.25rem; }
  .reclist > li { grid-template-columns: 1fr; gap: 0.2rem; }
  .pullquote { font-size: 1.25rem; padding-left: 1rem; }

  .site-footer { padding: 1.8rem 1rem 2rem; margin-top: 3rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .reveal-2, .reveal-3, .reveal-4 { opacity: 1 !important; transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-nav, .masthead {
    background: #fff !important; color: #000 !important; border: 0; border-bottom: 1px solid #000;
    position: static;
  }
  .masthead__name a, .masthead__cred { color: #000 !important; }
  .masthead__cred .sep, .eyebrow, .pillar__index, .matter__kicker, .movement__era, .practice__num,
  .articles-group__heading { color: #000 !important; }
  .cta, .site-footer { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .cta__title, .site-footer__name, .site-footer__contact { color: #000 !important; }
  .office, .tags li, .minigrid__cell { background: #fff !important; }
  a { color: #000 !important; text-decoration: underline; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}
