/* Blackacre Research
   Quiet, authoritative, bookish. Typography carries the brand. */

:root {
  --paper: #FAF8F3;
  --paper-raised: #FFFEFB;
  --ink: #1C1C1C;
  --gray: #6B6B6B;
  --accent: #6B1F1F;
  --accent-dark: #4E1616;
  --rule: #DDD8CC;

  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-space: clamp(3.5rem, 8vw, 6rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

strong {
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  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: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
  color: var(--paper);
}

/* ---------- Shared type styles ---------- */

.label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.meta {
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray);
}

.meta .tags {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta .sep {
  margin-inline: 0.5em;
  color: var(--rule);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8em 1.6em;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.btn-primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: var(--paper);
}

.btn-small {
  padding: 0.6em 1.1em;
  font-size: 0.8125rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.btn-row.center {
  justify-content: center;
}

/* ---------- Header ---------- */

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

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  display: block;
  flex: none;
  width: 1.3em;
  height: 1.3em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem clamp(1rem, 3vw, 2.25rem);
}

.site-nav a {
  display: inline-block;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  font-size: 1.125rem;
  text-decoration: none;
  white-space: nowrap;
}

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

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

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--rule);
}

.section > .container > .label {
  margin-bottom: 2.25rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(4rem, 11vw, 8rem) clamp(3.5rem, 9vw, 6.5rem);
  text-align: center;
}

.hero h1 {
  max-width: 13em;
  margin-inline: auto;
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.hero .lede {
  max-width: 30em;
  margin: 1.75rem auto 2.5rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  text-wrap: balance;
}

.hero-courts {
  max-width: 48rem;
  margin: 3.5rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.hero-courts .courts {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Each court name stays whole; the line only breaks between names. */
.hero-courts .courts span {
  white-space: nowrap;
}

.hero-courts .updated {
  margin-top: 0.4rem;
  color: var(--gray);
  font-size: 1.0625rem;
  font-style: italic;
}

/* ---------- How it works ---------- */

.section-intro {
  margin-bottom: 2.75rem;
  font-size: clamp(1.375rem, 2.4vw, 1.625rem);
  line-height: 1.4;
}

/* Each sentence stays together: one line when there is room, otherwise the
   break falls between the two sentences rather than mid-phrase. */
.section-intro span {
  display: inline-block;
}

/* Four steps: one column on small screens, a two-by-two grid on wider ones. */
.steps {
  display: grid;
  grid-template-columns: 1fr;
}

.steps li {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.steps li:first-child {
  padding-top: 0;
  border-top: 0;
}

.steps li:last-child {
  padding-bottom: 0;
}

@media (min-width: 52.0625rem) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps li {
    padding: 2.25rem clamp(1.5rem, 4vw, 3rem);
    border-left: 1px solid var(--rule);
  }

  .steps li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .steps li:nth-child(even) {
    padding-right: 0;
  }

  .steps li:nth-child(-n+2) {
    padding-top: 0;
    border-top: 0;
  }

  .steps li:nth-last-child(-n+2) {
    padding-bottom: 0;
  }
}

.steps h3 {
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.steps .numeral {
  color: var(--accent);
}

/* ---------- Work product ---------- */

.doc-section .work-grid {
  margin-top: 1.75rem;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.memo-excerpt {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  background: var(--paper-raised);
}

.memo-excerpt .memo-kicker {
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.memo-excerpt p + p {
  margin-top: 1rem;
}

.memo-excerpt .meta {
  margin-top: 1.5rem;
}

.memo-excerpt .more {
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

.features li {
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
}

.features li:first-child {
  padding-top: 0;
  border-top: 0;
}

.features li:last-child {
  padding-bottom: 0;
}

/* ---------- Coverage ---------- */

.coverage {
  max-width: 44rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
}

.coverage li {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  padding-block: 0.45rem;
}

.coverage .mark {
  flex: none;
  width: 1.1em;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}

.coverage .pending .mark {
  color: var(--gray);
}

.coverage .pending {
  color: var(--gray);
}

.coverage .divide {
  margin-top: 0.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

.coverage .court {
  flex: 1;
}

.coverage .status {
  flex: none;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Built for ---------- */

.built-for {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(2rem, 5vw, 4rem);
}

.built-for li {
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: clamp(1.3rem, 2.2vw, 1.5rem);
  line-height: 1.3;
}

/* ---------- About us ---------- */

.about-page {
  padding-bottom: var(--section-space);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-photo {
  margin: 0;
}

/* The founders' photo is shown exactly as supplied: no cropping or filters. */
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.bios {
  margin-top: 2rem;
}

.bio {
  padding-block: 1.25rem;
  border-top: 1px solid var(--rule);
}

.bio:last-child {
  padding-bottom: 0;
}

.bio h3 {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

/* ---------- Closing call to action ---------- */

.cta {
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.875rem, 4.2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

.cta p {
  max-width: 30em;
  margin: 1.1rem auto 2.25rem;
  text-wrap: balance;
}

.offer-note {
  max-width: 34em;
  margin: 1.5rem auto 0;
  color: var(--gray);
  font-size: 1.0625rem;
  font-style: italic;
  text-wrap: balance;
}

/* ---------- Page header (Sample Work, Contact) ---------- */

.page-header {
  padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
}

.page-header .label {
  margin-bottom: 1.5rem;
}

.page-header .lede {
  max-width: 30em;
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  line-height: 1.3;
  text-wrap: pretty;
}

.section-more {
  margin-top: 2.25rem;
  font-size: 1.125rem;
}

/* ---------- How It Works page ---------- */

.doc-section {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}

.doc-section h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  font-weight: 500;
  line-height: 1.15;
}

.doc-section h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
}

.prose {
  max-width: 44rem;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h3 {
  margin-top: 2.25rem;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose h3 + * {
  margin-top: 0.6rem;
}

.list li {
  position: relative;
  padding-left: 1.4rem;
}

.list li + li {
  margin-top: 0.6rem;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.68em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
}

.faq h3 {
  font-weight: 500;
}

/* ---------- Sample Work ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 2rem;
}

.chip {
  padding: 0.5em 1.1em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.memo {
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
  border-top: 1px solid var(--rule);
}

.memo h2 {
  max-width: 24em;
  font-size: clamp(1.625rem, 3.2vw, 2.125rem);
  font-weight: 500;
  line-height: 1.18;
  text-wrap: balance;
}

.memo .meta {
  margin-top: 0.75rem;
}

.memo .qa {
  max-width: 40rem;
  margin-top: 1.5rem;
}

.memo .qa p + p {
  margin-top: 0.875rem;
}

.memo .btn-row {
  margin-top: 1.75rem;
}

.memo-pair {
  border-top: 1px solid var(--rule);
}

.memo-pair .pair-note {
  max-width: 40rem;
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
  color: var(--gray);
  font-size: 1.125rem;
  font-style: italic;
}

.memo-pair .pair-note + .memo {
  border-top: 0;
  padding-top: 1.75rem;
}

.no-results {
  padding-block: 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--gray);
  font-style: italic;
}

.fine-print {
  max-width: 44rem;
  margin-inline: auto;
  padding-block: 2.25rem;
  border-top: 1px solid var(--rule);
  color: var(--gray);
  font-size: 1.0625rem;
  font-style: italic;
  text-align: center;
}

/* ---------- Contact ---------- */

.contact-body {
  padding-bottom: var(--section-space);
}

.contact-card {
  max-width: 42rem;
  padding: clamp(1.5rem, 4.5vw, 3rem);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  background: var(--paper-raised);
}

.field {
  margin-bottom: 1.5rem;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.field .req {
  color: var(--accent);
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  display: block;
  width: 100%;
  padding: 0.6em 0.75em;
  border: 1px solid #A9A498;
  border-radius: 1px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.4;
}

.field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

fieldset.field {
  border: 0;
}

.radios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
}

.radios label {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
}

.radios input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
  transform: translateY(0.1em);
}

/* Reference-document upload */

.field .field-label {
  margin-bottom: 0.3rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.field-label .optional,
.field label .hint {
  color: var(--gray);
  font-weight: 400;
}

.field-help {
  margin-bottom: 0.9rem;
  font-size: 1.125rem;
}

.upload-details summary {
  display: inline-block;
  padding: 0.6em 1.1em;
  border: 1px solid var(--ink);
  border-radius: 1px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}

.upload-details summary::-webkit-details-marker {
  display: none;
}

.upload-details summary::before {
  content: "+ ";
}

.upload-details[open] summary::before {
  content: "\2212  ";
}

.upload-details summary:hover {
  background: var(--ink);
  color: var(--paper);
}

.upload-body {
  margin-top: 1.1rem;
}

.disclaimer {
  padding: 1rem 1.25rem 1.1rem;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.disclaimer > p:not(.disclaimer-title) {
  margin-bottom: 0.75rem;
}

.disclaimer-title {
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input[type="file"] {
  display: block;
  max-width: 100%;
  font-family: var(--sans);
  font-size: 0.875rem;
}

.file-list {
  margin-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 1.0625rem;
}

.file-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--rule);
}

.file-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-remove {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.8125rem;
  text-decoration: underline;
  cursor: pointer;
}

.field-error {
  margin-top: 0.75rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
  font-size: 1.0625rem;
}

.field label.check {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
  transform: translateY(0.1em);
}

/* Honeypot: kept out of sight and out of the tab order. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile:not(:empty) {
  margin-bottom: 1.5rem;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 0.5rem;
}

.confidential {
  flex: 1 1 16rem;
  color: var(--gray);
  font-size: 1.0625rem;
  font-style: italic;
}

.form-status {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--accent);
  background: var(--paper);
  font-size: 1.0625rem;
}

.thanks h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
}

.thanks p {
  margin-top: 0.6rem;
}

.thanks:focus {
  outline: none;
}

.thanks .preview-note {
  margin-top: 1.5rem;
  color: var(--gray);
  font-family: var(--sans);
  font-size: 0.8125rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3rem 3.5rem;
  border-top: 1px solid var(--rule);
  font-size: 1.0625rem;
}

.site-footer .logo {
  font-size: 1.25rem;
}

.site-footer .tagline {
  margin-top: 0.35rem;
  font-style: italic;
}

.site-footer .legal {
  max-width: 40rem;
  margin-top: 1.5rem;
  color: var(--gray);
}

.site-footer .legal p + p {
  margin-top: 0.15rem;
}

.site-footer .colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--gray);
  font-family: var(--sans);
  font-size: 0.8125rem;
}

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

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

/* ---------- Responsive ---------- */

@media (max-width: 52rem) {
  .work-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 26rem;
  }
}

@media (max-width: 36rem) {
  body {
    font-size: 1.1875rem;
  }

  .site-header .container {
    padding-block: 1rem;
  }

  .site-nav a {
    font-size: 1.0625rem;
  }

  .built-for,
  .radios {
    grid-template-columns: 1fr;
  }

  .coverage li {
    flex-wrap: wrap;
  }

  .coverage .status {
    flex-basis: 100%;
    padding-left: calc(1.1em + 1.3rem);
  }

  .hero .btn-row .btn,
  .cta .btn-row .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .form-foot .btn {
    width: 100%;
  }
}

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

@media print {
  .site-nav,
  .filters,
  .btn-row {
    display: none;
  }
}
