:root {
  color-scheme: dark;
  --ink: #f4f7f8;
  --muted: #aebbc3;
  --accent: #c9e8ef;
  --line: rgba(213, 237, 242, 0.26);
  --page-pad: clamp(1.35rem, 4vw, 4.75rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #071017;
  color: var(--ink);
  font-family: Inter, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  background: #071017;
}

.hero__art,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__art {
  transform: scale(1.015);
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 9, 14, 0.96) 0%, rgba(3, 9, 14, 0.78) 29%, rgba(3, 9, 14, 0.25) 58%, rgba(3, 9, 14, 0.14) 100%),
    linear-gradient(180deg, rgba(2, 8, 13, 0.52) 0%, transparent 24%, transparent 65%, rgba(2, 8, 13, 0.82) 100%);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-inline: var(--page-pad);
}

.site-header {
  padding-top: clamp(1.5rem, 3.5vw, 3.25rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #f7fafb;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.19em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.brand__mark {
  width: 2.35rem;
  height: 2.35rem;
}

.status {
  color: rgba(222, 232, 235, 0.7);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero__content {
  align-self: center;
  width: min(48rem, 86vw);
  margin-left: var(--page-pad);
  padding-block: 5rem;
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.6rem, 7.7vw, 8.2rem);
  font-weight: 350;
  letter-spacing: -0.065em;
  line-height: 0.87;
  text-wrap: balance;
}

h1 span {
  color: #b8c8cd;
}

.intro {
  max-width: 31rem;
  margin: clamp(1.6rem, 3vw, 2.5rem) 0 0;
  color: #d5dfe2;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 380;
  line-height: 1.65;
}

.primary-action {
  display: inline-flex;
  margin-top: 1.5rem;
  border: 1px solid rgba(216, 239, 243, 0.58);
  border-radius: 999px;
  padding: 0.82rem 1.15rem;
  background: rgba(5, 15, 21, 0.48);
  color: #eef7f8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.primary-action:hover,
.primary-action:focus-visible {
  border-color: var(--accent);
  background: rgba(201, 232, 239, 0.12);
}

.rule {
  width: min(20rem, 65vw);
  height: 1px;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(90deg, rgba(198, 231, 238, 0.75), transparent);
}

.launch-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer {
  align-items: end;
  padding-bottom: clamp(1.35rem, 3vw, 2.5rem);
  color: rgba(218, 226, 229, 0.66);
  font-size: 0.68rem;
  letter-spacing: 0.035em;
}

.directory {
  padding: clamp(4rem, 8vw, 7rem) var(--page-pad);
  background:
    radial-gradient(circle at 90% 5%, rgba(45, 104, 118, 0.18), transparent 34rem),
    #071017;
}

.directory__intro {
  max-width: 48rem;
}

.directory h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.directory__intro > p:last-child {
  max-width: 45rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.directory__meta {
  margin-top: 2rem;
  color: rgba(218, 230, 233, 0.7);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.clan-card {
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  border: 1px solid rgba(201, 232, 239, 0.14);
  border-radius: 1rem;
  padding: 1.35rem;
  background: linear-gradient(145deg, rgba(18, 37, 46, 0.84), rgba(6, 16, 23, 0.92));
}

.clan-card__top,
.profile__source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.source-badge,
.freshness {
  color: #a8c9d0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.freshness {
  color: rgba(218, 230, 233, 0.58);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.clan-card h3 {
  margin: 1.3rem 0 0;
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.025em;
}

.clan-card__summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.8rem 0 0;
  color: #b9c7cc;
  font-size: 0.9rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(201, 232, 239, 0.16);
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
  color: #aec1c7;
  font-size: 0.65rem;
}

.clan-card__link {
  margin-top: auto;
  padding-top: 1.25rem;
  color: #d8edf1;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.clan-card__link:hover,
.clan-card__link:focus-visible,
.profile a:hover,
.profile a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

body > .site-footer {
  border-top: 1px solid rgba(201, 232, 239, 0.12);
  padding-block: 1.5rem;
  background: #050d12;
}

.profile-shell {
  min-height: 100svh;
  padding: 0 var(--page-pad) 5rem;
  background:
    radial-gradient(circle at 82% 5%, rgba(56, 126, 143, 0.2), transparent 34rem),
    #071017;
}

.profile-shell .site-header {
  padding-inline: 0;
}

.profile {
  max-width: 52rem;
  margin: clamp(4rem, 10vw, 8rem) auto 0;
}

.profile h1 {
  max-width: none;
  margin-top: 1rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
}

.profile__summary {
  margin: 2rem 0 0;
  color: #c8d5d9;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.profile .tag-list {
  margin-top: 1.5rem;
}

.profile__source {
  margin-top: 3rem;
  border: 1px solid rgba(201, 232, 239, 0.17);
  border-radius: 1rem;
  padding: 1.5rem;
  background: rgba(13, 29, 38, 0.78);
}

.profile__source h2 {
  margin: 0;
  font-size: 1.05rem;
}

.profile__source p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile__source a {
  display: inline-flex;
  margin-top: 1rem;
  color: #d8edf1;
  font-weight: 700;
}

.profile__notice {
  margin-top: 1.25rem;
  color: rgba(218, 230, 233, 0.6);
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  max-width: 34rem;
  text-align: right;
}

@media (max-width: 700px) {
  .hero__art {
    transform: scale(1.015);
  }

  .hero__art img {
    object-position: 67% center;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(3, 9, 14, 0.93) 0%, rgba(3, 9, 14, 0.58) 72%, rgba(3, 9, 14, 0.36) 100%),
      linear-gradient(180deg, rgba(2, 8, 13, 0.68) 0%, transparent 28%, rgba(2, 8, 13, 0.18) 60%, rgba(2, 8, 13, 0.92) 100%);
  }

  .brand span {
    max-width: 10rem;
    line-height: 1.3;
  }

  .status {
    font-size: 0.58rem;
  }

  .hero__content {
    align-self: end;
    width: auto;
    margin-right: var(--page-pad);
    padding-block: 6rem 3rem;
  }

  h1 {
    font-size: clamp(3.6rem, 16vw, 5.25rem);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .site-footer p:last-child {
    max-width: 31rem;
    text-align: left;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__art {
    animation: settle 1.8s ease-out both;
  }

  .hero__content {
    animation: reveal 1s 0.15s ease-out both;
  }

  @keyframes settle {
    from { opacity: 0; transform: scale(1.04); }
    to { opacity: 1; transform: scale(1.015); }
  }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}
