:root {
  color-scheme: light;
  --ink: #172124;
  --muted: #69706d;
  --line: #d8d2c5;
  --paper: #f6f2e9;
  --panel: #ffffff;
  --soft: #eee8da;
  --accent: #7c2e2a;
  --accent-dark: #4b1c1a;
  --navy: #182d34;
  --brass: #a87931;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 242, 233, 0.94);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 3px;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.brand-name,
.brand-subtitle,
.eyebrow,
.section-label,
.lede,
.summary-panel p,
.workflow p,
.disclaimer p,
dd {
  margin: 0;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.contact-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

main {
  padding: 0 clamp(18px, 4vw, 56px) 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: min(680px, calc(100vh - 76px));
  padding: clamp(54px, 9vw, 112px) 0 clamp(28px, 5vw, 48px);
}

.hero.compact {
  min-height: 0;
  padding-top: clamp(44px, 7vw, 84px);
}

.eyebrow,
.section-label {
  color: var(--brass);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 980px;
  margin: 12px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 500;
}

h2 {
  margin: 8px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
}

.summary-panel,
.consultation-panel,
.section-block,
.disclaimer {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.summary-panel {
  overflow: hidden;
}

.consultation-panel {
  align-self: stretch;
  display: grid;
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(23, 33, 36, 0.12);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--ink);
  color: white;
}

.matter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: var(--navy);
  color: #fff;
}

.matter-header span {
  color: #d9e0dd;
  font-size: 14px;
  font-weight: 800;
}

.matter-body {
  padding: 24px;
}

.matter-body strong {
  display: block;
  margin: 6px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.matter-body p {
  margin: 0;
  color: var(--muted);
}

.matter-label {
  color: var(--brass) !important;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-file {
  display: grid;
  border-top: 1px solid var(--line);
}

.case-file div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf5;
}

.case-file div:last-child {
  border-bottom: 0;
}

.case-file span {
  color: var(--brass);
  font-weight: 900;
}

.case-file p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.panel-header span {
  color: #dce7df;
}

dl {
  margin: 0;
}

.summary-panel div:not(.panel-header) {
  padding: 16px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin-top: 4px;
  font-weight: 700;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.status-strip span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--soft);
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.section-block {
  padding: clamp(22px, 4vw, 36px);
}

.section-block.muted {
  background: #f7f8f4;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 22px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
}

.workflow {
  margin-top: 18px;
}

.workflow ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  min-height: 176px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.workflow span {
  color: var(--brass);
  font-weight: 900;
}

.workflow strong {
  display: block;
  margin-top: 24px;
  font-size: 20px;
}

.workflow p {
  margin-top: 8px;
  color: var(--muted);
}

.disclaimer {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 36px);
  border-color: #e5c897;
  background: #fffaf1;
}

.disclaimer h2 {
  margin-top: 0;
}

.disclaimer p {
  max-width: 980px;
  color: #5f4630;
  font-weight: 650;
}

.legal-page {
  max-width: 960px;
  padding: clamp(42px, 7vw, 82px) clamp(18px, 4vw, 56px);
}

.legal-page h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.legal-page h2 {
  margin-top: 32px;
  font-size: clamp(22px, 3vw, 32px);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 17px;
}

.legal-page ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .topbar,
  .hero,
  .content-grid,
  .workflow ol {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 0;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    flex-direction: column;
  }

  h1 {
    font-size: 38px;
  }

  .button,
  .actions {
    width: 100%;
  }
}
