/* PMN Law Firm — design tokens & shared styles */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300..700;1,8..60,300..700&family=Inter+Tight:wght@300;400;500;600&display=swap');

:root {
  /* palette — minimal, confident, warm-neutral */
  --bg: #f6f4ef;          /* warm off-white */
  --bg-2: #efece5;        /* slightly darker section */
  --ink: #14130f;         /* near-black */
  --ink-2: #3a382f;       /* secondary */
  --ink-3: #76736a;       /* tertiary / meta */
  --rule: #d9d4c5;        /* hairlines */
  --rule-2: #c7c0ae;
  --accent: #a88a4c;      /* brass/gold */
  --accent-ink: #6f5a30;

  /* type */
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 88px; --s-10: 112px;
  --s-11: 144px;

  /* layout */
  --max: 1320px;
  --gutter: 32px;
}

@media (max-width: 1024px) {
  :root {
    --s-7: 36px; --s-8: 48px; --s-9: 64px; --s-10: 80px; --s-11: 96px;
    --gutter: 24px;
  }
}
@media (max-width: 600px) {
  :root {
    --s-6: 24px; --s-7: 28px; --s-8: 36px; --s-9: 48px; --s-10: 56px; --s-11: 64px;
    --gutter: 18px;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* type primitives */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 152px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 60;
}
.h1 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

/* layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--s-10) 0; }
.section-sm { padding: var(--s-9) 0; }
@media (max-width: 720px) {
  .section { padding: var(--s-9) 0; }
  .section-sm { padding: var(--s-8) 0; }
}

/* hairline divider */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-strong { height: 1px; background: var(--ink); }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  display: inline-flex;
  width: 28px;
  height: 38px;
  color: var(--ink);
}
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__words { display: inline-flex; flex-direction: column; gap: 4px; }
.brand__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand__sub {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  line-height: 1;
}
@media (max-width: 720px) {
  .brand__sub { display: none !important; }
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active {
  color: var(--ink);
}
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink);
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.nav__cta:hover { background: var(--ink); color: var(--bg); }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg);
  padding: var(--s-9) 0 var(--s-6);
  margin-top: var(--s-10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.footer-grid ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}
.footer-grid li, .footer-grid p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}
.footer-grid a:hover { color: var(--ink); border-bottom: 1px solid var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: all 0.2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arrow { width: 16px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 18px; }
.link-arrow .arrow {
  width: 24px; height: 1px; background: currentColor; position: relative;
}
.link-arrow .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* PAGE HEADER (for inner pages) */
.page-head {
  padding: var(--s-9) 0 var(--s-7);
  border-bottom: 1px solid var(--rule);
}
.page-head__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
}
.page-head__title {
  margin: 0;
  max-width: 18ch;
}
.page-head__lede {
  margin-top: 24px;
  max-width: 60ch;
}

/* utility */
.muted { color: var(--ink-3); }
.accent { color: var(--accent-ink); }
.center { text-align: center; }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 32px; }

/* numerical index (used in lists) */
.idx {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* image placeholder */
.ph {
  background: repeating-linear-gradient(
    135deg,
    #e7e2d3 0 1px, transparent 1px 12px
  ), var(--bg-2);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* mobile nav */
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 22px; height: 1px; background: var(--ink);
  }
  body.menu-open .nav {
    display: grid;
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg);
    padding: 48px var(--gutter);
    align-content: start;
    gap: 24px;
    border-top: 1px solid var(--rule);
  }
  body.menu-open .nav a { font-size: 28px; font-family: var(--serif); }
}
