/* Sherpa link page. Tokens from the Sherpa brand kit (design-studio/brands/sherpa.md). */

@font-face {
  font-family: "Barlow SC";
  src: url("fonts/BarlowSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow SC";
  src: url("fonts/BarlowSC-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #9B0014;
  --red-dark: #75000F;
  --ink: #1D1D1D;
  --slate: #1F2933;
  --ivory: #F4F1EC;
  --white: #FFFFFF;
  --rule: rgba(31, 41, 51, 0.2);
  --font: "Barlow SC", "Barlow", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.4;
  hyphens: manual;
  overflow-wrap: normal;
}

.page {
  width: 100%;
  max-width: 35rem;
  margin: 0 auto;
  padding: clamp(2rem, 7vh, 4.5rem) clamp(1.25rem, 6vw, 2rem) 2.5rem;
}

/* Header */

.head__logo {
  margin: 0;
  line-height: 0;
}

.head__logo img {
  display: block;
  width: min(100%, 19rem);
  height: auto;
}

.head__intro {
  margin: 1.75rem 0 0;
  max-width: 31rem;
  color: var(--slate);
  font-size: 1.125rem;
  line-height: 1.45;
  text-wrap: pretty;
}

/* Links */

.links {
  margin-top: 2.25rem;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.group {
  margin-top: 2.5rem;
}

.group__label {
  margin: 0;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--red);
  color: var(--red);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease;
}

.row__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.row__title {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.2;
}

.row__note {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.3;
  transition: color 160ms ease;
}

.row__arrow {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--red);
  transition: transform 160ms ease, color 160ms ease;
}

.row:hover,
.row:focus-visible {
  color: var(--red);
}

.row:hover .row__arrow,
.row:focus-visible .row__arrow {
  transform: translateX(0.25rem);
}

.row:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 3px;
}

/* The one filled row: the main site */

.row--primary {
  padding: 1rem 1.25rem;
  border-bottom: 0;
  background: var(--red);
  color: var(--white);
  transition: background-color 160ms ease;
}

.row--primary .row__note,
.row--primary .row__arrow {
  color: var(--white);
}

.row--primary:hover,
.row--primary:focus-visible {
  background: var(--red-dark);
  color: var(--white);
}

/* Social channels: two columns, title only */

.list--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
}

.row--short {
  min-height: 3.5rem;
}

.row--short .row__title {
  font-size: 1.1875rem;
}

/* Footer */

.foot {
  margin-top: 2.75rem;
  color: var(--slate);
  font-size: 0.9375rem;
}

.foot p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .row,
  .row__note,
  .row__arrow {
    transition: none;
  }

  .row:hover .row__arrow,
  .row:focus-visible .row__arrow {
    transform: none;
  }
}
