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

html {
  background: var(--ground);
  color: var(--ink);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--label-size);
  line-height: 1.4;
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 6;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--label-size);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus,
.skip:focus-visible {
  transform: none;
  outline-color: var(--paper);
}

.headline {
  font-size: var(--headline-size);
  line-height: var(--headline-line);
  font-weight: 500;
  letter-spacing: var(--headline-tracking);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: inherit;
  font-size: var(--label-size);
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

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

.arrow {
  display: block;
  width: 18px;
  height: 10px;
}

.arrow-back {
  transform: scaleX(-1);
}

[hidden] {
  display: none !important;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  color: var(--paper);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.wordmark {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 2px;
  max-width: 16rem;
  font-size: var(--label-size);
  font-weight: 500;
  letter-spacing: var(--headline-tracking);
  text-decoration: none;
  color: inherit;
}

.wordmark-note {
  font-weight: 400;
}

.desktop-nav {
  flex: 1;
  min-width: 0;
}

.site-header :focus-visible {
  outline-color: var(--paper);
}

.desktop-nav ul,
.menu-list,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.desktop-nav a,
.menu-list a,
.site-footer a {
  font-size: var(--label-size);
  text-decoration: none;
}

.desktop-nav a:hover,
.menu-list a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.bar-appointment,
.menu-toggle {
  flex: none;
  margin-left: auto;
}

.menu-toggle {
  display: none;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 20px;
  overflow: auto;
  background: var(--ink);
  color: var(--paper);
}

.menu-overlay :focus-visible {
  outline-color: var(--paper);
}

.menu-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.menu-list a {
  display: inline-block;
  padding: 8px 0;
}

.site-footer {
  padding: 32px 20px 40px;
  background: var(--ground);
  color: var(--ink);
}

.site-footer .wordmark,
.fine {
  font-size: var(--label-size);
}

.site-footer .wordmark {
  margin-bottom: 8px;
}

.fine {
  margin: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.footer-heading {
  margin: 0 0 12px;
  font-size: var(--label-size);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.site-footer li {
  margin: 0 0 8px;
}

.site-footer p {
  margin: 0 0 8px;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
}

.social-list li {
  margin: 0;
  font-size: var(--label-size);
}

.copyright {
  margin-top: 20px;
}

/* OPEN-BREAKPOINT: not an inspection figure. */
@media (max-width: 800px) {
  .desktop-nav,
  .bar-appointment {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }
}
