/* McGuigan Legal — typographic, quiet, protective. System fonts only. */
:root {
  --ink: #1c1915;
  --ink-soft: #3a352e;
  --paper: #f6f1e8;
  --paper-2: #efe8db;
  --muted: #5c564c;
  --rule: #d4cbb8;
  --accent: #5a2424;
  --accent-hover: #3e1818;
  --header: #1c1915;
  --header-fg: #f6f1e8;
  --focus: #5a2424;
  --max: 42rem;
  --wide: 68rem;
  --space: 1.25rem;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--accent-hover); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--header);
  color: var(--header-fg);
  padding: 0.5rem 0.85rem;
  z-index: 100;
}

.skip:focus { top: 0.75rem; }

.site-header {
  background: var(--header);
  color: var(--header-fg);
  padding: 0.9rem 1.25rem;
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.brand {
  color: var(--header-fg);
  text-decoration: none;
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand:hover,
.brand:focus { color: #fff; }

.brand span {
  display: block;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9c0b2;
  font-weight: 500;
}

.header-phone {
  color: var(--header-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  padding: 0.45rem 0.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-phone:hover { color: #fff; text-decoration: underline; }

.nav-toggle {
  width: 100%;
}

.nav-desktop { display: none; }

.nav-toggle > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.65rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--header-fg);
}

.nav-toggle > summary::-webkit-details-marker { display: none; }

.nav-toggle > summary::after {
  content: "Menu";
}

.nav-toggle[open] > summary::after { content: "Close"; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav a {
  color: var(--header-fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  border-bottom: 1px solid #3a352e;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  color: #fff;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-desktop {
    display: block;
    flex: 1 1 100%;
    order: 3;
  }
  .nav-desktop.site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.15rem 1.15rem;
    padding: 0.15rem 0 0;
  }
  .nav-desktop.site-nav a {
    border-bottom: none;
    font-size: 0.95rem;
    min-height: 44px;
  }
}

main {
  flex: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

.wrap-wide {
  max-width: var(--wide);
}

h1, h2, h3 {
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.45rem;
  margin: 2.25rem 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

p { margin: 0 0 1rem; }

.lede, .stack p + p {
  margin-top: 0;
}

.stack p {
  margin: 0 0 0.85rem;
}

.hero p:first-of-type {
  font-size: 1.2rem;
}

ul, ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

li { margin-bottom: 0.4rem; }

.cta {
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
}

.cta .phone {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--accent);
  min-height: 44px;
  padding: 0.2rem 0;
}

.cta .phone:hover { text-decoration: underline; }

.card-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 44px;
}

.card:hover {
  border-color: var(--accent);
  color: inherit;
}

.card h2, .card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--accent);
}

.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

.meta-block, .nap, .sources {
  font-size: 1rem;
  color: var(--ink-soft);
}

.nap p, .sources p { margin: 0 0 0.35rem; }

.sources {
  margin-top: 2.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}

.sources summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sources ul { margin-top: 0.6rem; }

.note {
  font-size: 0.98rem;
  color: var(--muted);
  border-left: 3px solid var(--rule);
  padding: 0.2rem 0 0.2rem 1rem;
  margin: 1.5rem 0 0;
}

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding: 1.75rem 1.25rem 2.25rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
}

.site-footer a { color: var(--accent); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.footer-nav a:hover { text-decoration: underline; }

.cross-link {
  margin: 1rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.copyright { margin: 0.5rem 0 0; font-size: 0.9rem; }

.error-page .wrap { text-align: left; }

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