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

html {
  min-width: 280px;
  min-height: 100%;
  background: var(--color-background);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--color-foreground);
  background:
    radial-gradient(ellipse at 90% 4%, rgba(104, 208, 191, .10), transparent 47%),
    radial-gradient(ellipse at 2% 96%, rgba(104, 208, 191, .055), transparent 42%),
    var(--color-background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: .22em;
}

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 7px;
  border-radius: 3px;
}

::selection {
  color: var(--herget-petrol);
  background: var(--herget-mint);
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 10;
  padding: 8px 16px;
  color: var(--color-primary-foreground);
  background: var(--color-primary);
  border-radius: 8px;
  transform: translateY(-170%);
}

.skip-link:focus {
  transform: translateY(0);
}

.landing-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 88px 28px;
}

.identity {
  width: min(100%, 690px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(30px, 4.2vw, 44px);
  transform: translateY(-10px);
}

.brand {
  width: 100%;
  margin: 0;
  line-height: 0;
}

picture,
picture img {
  display: block;
}

.brand img,
.small-brand img {
  width: 100%;
  height: auto;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 2px;
  font-size: clamp(18px, 2.3vw, 21px);
  font-weight: 450;
  letter-spacing: -.025em;
  text-decoration: none;
}

.contact-link > span:first-child {
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.contact-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--herget-petrol);
  background: var(--herget-mint);
  font-size: 19px;
  line-height: 1;
  transition: transform 160ms ease, background-color 160ms ease;
}

.contact-link:hover > span:first-child {
  border-color: currentColor;
}

.contact-link:hover .contact-arrow {
  transform: translate(1px, -1px);
  background: var(--color-primary-hover);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 24px clamp(24px, 5vw, 64px) 30px;
  color: var(--color-muted-foreground);
  font-size: 13px;
  line-height: 1.4;
}

.site-footer a {
  display: inline-block;
  padding: 8px 0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-foreground);
  text-decoration: underline;
}

.legal-header {
  width: min(100% - 56px, 1160px);
  margin-inline: auto;
  padding-top: 38px;
}

.small-brand {
  display: block;
  width: 208px;
}

.legal-main {
  flex: 1;
  width: min(100% - 56px, 624px);
  margin: 80px auto 100px;
}

.legal-main h1 {
  margin: 0 0 34px;
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.15;
}

.address {
  display: grid;
  gap: 2px;
  font-size: 18px;
  font-style: normal;
  letter-spacing: -.015em;
}

.address-name {
  margin-bottom: 7px;
  font-weight: 600;
}

.contact-section {
  margin-top: 34px;
}

.contact-section h2 {
  margin: 0 0 6px;
  color: var(--color-muted-foreground);
  font-size: 14px;
  font-weight: 500;
}

.legal-email {
  color: var(--color-link);
  font-size: 18px;
  text-decoration-thickness: 1px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
  color: var(--color-muted-foreground);
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--color-foreground);
}

@media (max-width: 540px) {
  .landing-main {
    padding: 64px 24px;
  }

  .identity {
    gap: 32px;
    transform: translateY(-14px);
  }

  .site-footer {
    gap: 16px;
    padding: 20px 24px 24px;
    font-size: 12px;
  }

  .legal-header {
    width: calc(100% - 48px);
    padding-top: 26px;
  }

  .small-brand {
    width: 180px;
  }

  .legal-main {
    width: calc(100% - 48px);
    margin-top: 62px;
    margin-bottom: 70px;
  }
}

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

