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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

main {
  flex: 1;
}

h1,
h2,
h3,
.brand-name,
.site-nav {
  font-family: var(--font-display);
  color: var(--ink);
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration: none;
}

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

.skip {
  position: absolute;
  left: var(--space-4);
  top: -48px;
  z-index: 5;
  padding: var(--space-2) var(--space-3);
  background: var(--paper);
  color: var(--ink);
}

.skip:focus {
  top: var(--space-2);
}

.wrap {
  width: min(1120px, calc(100% - var(--space-6)));
  margin-inline: auto;
}

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

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-5);
  min-height: 72px;
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logomark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-1) var(--space-4);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-1);
}

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

.site-nav a.nav-contact {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
}

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

.page {
  padding-block: var(--space-8);
}

h1.practice-name,
.practice-name {
  font-family: var(--font-name);
  font-stretch: 100%;
  color: var(--ink);
  letter-spacing: -0.05em;
}

h1.practice-name {
  font-size: clamp(36px, 12vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  white-space: nowrap;
}

.site-footer .practice-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

/* Regular against the bold: the light glyphs drop the tight tracking,
   and ʃ gets a lead-in so the bold k does not crowd its hook. */
.practice-name .light {
  font-weight: 400;
}

.practice-name .open {
  letter-spacing: 0;
}

.practice-name .hook {
  margin-left: 0.04em;
}

.practice-name .stress {
  color: var(--orange);
  font-family: inherit;
  font-weight: inherit;
  font-stretch: inherit;
}

.formal h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: var(--space-4);
}

.legal-name {
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.formal address {
  font-style: normal;
  color: var(--ink);
  margin-bottom: var(--space-5);
}

.formal dl {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--space-2) var(--space-4);
  margin: 0 0 var(--space-5);
}

.formal dt {
  color: var(--ink);
  font-weight: 600;
}

.formal .source {
  font-size: 14px;
  margin-top: var(--space-3);
}

.pending {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--orange);
  border-radius: var(--radius-control);
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-6);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
}

.formal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.formal-nav a {
  font-size: 16px;
  font-weight: 500;
}

.footer-link a {
  font-size: 16px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .header-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
  }

  .site-nav {
    justify-content: flex-start;
    gap: var(--space-1) var(--space-3);
  }
}

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