:root {
  --accent: #3e3c2e;
  --accent-hover: color-mix(in srgb, var(--accent) 88%, white);
  --on-accent-muted: color-mix(in srgb, white 72%, var(--accent));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius-card: 1rem;
  --radius-control: .625rem;
  --radius-pill: 999px;
  --tap-target: 2.75rem;
  --button-height: 3.25rem;
  --button-font-size: clamp(1rem, .96rem + .12vw, 1.08rem);
  --button-padding: .8rem 1.2rem;
  --duration-hover: 150ms;
  --tracking-display: -.034em;
  --tracking-heading: -.028em;
  --tracking-card-heading: -.022em;
  --space-page-top: clamp(10rem, 15vw, 14rem);
  --space-page-bottom: clamp(7rem, 11vw, 11rem);
  --space-section: clamp(7rem, 11vw, 11rem);
  --space-section-compact: clamp(5rem, 8vw, 8rem);
  --space-heading-copy: clamp(1.35rem, 1.8vw, 1.75rem);
  --space-copy-action: clamp(2rem, 2.6vw, 2.5rem);
  --space-heading-content: clamp(3.5rem, 6vw, 6rem);
  --space-layout-gap: clamp(2.5rem, 6vw, 6rem);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow-x: clip; }
img { max-width: 100%; }
a { text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, summary, label { -webkit-tap-highlight-color: transparent; }

:where(button, a, input, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 22%, white);
  color: #17160f;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

@media (max-width: 760px) {
  :root {
    --space-page-top: 8rem;
    --space-page-bottom: 6rem;
    --space-section: 6rem;
    --space-section-compact: 4.5rem;
    --space-heading-copy: 1.25rem;
    --space-copy-action: 2rem;
    --space-heading-content: 3rem;
    --space-layout-gap: 2.5rem;
  }
}

/* Shared information footer */
.site-footer {
  background: var(--accent);
  border: 0;
  color: var(--paper);
  display: block;
  padding: clamp(4.75rem, 8vw, 7.5rem) 3.5vw;
  text-align: left;
}
.site-footer .footer-grid {
  display: grid;
  gap: clamp(3.5rem, 6vw, 5.5rem) clamp(2rem, 5vw, 5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1440px;
}
.site-footer .footer-brand {
  align-self: start;
  grid-column: 1 / -1;
  grid-row: 1;
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(2rem, 2.4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: var(--tracking-heading);
  line-height: 1;
}
.site-footer .footer-group { min-width: 0; }
.site-footer .footer-title {
  color: var(--on-accent-muted);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0 0 1.35rem;
}
.site-footer .footer-list {
  display: grid;
  gap: .7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .footer-list li,
.site-footer .footer-list a,
.site-footer .footer-list address {
  color: inherit;
  font-size: clamp(.98rem, .94rem + .12vw, 1.08rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.022em;
  line-height: 1.42;
  margin: 0;
}
.site-footer .footer-list a {
  display: inline-flex;
  transition: opacity var(--duration-hover) ease;
}
.site-footer .footer-list a:hover { opacity: .65; }
.site-footer .footer-list a:focus-visible { outline-color: var(--paper); }
.site-footer .footer-services { grid-column: 1; grid-row: 2; }
.site-footer .footer-work { grid-column: 2; grid-row: 2; }
.site-footer .footer-nav { grid-column: 3; grid-row: 2; }
.site-footer .footer-legal { grid-column: 1; grid-row: 3; }
.site-footer .footer-contact { grid-column: 2; grid-row: 3; }
.site-footer .footer-company { grid-column: 3; grid-row: 3; }

@media (max-width: 900px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem 2rem; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer .footer-group { grid-column: auto; grid-row: auto; }
}

@media (max-width: 560px) {
  .site-footer { padding: 4rem 22px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .site-footer .footer-brand { grid-column: 1; }
}
