@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/instrument-sans-latin-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('assets/inter-tight-latin-500-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

#seh-demos > .overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(100% - 2 * var(--gutter), var(--page-max)) minmax(0, 1fr);
  width: 100%;
}

#seh-demos > .overview > * { grid-column: 2; }
#seh-demos > .overview > .overview-menu { grid-column: 1 / -1; align-self: start; }
#seh-demos > .overview > .site-footer { grid-column: 1 / -1; }

:where(.seh-demos) .site-footer {
  --footer-contact-background: #e8e8ed;
  --footer-wordmark-color: #c4c4cd;
  margin-block-start: var(--demo-bottom-padding);
  background: var(--demo-background);
  font-family: 'Instrument Sans', var(--font-sans);
  font-size: .86rem;
}

.seh-demos[data-theme='dark'] .site-footer {
  --footer-contact-background: var(--theme-control);
  --footer-wordmark-color: #666670;
}

.seh-demos[data-theme='sand'] .site-footer {
  --footer-contact-background: #ecdfc7;
  --footer-wordmark-color: #bbae95;
}

.seh-demos[data-theme='slate'] .site-footer {
  --footer-contact-background: #dfe6f0;
  --footer-wordmark-color: #aab7c8;
}

:where(.site-footer) .shell {
  width: min(100% - 2 * var(--gutter), var(--page-max));
  margin-inline: auto;
}

:where(.site-footer) .footer-contact {
  padding-block: 38px;
  background: var(--footer-contact-background);
}

:where(.site-footer) .footer-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
  gap: 50px;
}

.seh-demos .footer-contact h2,
.seh-demos .footer-contact h3 { font-family: inherit; }

:where(.site-footer) .footer-contact h2 {
  margin-top: 12px;
  font-size: 2.4375rem;
  line-height: 1.13;
}

.seh-demos .footer-contact h2 {
  font-weight: 500;
  letter-spacing: -.045em;
}

.seh-demos .footer-contact h3 {
  margin-bottom: 12px;
  font-size: inherit;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: normal;
}

:where(.site-footer) .footer-contact :is(p, address) {
  color: var(--muted);
  line-height: 1.7;
}

:where(.site-footer) .footer-contact-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

:where(.site-footer) .footer-contact-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--accent);
}

:where(.site-footer) .footer-contact a {
  display: block;
  width: fit-content;
  max-width: 100%;
  line-height: 1.8;
  overflow-wrap: anywhere;
  text-decoration: none;
}

:where(.site-footer) .footer-contact address {
  margin-top: 20px;
  font-style: normal;
}

:where(.site-footer) .footer-visit-note { margin-top: 15px; }
:where(.site-footer) .footer-bottom-band { background: var(--surface); }

:where(.site-footer) .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 49.5px;
  color: var(--muted);
}

:where(.site-footer) .footer-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 23px;
}

:where(.site-footer) .footer-identity a { max-width: 100%; }

:where(.site-footer) .footer-identity img {
  display: block;
  width: var(--swissoptik-logo-width);
  max-width: 100%;
  height: auto;
}

.seh-demos[data-theme='dark'] .footer-identity a {
  padding: 8px;
  border-radius: var(--demo-control-radius);
  background: #fff;
}

:where(.site-footer) .footer-legal {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 12px 20px;
}

:where(.site-footer) .footer-legal a { text-decoration: none; }

:where(.site-footer) :is(.footer-contact, .footer-legal) a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:where(.site-footer) .footer-wordmark {
  padding-block: clamp(24px, 3.5vw, 52px) 10px;
  color: var(--footer-wordmark-color);
  font-family: 'Inter Tight', var(--font-display);
  font-size: min(15.5vw, 15rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .86;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

@media (max-width: 1100px) {
  :where(.site-footer) .footer-contact-grid { gap: 30px; }
  :where(.site-footer) .footer-contact h2 { font-size: 2rem; }
}

@media (max-width: 840px) {
  :where(.site-footer) .footer-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 27px 35px;
  }

  :where(.site-footer) .footer-contact-intro { grid-column: 1 / -1; }
  :where(.site-footer) .footer-contact h2 { font-size: 2.5rem; }
  :where(.site-footer) .footer-bottom { align-items: flex-start; }
  :where(.site-footer) .footer-identity { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  :where(.site-footer) .footer-contact { padding-block: 30px; }
  :where(.site-footer) .footer-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  :where(.site-footer) .footer-contact-intro { grid-column: auto; }
  :where(.site-footer) .footer-contact h2 { font-size: 2.1875rem; }
  :where(.site-footer) .footer-bottom { flex-direction: column; gap: 16px; padding-block: 32px; }
}
