:root {
  --ink: #18211d;
  --muted: #66716c;
  --green: #1d6b50;
  --green-dark: #144b3a;
  --green-soft: #dbe9e2;
  --cream: #f6f4ed;
  --line: rgba(24, 33, 29, 0.16);
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #ded4b7 url('/assets/background_pattern.png') center top / 720px auto repeat;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, 0.9);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1440px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 94px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--green-dark);
  border-radius: 50% 50% 48% 52% / 43% 52% 48% 57%;
  font-family: var(--serif);
  font-size: 20px;
  transform: rotate(-5deg);
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-tag {
  padding: 4px 8px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.directory-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.directory-link span:last-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: 180ms ease;
}

.directory-link:hover span:last-child {
  color: white;
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: rotate(45deg);
}

.hero {
  position: relative;
  min-height: 500px;
  padding: 82px 0 72px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 22px;
  height: 1px;
  background: var(--green);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(260px, 390px);
  gap: 80px;
  align-items: end;
  margin-top: 26px;
  padding-right: 14%;
}

.hero h1,
.profile h1,
.error-page h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(76px, 9vw, 132px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--green);
  font-weight: 400;
}

.hero-copy p {
  max-width: 370px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero-count {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: flex;
  gap: 14px;
  align-items: flex-end;
}

.hero-count strong {
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 400;
  line-height: 0.8;
}

.hero-count span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.directory {
  padding: 54px 0 96px;
}

.directory-bar,
.directory-bar > div,
.directory-controls {
  display: flex;
  align-items: center;
}

.directory-bar {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.directory-bar > div:first-child {
  gap: 16px;
}

.section-number {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  color: var(--green);
  border: 1px solid rgba(29, 107, 80, 0.35);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
}

.directory h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.directory-controls {
  gap: 10px;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-link {
  display: flex;
  min-width: 0;
  padding: 18px 16px;
  align-items: center;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: 180ms ease;
}

.category-link:first-child {
  padding-left: 0;
}

.category-link:last-child {
  padding-right: 0;
  border-right: 0;
}

.category-link strong {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--status-color, var(--green));
  background: color-mix(in srgb, var(--status-color, var(--green)) 10%, transparent);
  border-radius: 50%;
  font-size: 10px;
}

.category-link:hover {
  color: var(--status-color, var(--green));
}

.category-link--active,
.status-badge--active,
.member-card--active {
  --status-color: #1d6b50;
}

.category-link--banned,
.status-badge--banned,
.member-card--banned {
  --status-color: #a5413d;
}

.category-link--abandoned,
.status-badge--abandoned,
.member-card--abandoned {
  --status-color: #ac7026;
}

.category-link--decayed,
.status-badge--decayed,
.member-card--decayed {
  --status-color: #68726e;
}

.loyal-groups {
  display: grid;
  gap: 94px;
}

.loyal-group {
  scroll-margin-top: 28px;
}

.loyal-group[hidden] {
  display: none;
}

.loyal-group-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.loyal-group-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.group-number {
  padding-top: 6px;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.loyal-group h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.loyal-group-header p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.group-count {
  flex: 0 0 auto;
  padding-top: 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.group-empty {
  margin: 0;
  padding: 40px 0;
  color: var(--muted);
}

.search-control,
.sort-control {
  display: flex;
  height: 42px;
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.search-control {
  width: 220px;
  padding: 0 13px;
}

.search-control svg {
  width: 17px;
  margin-right: 9px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.search-control input {
  min-width: 0;
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.search-control:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(29, 107, 80, 0.1);
}

.sort-control {
  padding-left: 13px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sort-control select {
  height: 100%;
  padding: 0 30px 0 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px 18px;
}

.member-card {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.member-card[hidden] {
  display: none;
}

.avatar-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: hsl(var(--avatar-hue) 26% 84%);
}

.avatar-card {
  aspect-ratio: 1;
  border: 2px solid var(--green);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.58);
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: hsl(var(--avatar-hue) 37% 29%);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.65), transparent 28%),
    hsl(var(--avatar-hue) 30% 85%);
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 82px);
}

.avatar-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.member-card:hover .avatar-image {
  transform: scale(1.045);
}

.member-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
}

.member-name {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--green);
  border: 1px solid rgba(29, 107, 80, 0.28);
  border-radius: 50%;
  font-size: 11px;
  transition: 180ms ease;
}

.member-card:hover .member-arrow {
  color: white;
  background: var(--green);
  transform: rotate(45deg);
}

.member-date {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-card-details {
  display: flex;
  gap: 10px;
  min-height: 24px;
  margin-top: 5px;
  align-items: center;
  justify-content: space-between;
}

.status-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: var(--status-color);
  background: color-mix(in srgb, var(--status-color) 10%, transparent);
  border-radius: 100px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.empty-search {
  padding: 70px 20px;
  text-align: center;
}

.empty-search span {
  color: var(--green);
  font-family: var(--serif);
  font-size: 44px;
}

.empty-search p {
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  gap: 10px;
  padding-top: 34px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--green);
  text-decoration: none;
}

.profile {
  min-height: calc(100vh - 190px);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(340px, 590px) minmax(340px, 1fr);
  gap: clamp(64px, 9vw, 150px);
  align-items: center;
  padding: 54px 7% 94px;
}

.profile-image-wrap {
  position: relative;
  padding: 20px 0 0 20px;
}

.profile-number {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  padding: 9px 12px;
  color: white;
  background: var(--green-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.avatar-profile {
  aspect-ratio: 1;
  border: 3px solid var(--green);
  box-shadow: 18px 18px 0 var(--green-soft);
}

.avatar-profile .avatar-fallback {
  font-size: clamp(90px, 14vw, 180px);
}

.profile-copy {
  max-width: 560px;
}

.profile h1 {
  margin-top: 24px;
  font-size: clamp(66px, 8vw, 116px);
  overflow-wrap: anywhere;
}

.discord-name {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.discord-name strong {
  color: var(--ink);
}

.profile-details {
  margin: 46px 0 38px;
  border-top: 1px solid var(--line);
}

.profile-details > div {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.profile-details dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.profile-details dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 2px 0;
  background: #2d9e63;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(45, 158, 99, 0.13);
}

.status-dot--banned {
  background: #a5413d;
  box-shadow: 0 0 0 4px rgba(165, 65, 61, 0.13);
}

.status-dot--abandoned {
  background: #ac7026;
  box-shadow: 0 0 0 4px rgba(172, 112, 38, 0.13);
}

.status-dot--decayed {
  background: #68726e;
  box-shadow: 0 0 0 4px rgba(104, 114, 110, 0.13);
}

.eyebrow--banned {
  color: #a5413d;
}

.eyebrow--banned span {
  background: #a5413d;
}

.eyebrow--abandoned {
  color: #ac7026;
}

.eyebrow--abandoned span {
  background: #ac7026;
}

.eyebrow--decayed {
  color: #68726e;
}

.eyebrow--decayed span {
  background: #68726e;
}

.status-context {
  max-width: 460px;
  margin: -16px 0 34px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.back-button {
  display: inline-flex;
  gap: 12px;
  height: 46px;
  padding: 0 20px;
  align-items: center;
  color: white;
  background: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: 180ms ease;
}

.back-button:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.error-page {
  position: relative;
  min-height: calc(100vh - 190px);
  padding: 130px 10%;
  overflow: hidden;
}

.error-page h1 {
  max-width: 760px;
  margin-top: 26px;
  font-size: clamp(58px, 7vw, 100px);
  line-height: 0.93;
}

.error-page > p {
  max-width: 520px;
  margin: 30px 0;
  color: var(--muted);
  line-height: 1.7;
}

.error-code {
  position: absolute;
  z-index: -1;
  top: 30px;
  right: 6%;
  color: rgba(29, 107, 80, 0.07);
  font-family: var(--serif);
  font-size: clamp(180px, 28vw, 420px);
  line-height: 1;
}

.site-footer {
  display: flex;
  gap: 18px;
  height: 96px;
  align-items: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .member-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-copy {
    grid-template-columns: 1fr 300px;
    padding-right: 0;
  }

  .hero-count {
    display: none;
  }

  .profile-layout {
    gap: 70px;
    padding-inline: 2%;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 36px, 720px);
  }

  .hero {
    min-height: auto;
    padding: 64px 0;
  }

  .hero-copy {
    display: block;
  }

  .hero-copy p {
    margin-top: 35px;
  }

  .directory-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .directory-controls {
    width: 100%;
  }

  .category-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-link:nth-child(2) {
    border-right: 0;
  }

  .category-link:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .category-link:first-child,
  .category-link:last-child {
    padding-inline: 16px;
  }

  .search-control {
    flex: 1;
    width: auto;
  }

  .member-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 74px;
    padding: 42px 5% 90px;
  }

  .profile-image-wrap {
    max-width: 560px;
  }
}

@media (max-width: 560px) {
  body {
    background-size: 500px auto;
  }

  .page-shell {
    width: calc(100% - 28px);
  }

  .site-header {
    height: 78px;
  }

  .directory-link span:first-child,
  .brand-tag {
    display: none;
  }

  .hero {
    padding: 52px 0;
  }

  .hero h1 {
    font-size: clamp(64px, 22vw, 92px);
  }

  .hero-copy p {
    max-width: 320px;
    font-size: 13px;
  }

  .directory {
    padding: 42px 0 72px;
  }

  .directory-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .search-control,
  .sort-control {
    width: 100%;
  }

  .sort-control select {
    flex: 1;
  }

  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .member-name {
    font-size: 17px;
  }

  .member-date {
    font-size: 8px;
  }

  .category-nav {
    grid-template-columns: 1fr;
    margin-bottom: 54px;
  }

  .category-link,
  .category-link:first-child,
  .category-link:last-child,
  .category-link:nth-child(2) {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-link:last-child {
    border-bottom: 0;
  }

  .loyal-groups {
    gap: 72px;
  }

  .loyal-group-header {
    gap: 16px;
  }

  .loyal-group h3 {
    font-size: 29px;
  }

  .loyal-group-header p {
    font-size: 11px;
  }

  .group-count {
    display: none;
  }

  .member-card-details {
    display: block;
  }

  .status-badge {
    display: inline-block;
    margin-top: 6px;
  }

  .profile-layout {
    padding-inline: 0;
  }

  .profile-image-wrap {
    padding-left: 12px;
  }

  .avatar-profile {
    box-shadow: 10px 10px 0 var(--green-soft);
  }

  .profile h1 {
    font-size: clamp(58px, 20vw, 86px);
  }

  .site-footer span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
