:root {
  color-scheme: light;
  --ink: #122021;
  --muted: #587071;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --line: #d7e5e2;
  --warm: #f0b44d;
  --shadow: 0 24px 80px rgba(18, 32, 33, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  background:
    linear-gradient(90deg, rgba(171, 145, 103, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(171, 145, 103, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #faf8f2 0%, #f4efe3 58%, #fbf7ef 100%);
  background-size:
    72px 72px,
    72px 72px,
    auto;
}

.site-shell {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: 100vh;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

.hero {
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(560px, 100%);
  height: auto;
  margin: 0 auto 2rem;
  object-fit: contain;
}

h1 {
  max-width: 10ch;
  margin: 0 auto;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 4.65rem;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 560px;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
}

.barber-loader {
  position: relative;
  overflow: hidden;
  width: min(420px, 100%);
  height: 18px;
  margin-top: 2rem;
  margin-right: auto;
  margin-left: auto;
  border: 2px solid #111111;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 32, 33, 0.1);
}

.barber-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    -45deg,
    #111111 0 25%,
    #ffffff 25% 50%,
    #111111 50% 75%,
    #ffffff 75% 100%
  );
  background-size: 56px 56px;
  animation: barber-slide 1100ms linear infinite;
  will-change: background-position;
}

@keyframes barber-slide {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 56px 0;
  }
}

.links-section {
  display: grid;
  grid-template-columns: minmax(0, 220px);
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.link-card {
  display: grid;
  grid-template-rows: auto;
  justify-items: center;
  min-height: auto;
  padding: 1.1rem;
  border: 1px solid rgba(18, 32, 33, 0.1);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  text-align: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 30px 90px rgba(18, 32, 33, 0.16);
  outline: none;
}

.logo-link-card {
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.logo-link-card:hover,
.logo-link-card:focus-visible {
  border: 0;
  box-shadow: none;
}

.logo-link-card:hover .partner-logo-box,
.logo-link-card:focus-visible .partner-logo-box {
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 20px 56px rgba(18, 32, 33, 0.13);
}

.partner-logo-box {
  display: grid;
  place-items: center;
  width: min(180px, 100%);
  min-height: 74px;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid rgba(18, 32, 33, 0.1);
  border-radius: 8px;
  background: #f1eee7;
  box-shadow: 0 16px 48px rgba(18, 32, 33, 0.1);
}

.partner-logo-box img {
  display: block;
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  width: 100%;
  padding-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 1200px) {
  .site-shell {
    width: min(980px, calc(100% - 64px));
    gap: 3rem;
  }

  .hero {
    max-width: 700px;
  }

  .brand-logo {
    width: 540px;
  }

  .lead {
    max-width: 520px;
  }
}

@media (max-width: 820px) {
  h1 {
    font-size: 3.35rem;
  }
}

@media (max-height: 860px) {
  .site-shell {
    align-content: start;
    gap: 2rem;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 24px, 1120px);
    padding: 2rem 0;
  }

  .brand-logo {
    margin-bottom: 1.5rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  .lead {
    max-width: 340px;
    font-size: 1.05rem;
  }

  .barber-loader {
    width: min(320px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .barber-loader::before {
    animation: none;
  }
}
