:root {
  color-scheme: light dark;
  --page: #f2f3f2;
  --surface: #e5e7e5;
  --ink: #171a1b;
  --muted: #555d5f;
  --line: #bcc1bf;
  --accent-strong: #8f3410;
  --content: 78rem;
  --measure: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111415;
    --surface: #1b1f20;
    --ink: #f1f3f1;
    --muted: #adb4b4;
    --line: #3a4142;
    --accent-strong: #ef8a4f;
  }
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Arial Narrow", "Roboto Condensed", "Franklin Gothic Medium", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent-strong);
  color: var(--page);
}

:focus-visible {
  outline: 0.2rem solid var(--accent-strong);
  outline-offset: 0.25rem;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

.shell {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

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

.site-header__inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.header-phone {
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.brand {
  max-width: 31rem;
  color: var(--ink);
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  letter-spacing: -0.02em;
}

.header-phone {
  flex: 0 0 auto;
}

.legal {
  max-width: var(--measure);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.legal__home {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 800;
}

h1,
h2 {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin: 0 0 1rem;
  font-size: clamp(3rem, 8vw, 5.5rem);
}

h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.3rem;
}

li + li {
  margin-top: 0.5rem;
}

.effective-date {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-weight: 800;
}

.contact-card {
  margin-top: 2rem;
  padding: 1.25rem;
  border-left: 0.25rem solid var(--accent-strong);
  background: var(--surface);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer__inner,
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.site-footer__inner {
  justify-content: space-between;
}

.site-footer__links {
  justify-content: flex-end;
}

.site-footer a {
  color: inherit;
}

.site-footer a[aria-current="page"],
.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 48rem) {
  .shell {
    width: min(calc(100% - 1.25rem), var(--content));
  }

  .brand {
    max-width: 13rem;
  }

  .header-phone {
    font-size: 0.92rem;
  }

  .site-footer__inner,
  .site-footer__links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 23rem) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.9rem;
  }

  .brand {
    max-width: none;
  }
}
