:root {
  --bg: #12110d;
  --bg-2: #1d1b14;
  --ink: #f6efe0;
  --muted: #b6aa91;
  --line: rgba(246, 239, 224, .18);
  --green: #78b159;
  --gold: #d9a441;
  --clay: #a85f3c;
  --water: #4fa1b8;
  --red: #e00000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 Inter, Segoe UI, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(18, 17, 13, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: block;
  width: min(260px, 46vw);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a,
.filter,
footer a,
.season-tabs button {
  padding: 9px 12px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

nav a:hover,
nav a.active,
footer a:hover,
.filter:hover,
.filter.active,
.season-tabs button.active {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(246, 239, 224, .08);
}

.page-section {
  padding: 86px clamp(18px, 4vw, 54px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  align-items: end;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 17, 13, .92), rgba(18, 17, 13, .28) 58%, rgba(18, 17, 13, .68)),
    linear-gradient(0deg, var(--bg), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 160px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 11vw, 132px);
  line-height: .86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 70px);
  line-height: .95;
}

h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: #efe4cc;
  font-size: clamp(18px, 2vw, 24px);
}

.server-card {
  display: grid;
  width: min(100%, 430px);
  padding: 10px;
  background: rgba(18, 17, 13, .82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

.server-card > span {
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 9px;
  background: var(--gold);
  color: #18130a;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.server-card button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px 4px 4px;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.server-card b {
  font-size: clamp(31px, 5vw, 46px);
  line-height: .95;
}

.server-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-cta {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 18px;
  background: var(--green);
  color: #10140b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-cta:hover {
  background: var(--gold);
}

.home-links,
.gallery-section {
  background:
    linear-gradient(135deg, rgba(120, 177, 89, .12), transparent 35%),
    var(--bg);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto 30px;
}

.gallery-item span,
footer {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.interior-page {
  padding-top: 84px;
}

.page-hero {
  padding: 86px clamp(18px, 4vw, 54px) 42px;
  background:
    linear-gradient(90deg, rgba(18, 17, 13, .96), rgba(18, 17, 13, .66)),
    url("assets/hero-image.png") center / cover;
  border-bottom: 1px solid var(--line);
}

.compact-hero h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 104px);
}

.compact-hero p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: #efe4cc;
  font-size: clamp(18px, 2vw, 23px);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
}

.feature-link {
  display: grid;
  min-height: 220px;
  align-content: end;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  transition: transform .18s ease, background .18s ease;
}

.feature-link::before,
.feature-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.feature-link::before {
  background: var(--card-image) center / cover;
  opacity: .34;
  transition: transform .35s ease, opacity .18s ease;
}

.feature-link::after {
  background: linear-gradient(0deg, rgba(18, 17, 13, .95), rgba(18, 17, 13, .3));
}

.feature-link > * {
  position: relative;
  z-index: 1;
}

.feature-link:nth-child(2) {
  border-top-color: var(--red);
}

.feature-link:nth-child(3) {
  border-top-color: var(--water);
}

.feature-link:hover {
  transform: translateY(-5px);
  background: #282317;
}

.feature-link:hover::before {
  opacity: .48;
  transform: scale(1.04);
}

.info-card {
  --card-image: url("assets/season-2/Town Hall.png");
}

.map-card {
  --card-image: url("assets/season-2/Shopping District.png");
}

.gallery-card {
  --card-image: url("assets/season-2/Spawn Museum.png");
}

.guides-card {
  --card-image: url("assets/season-2/Kourtney's Temple.png");
}

.feature-link span {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.feature-link h3 {
  margin-bottom: 0;
}

.map-section {
  background: #17140f;
}

.info-section {
  background:
    linear-gradient(145deg, rgba(79, 161, 184, .11), transparent 34%),
    #15130e;
}

.info-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr 1.05fr;
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
}

.info-grid.two-column,
.mods-layout {
  grid-template-columns: 1fr 1fr;
}

.info-panel {
  min-width: 0;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.panel-label {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.basic-info dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.basic-info div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 15px 16px;
  background: #15130e;
}

.basic-info dt,
.clean-list li::marker {
  color: var(--muted);
  font-weight: 850;
}

.basic-info dd {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: #e9dec7;
}

.clean-list b {
  color: var(--ink);
}

.download-panel p,
.mods-layout p,
.muted-note {
  color: #e9dec7;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 10px;
  padding: 0 18px;
  background: var(--green);
  border: 0;
  color: #10140b;
  cursor: pointer;
  font-weight: 950;
  text-transform: uppercase;
}

.download-button:hover:not(:disabled) {
  background: var(--gold);
}

.download-button:disabled {
  cursor: wait;
  opacity: .7;
}

.download-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mods-section {
  background: #12110d;
}

.guides-section {
  background:
    linear-gradient(135deg, rgba(217, 164, 65, .1), transparent 34%),
    var(--bg);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
}

.guide-card {
  min-width: 0;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
}

.guide-card:nth-child(3n + 2) {
  border-top-color: var(--water);
}

.guide-card:nth-child(3n) {
  border-top-color: var(--gold);
}

.guide-card p {
  color: #e9dec7;
}

.guide-card code {
  padding: 2px 5px;
  background: rgba(246, 239, 224, .08);
  border: 1px solid rgba(246, 239, 224, .12);
  color: var(--ink);
  font-size: .92em;
}

.guide-card a {
  color: #9fd6e5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mods-layout {
  display: grid;
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
}

.mod-table {
  display: grid;
  gap: 1px;
  margin-top: 22px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mod-table div {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #191811;
}

.mod-table div:nth-child(even) {
  background: #232016;
}

.mod-table b,
.mod-table span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mod-table span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.link-list a {
  color: #9fd6e5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-launch {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  max-width: 1240px;
  min-height: 360px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(79, 161, 184, .16), transparent 42%),
    var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .35);
}

.map-launch p {
  max-width: 650px;
  color: #e9dec7;
}

.map-launch p:last-child {
  margin-bottom: 0;
}

.map-launch p b {
  color: var(--ink);
}

.map-launch a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--water);
  color: #071115;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1240px;
  margin: -10px auto 24px;
}

.season-heading {
  align-items: center;
}

.season-tabs {
  display: flex;
  gap: 8px;
}

.season-tabs button {
  background: rgba(246, 239, 224, .04);
  cursor: default;
}

.filter {
  background: rgba(246, 239, 224, .04);
  cursor: pointer;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
}

.gallery-item {
  grid-column: span 4;
  overflow: hidden;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.gallery-item:nth-child(7n + 1),
.gallery-item:nth-child(7n + 4) {
  grid-column: span 6;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item div {
  padding: 15px 16px 18px;
}

.gallery-item h3 {
  margin: 4px 0 0;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 30px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: #0d0c09;
}

footer nav {
  flex-wrap: wrap;
  justify-content: end;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    align-items: start;
  }

  nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: 820px;
  }

  .section-heading {
    display: block;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .link-grid,
  .info-grid.two-column,
  .mods-layout,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .map-launch {
    display: grid;
    min-height: 0;
  }

  .gallery-item,
  .gallery-item:nth-child(7n + 1),
  .gallery-item:nth-child(7n + 4) {
    grid-column: span 6;
  }
}

@media (max-width: 620px) {
  .page-section {
    padding: 70px 16px;
  }

  .hero-content {
    padding-top: 230px;
  }

  .server-card {
    width: 100%;
  }

  .interior-page {
    padding-top: 0;
  }

  .mod-table div {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item:nth-child(7n + 1),
  .gallery-item:nth-child(7n + 4) {
    grid-column: auto;
  }
}
