/* legalrights.pl - static site (sites/legalrights/README.md).
   System fonts only, no external requests, no JavaScript. */

:root {
  --ink: #15181d;
  --ink-2: #1e2229;
  --ink-3: #2a2f37;
  --paper: #faf8f4;
  --paper-2: #f2eee6;
  --text: #24272d;
  --muted: #555a63;
  --line: #e3ddd2;
  --gold: #c4a574;
  --gold-2: #d9c09a;
  --gold-text: #7c6037;
  --on-dark: #f3efe8;
  --on-dark-muted: #b9b4ab;
  --radius: 6px;
  --shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 8px 24px rgb(0 0 0 / 7%);
  --wrap: 1160px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", P052, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
}

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

a { color: var(--gold-text); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* --- top bar and header ------------------------------------------------------ */
.topbar {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  justify-content: space-between;
  padding-block: 8px;
}
.topbar ul { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: var(--gold-2); text-decoration: underline; }

.site-header {
  background: var(--ink-2);
  border-bottom: 1px solid rgb(196 165 116 / 25%);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 14px;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 260px; }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav a:hover { color: var(--gold-2); background: rgb(255 255 255 / 5%); }
.nav a[aria-current="page"] { color: var(--gold-2); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .nav-cta a {
  margin-left: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.nav .nav-cta a:hover { background: var(--gold-2); color: var(--ink); }

/* --- buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); color: var(--ink); }
.btn-ghost { border-color: rgb(255 255 255 / 55%); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--ink-3); color: var(--gold-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* --- home hero (the hero banner of the old site) -------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  color: var(--on-dark);
  background: var(--ink);
}
.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(15 17 21 / 88%) 0%, rgb(15 17 21 / 62%) 45%, rgb(15 17 21 / 18%) 100%),
    linear-gradient(0deg, rgb(15 17 21 / 70%) 0%, rgb(15 17 21 / 0%) 45%);
}
.hero .wrap { padding-block: clamp(56px, 10vw, 120px) clamp(40px, 7vw, 88px); }
.hero-inner { max-width: 640px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold-2);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero .lead { font-size: 1.2rem; color: var(--on-dark); max-width: 34em; }

/* --- sections ------------------------------------------------------------------ */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink-2); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .eyebrow { color: var(--gold-text); }
.section-dark .section-head .eyebrow { color: var(--gold-2); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

.values .card { border-top: 3px solid var(--gold); }
.values h3 { font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; }

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service:hover { transform: translateY(-2px); color: var(--text); box-shadow: 0 2px 4px rgb(0 0 0 / 6%), 0 14px 32px rgb(0 0 0 / 10%); }
.service .num { font-family: var(--serif); color: var(--gold-text); font-size: 1.05rem; }
.service h3 { margin: 0; }
.service .more { margin-top: auto; padding-top: 10px; color: var(--gold-text); font-weight: 600; }

.split { display: grid; gap: 40px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.quote {
  margin: 0;
  padding: 28px 32px;
  border-left: 3px solid var(--gold);
  background: rgb(255 255 255 / 4%);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
}

.cta-band { background: var(--ink); color: var(--on-dark); }
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: 44px;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; color: var(--on-dark-muted); }
.cta-band .actions { margin-top: 0; }

/* --- posts --------------------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; flex: 1; }
.post-card h3 { font-size: 1.2rem; margin: 0; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--gold-text); text-decoration: underline; }
.post-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.meta { color: var(--muted); font-size: 0.9rem; }

/* --- inner pages ------------------------------------------------------------------ */
.page-head {
  background:
    linear-gradient(120deg, rgb(21 24 29 / 96%), rgb(30 34 41 / 90%)),
    var(--ink-2);
  color: var(--on-dark);
  padding-block: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid rgb(196 165 116 / 25%);
}
.page-head h1 { color: #fff; margin: 0; max-width: 22em; }
.page-head .eyebrow { margin-bottom: 10px; }
.page-head .meta { color: var(--on-dark-muted); margin-top: 14px; }
.page-head .lead { color: var(--on-dark); max-width: 42em; margin: 14px 0 0; font-size: 1.1rem; }

.layout { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; }
}

.prose { max-width: 46em; }
.prose h2 { font-size: 1.65rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose h4 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li > p { margin-bottom: 0.4em; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 22px;
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose > :first-child { margin-top: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

.banner { margin: 0 0 32px; }
.banner img { width: 100%; border-radius: var(--radius); aspect-ratio: 1100 / 470; object-fit: cover; }

.aside { display: grid; gap: 22px; align-content: start; }
.aside h2 { font-size: 1.2rem; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li + li { border-top: 1px solid var(--line); }
.aside li a { display: block; padding: 10px 0; text-decoration: none; color: var(--text); }
.aside li a:hover, .aside li a[aria-current="page"] { color: var(--gold-text); }
.aside .card-dark { background: var(--ink-2); color: var(--on-dark); border-color: var(--ink-2); }
.aside .card-dark h2 { color: #fff; }
.aside .card-dark a { color: var(--gold-2); }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list .label { display: block; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-list .value { font-size: 1.25rem; font-family: var(--serif); }
.contact-list address { font-style: normal; }
.contact-list .value a { color: var(--ink); text-decoration-color: var(--gold); }
.contact-list .value a:hover { color: var(--gold-text); }

.back { display: inline-block; margin-top: 28px; font-weight: 600; }
.note { margin-top: 24px; }

/* --- footer ------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 0.95rem; }
.site-footer .wrap { padding-block: 48px 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer h2 { color: var(--on-dark); font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); text-decoration: underline; }
.site-footer .brand img { width: 200px; margin-bottom: 14px; }
.site-footer address { font-style: normal; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.875rem;
}
.footer-bottom a { text-decoration: underline; text-decoration-color: var(--gold); }

/* --- small screens ----------------------------------------------------------------- */
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .topbar .hours, .topbar ul + ul { display: none; }
  .site-header .wrap { justify-content: center; }
  .brand img { width: 190px; }
  .nav ul { justify-content: center; }
  .nav a { padding: 8px 10px; }
  .nav .nav-cta a { margin-left: 0; }
  .hero { min-height: 520px; }
  .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .topbar, .nav, .cta-band, .aside, .site-footer .footer-grid { display: none; }
  body { background: #fff; }
}
