:root {
  color-scheme: light;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1c281e;
  background: #e8ebdf;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #f3f5ec, #e7ebde 70%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #527238;
  outline-offset: 4px;
}

.directory {
  width: min(100%, 41rem);
  margin-inline: auto;
  padding: clamp(1rem, 5vh, 3rem) 1rem 2rem;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(13.5rem, 37vw, 16rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 1.125rem;
  border-radius: 1.625rem;
  background: #182a1e;
  color: #fbfff5;
}

.hero-image,
.hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image {
  left: auto;
  width: min(100%, 29rem);
  object-fit: cover;
  object-position: center 10%;
}

.hero::after {
  content: "";
  background: linear-gradient(90deg, #16271d 26%, #182b2000 75%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  min-height: 2.75rem;
  align-items: stretch;
  justify-content: space-between;
  gap: .5rem;
}

.language-picker {
  display: flex;
  padding: .19rem;
  border: 1px solid #f2f9e963;
  border-radius: 99px;
  background: #1a291fd6;
}

.language-picker a {
  display: grid;
  min-width: 2.75rem;
  padding-inline: .5rem;
  place-items: center;
  border-radius: 99px;
  color: inherit;
  font-size: .875rem;
  font-weight: 630;
  text-decoration: none;
}

.language-picker a:hover {
  background: #2e4133;
}

.language-picker a[aria-current="page"] {
  background: #ddf18e;
  color: #203023;
}

.share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .63rem;
  margin-inline-start: auto;
  padding: .5rem .9rem;
  border: 1px solid #f2f9e963;
  border-radius: 99px;
  background: #1a291fd6;
  color: inherit;
  font-size: .875rem;
}

.share[hidden],
.language-picker[hidden] {
  display: none;
}

.share:hover {
  background: #2e4133;
}

.share:focus-visible,
.language-picker a:focus-visible {
  outline-color: #ddf18e;
}

.link-icon {
  position: relative;
  display: inline-block;
  width: 1rem;
  height: 1rem;
  transform: rotate(-42deg);
}

.link-icon::before,
.link-icon::after {
  content: "";
  position: absolute;
  top: .29rem;
  width: .55rem;
  height: .39rem;
  border: 1.4px solid currentColor;
  border-radius: 99px;
}

.link-icon::before {
  left: -.12rem;
}

.link-icon::after {
  right: -.12rem;
}

.hero-copy {
  padding: 0 clamp(.25rem, 2vw, 1rem) .7rem;
}

.hero-copy h1 {
  margin: 0;
  font: 400 clamp(3.5rem, 9vw, 5.35rem)/.96 Georgia, serif;
  letter-spacing: -.07em;
}

.hero-copy p {
  width: fit-content;
  margin: .9rem 0 0;
  color: #e6efdb;
  font-size: .9375rem;
  letter-spacing: .06em;
}

.entry {
  display: flex;
  min-height: 4.3rem;
  align-items: center;
  gap: .82rem;
  padding: .64rem .95rem .64rem .64rem;
  border: 1px solid #d8ded0;
  border-radius: 1rem;
  background: #fcfdf9;
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.entry:hover {
  border-color: #8fa682;
  background: #f4f8ee;
}

.entry-image {
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  flex: none;
  place-items: center;
  border-radius: .67rem;
  background-color: #2a3a2b;
}

.entry-copy {
  display: grid;
  flex: 1;
  gap: .14rem;
  min-width: 0;
  line-height: 1.35;
}

.entry-copy strong {
  font-weight: 680;
}

.entry-copy > span {
  color: #4f5c4f;
  font-size: .875rem;
}

.entry-action {
  white-space: nowrap;
  color: #385136;
  font-size: .875rem;
  font-weight: 630;
}

.contact {
  min-height: 4.75rem;
  margin-top: .875rem;
  border-color: #c6dd79;
  background: #ddf18e;
}

.contact:hover {
  border-color: #8ca449;
  background: #e5f5aa;
}

.contact-icon {
  color: #e6f6b0;
}

.contact-icon span {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  padding-bottom: .05rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font: 1rem/1 "Segoe UI Symbol", sans-serif;
}

.contact-icon span::after {
  content: "";
  position: absolute;
  bottom: -.12rem;
  left: 0;
  width: .31rem;
  height: .31rem;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  background: #2a3a2b;
  transform: skew(-13deg, -15deg);
}

.contact .entry-action {
  padding: .42rem .7rem;
  border-radius: 99px;
  background: #263726;
  color: #f1f8df;
}

.catalogs {
  margin-top: 1.2rem;
}

.catalogs h2 {
  margin: 0 0 .56rem .12rem;
  color: #3c4b3d;
  font-size: .9375rem;
  font-weight: 680;
}

.catalogs ul {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalogs .entry-image {
  background-image: url("cover.webp");
  background-size: 490% auto;
  background-repeat: no-repeat;
}

.jersey {
  background-position: 65% 80%;
}

.cap {
  background-position: 93% 73%;
}

.bag {
  background-position: 76% 34%;
}

dialog {
  width: min(26rem, calc(100% - 2rem));
  padding: 1.35rem;
  border: 1px solid #ccd4c6;
  border-radius: 1.125rem;
  background: #fcfdf9;
  color: inherit;
}

dialog::backdrop {
  background: #14251d88;
}

dialog h2 {
  margin: 0 0 .85rem;
  font-size: 1.125rem;
}

dialog input {
  width: 100%;
  margin-top: .4rem;
  padding: .55rem .65rem;
  border: 1px solid #bac6b7;
  border-radius: .5rem;
  color: inherit;
}

dialog button {
  margin-top: 1rem;
  padding: .48rem .8rem;
  border: 0;
  border-radius: .5rem;
  background: #ddf18e;
  color: inherit;
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 26rem) {
  .hero {
    padding: .875rem;
  }

  .hero-copy p {
    max-width: 12rem;
    text-wrap: balance;
    text-shadow: 0 1px 4px #102017;
  }

  .entry {
    gap: .65rem;
    padding-right: .65rem;
  }
}

@media (max-width: 22rem) {
  .hero-actions {
    gap: .25rem;
  }

  .language-picker a {
    min-width: 2.5rem;
  }

  .share {
    gap: .4rem;
    padding-inline: .4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry {
    transition: none;
  }
}
