@font-face {
  font-family: Barlow Condensed;
  src: url("./assets/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url("./assets/barlow-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #101011;
  --surface: #19191b;
  --border: #343033;
  --text: #f8f2e9;
  --muted: #c3bbb3;
  --accent: #ff9756;
  --accent-hover: #ffb184;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1rem/1.6 var(--body);
}
[hidden] { display: none !important; }
a { color: inherit; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; }
section[id], article[id] { scroll-margin-top: 1.4rem; }
.shell { width: min(100% - 5rem, 75rem); margin-inline: auto; }
.section { padding-block: 5.4rem; }
.accent { color: var(--accent); }
.eyebrow {
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
}
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 3;
  top: 1rem;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--text);
  color: var(--background);
}

.site-header {
  background: #121213;
  border-bottom: 1px solid #ffffff13;
  position: relative;
  z-index: 1;
}
.header-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font: 800 1.7rem/.9 var(--display);
  letter-spacing: .02em;
}
.brand img { object-fit: contain; }
.brand-secondary { display: block; color: var(--muted); font-size: .64em; letter-spacing: .16em; margin-top: .15em; }
.header-inner nav, .footer-inner nav { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.55rem); }
.header-inner nav a, .footer-inner nav a {
  color: var(--muted);
  font-size: .925rem;
  font-weight: 600;
  text-decoration: none;
}
.header-inner nav a:hover, .footer-inner nav a:hover { color: var(--accent-hover); }
.menu-toggle { color: var(--text); background: transparent; border: 1px solid var(--border); padding: .42rem .8rem; }

.button {
  min-height: 3.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.14rem;
  border: 1px solid #6e574a;
  border-radius: .25rem;
  color: var(--text);
  background: transparent;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: color .16s, background-color .16s, border-color .16s;
}
.button:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.button-small { min-height: 2.65rem; padding: .5rem .9rem; font-size: .875rem; }
.button-primary { color: #21160f; border-color: var(--accent); background: var(--accent); }
.button-primary:hover { color: #21160f; background: var(--accent-hover); }
.button-secondary { background: #171415ae; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.text-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: .23em; }
.text-link:hover { color: var(--accent-hover); }

.hero { position: relative; isolation: isolate; background: #191311; overflow: hidden; }
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #110f10 0%, #110f10f5 14%, #110f10bd 36%, #110f1024 67%, #110f1017 100%),
    linear-gradient(0deg, #110f10bd, transparent 36%),
    url("./assets/hero.webp") right 51% / min(100%, 92rem) auto no-repeat;
}
.hero-inner {
  min-height: clamp(31rem, 47vw, 40rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding-block: 4.5rem 5rem;
}
.hero-kicker { display: flex; align-items: center; gap: .6rem; }
.hero-kicker::before { content: ""; width: 1.8rem; height: 2px; background: currentColor; }
.hero h1 {
  margin-top: .75rem;
  font-size: clamp(5rem, 8.7vw, 9rem);
  font-weight: 800;
  letter-spacing: -.025em;
  text-transform: uppercase;
  line-height: .85;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 29rem; margin-block: 1.65rem 1.55rem; color: #e9ded3; font-size: 1.125rem; }

.featured { border-block: 1px solid #493327; background: #211915; }
.featured-inner { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 1.3rem; min-height: 5.8rem; padding-block: .8rem; }
.featured-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  background: #362416;
  border: 1px solid #6c4228;
  color: var(--accent);
  font: 800 1.35rem/1 var(--display);
}
.featured-title .eyebrow { display: block; font-size: .75rem; }
.featured-title strong { display: block; font: 700 1.75rem/1.1 var(--display); }
.featured-inner p { color: var(--muted); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.65rem;
}
.section-heading h2, .community-inner h2 {
  margin-top: .3rem;
  font-weight: 800;
  font-size: clamp(3.3rem, 5.9vw, 5.1rem);
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.section-heading p:last-child:not(.eyebrow) { margin-top: .5rem; color: var(--muted); }
.mod-controls {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.1rem;
}
.search, .select { position: relative; display: block; }
.search { width: min(19rem, 100%); }
.search input, .select select {
  min-height: 2.8rem;
  color: var(--text);
  background: #18181a;
  border: 1px solid var(--border);
  border-radius: .25rem;
  font-size: .9375rem;
}
.search input { width: 100%; padding: .42rem .7rem .42rem 2.3rem; }
.search input::placeholder { color: #bbb0aa; }
.search-icon {
  position: absolute;
  pointer-events: none;
  top: .9rem;
  left: .85rem;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
}
.search-icon::after {
  content: "";
  position: absolute;
  width: .36rem;
  height: 1.5px;
  background: var(--muted);
  transform: rotate(47deg);
  top: .59rem;
  left: .53rem;
}
.select select { appearance: none; padding: .42rem 2rem .42rem .75rem; }
.select::after {
  content: "";
  position: absolute;
  pointer-events: none;
  top: 1.05rem;
  right: .83rem;
  width: .46rem;
  height: .46rem;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.feed-status { margin-left: auto; color: var(--muted); font-size: .875rem; }
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.mod-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .3rem;
  overflow: hidden;
}
.mod-cover { display: block; aspect-ratio: 1.9; background: #34271e url("./assets/hero.webp") 75% 58% / cover; overflow: hidden; }
.mod-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mod-cover:hover img { transform: scale(1.045); }
.mod-body { display: flex; flex: 1; flex-direction: column; align-items: start; gap: .5rem; padding: 1.15rem; }
.mod-body h3 { font-size: clamp(1.65rem, 2.4vw, 2rem); overflow-wrap: anywhere; }
.mod-body h3 a { text-decoration: none; }
.mod-body h3 a:hover { color: var(--accent-hover); }
.mod-body p { color: var(--muted); }
.mod-body .mod-meta { color: #e6a17d; font-size: .75rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.mod-meta span { margin-inline: .18rem; }
.mod-body .text-link { margin-top: auto; padding-top: .35rem; font-size: .875rem; }
.more-mods { display: grid; justify-content: center; }
.more-mods button { margin-top: 1.4rem; }
.empty { grid-column: 1/-1; padding: 1.15rem; border: 1px dashed var(--border); color: var(--muted); }

.projects-section { background: #151415; border-block: 1px solid var(--border); }
.project-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, auto); gap: 1rem; }
.project-feature {
  grid-row: span 2;
  display: grid;
  align-content: start;
  overflow: hidden;
  background: #201916;
  border: 1px solid #574034;
  border-radius: .3rem;
}
.project-art { background: #181611; min-height: 12rem; display: grid; place-items: center; overflow: hidden; }
.project-art img { width: min(19rem, 80%); height: auto; padding-block: .5rem; }
.project-copy { padding: 1.4rem 1.6rem 1.6rem; }
.project-copy h3 { font-size: clamp(2.4rem, 4vw, 3.65rem); margin-block: .3rem .6rem; }
.project-copy p:not(.eyebrow), .project-side p:not(.eyebrow) { color: var(--muted); }
.project-copy .actions { margin-top: 1rem; }
.project-side {
  display: grid;
  grid-template-columns: minmax(6rem, 35%) 1fr;
  gap: 1rem;
  align-items: center;
  align-content: center;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .3rem;
}
.project-thumb { width: 100%; height: auto; aspect-ratio: 1.1; object-fit: cover; border-radius: .2rem; }
.project-side h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-block: .35rem; }
.project-side .eyebrow { font-size: .75rem; }
.project-side .text-link { display: inline-block; margin-top: .55rem; font-size: .875rem; }

.notes-layout { display: grid; grid-template-columns: 2fr 1fr; align-items: start; gap: 1.2rem; }
.note { border-top: 1px solid var(--border); }
.note:last-child { border-bottom: 1px solid var(--border); }
.note summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: 1.1rem .2rem;
  font: 700 clamp(1.55rem, 3.2vw, 2.1rem)/1.1 var(--display);
  cursor: pointer;
}
.note summary::-webkit-details-marker { display: none; }
.note summary::after { content: "+"; flex-shrink: 0; color: var(--accent); }
.note[open] summary::after { content: "−"; }
.note summary:hover { color: var(--accent-hover); }
.note-copy { padding: 0 .2rem 1.2rem; color: var(--muted); max-width: 41rem; }
.note-copy p + p { margin-top: .7rem; }
.note-copy a { display: inline-block; margin-top: .7rem; }
.watch-card {
  padding: 1.55rem;
  background: linear-gradient(150deg, #332217, #1b1819 80%);
  border: 1px solid #5b3d2d;
  border-radius: .3rem;
}
.watch-card h3 { font-size: clamp(2.2rem, 4vw, 3.25rem); margin-block: .4rem .55rem; }
.watch-card p:not(.eyebrow) { color: var(--muted); margin-bottom: 1rem; }

.community-section { background: #221916; border-block: 1px solid #513a2d; }
.community-inner { display: flex; align-items: center; gap: 1.6rem; padding-block: 2.5rem; }
.community-inner img { object-fit: contain; }
.community-inner h2 { font-size: clamp(2.8rem, 4.6vw, 4.2rem); }
.community-inner p:last-child { margin-top: .35rem; color: var(--muted); }
.community-inner .actions { margin-left: auto; justify-content: flex-end; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; padding-block: 1.7rem; }

@media (max-width: 62rem) {
  .shell { width: calc(100% - 3rem); }
  .section { padding-block: 4rem; }
  .featured-inner { column-gap: 1rem; }
  .hero-image { background-size: auto, auto, cover; }
  .project-side { grid-template-columns: 1fr; align-content: start; }
  .project-thumb { height: 7rem; aspect-ratio: unset; }
}

@media (max-width: 46rem) {
  .shell { width: calc(100% - 2rem); }
  .section { padding-block: 3.4rem; }
  .header-inner { flex-wrap: wrap; min-height: 4.2rem; gap: .5rem; padding-block: .65rem; }
  .header-inner nav { width: 100%; gap: 1rem; padding: .4rem 0; }
  .header-action { display: none; }
  .hero-image {
    background:
      linear-gradient(90deg, #110f10d9 0%, #110f1050 95%),
      linear-gradient(0deg, #110f10c9, #110f1011 75%),
      url("./assets/hero.webp") 64% center / cover no-repeat;
  }
  .hero-inner { min-height: 29rem; padding-block: 3rem; }
  .hero h1 { font-size: clamp(4.5rem, 11.5vw, 6.25rem); }
  .hero-description { max-width: 24rem; font-size: 1rem; }
  .featured-inner { grid-template-columns: auto 1fr auto; column-gap: .75rem; row-gap: .15rem; }
  .featured-icon { grid-row: span 2; width: 2.5rem; }
  .featured-inner p { grid-column: 2; font-size: .875rem; }
  .featured-inner a { grid-row: 1 / span 2; grid-column: 3; }
  .featured-title strong { font-size: 1.5rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .8rem; }
  .mod-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
  .mod-controls { flex-wrap: wrap; }
  .search { flex: 1 1 10rem; }
  .feed-status { margin-left: 0; width: 100%; }
  .project-grid, .notes-layout { grid-template-columns: 1fr; }
  .project-feature { grid-row: auto; }
  .project-side { grid-template-columns: minmax(5rem, 32%) 1fr; align-items: center; }
  .project-thumb { height: auto; aspect-ratio: 1.1; }
  .community-inner { flex-wrap: wrap; gap: .85rem; }
  .community-inner img { width: 4rem; height: auto; }
  .community-inner .actions { margin-left: 0; justify-content: start; }
  .footer-inner nav { gap: .8rem 1.15rem; }
}

@media (max-width: 27rem) {
  .hero h1 { font-size: clamp(3.55rem, 15vw, 4.5rem); }
  .featured-inner { grid-template-columns: auto 1fr; }
  .featured-inner a { justify-self: start; grid-row: auto; grid-column: 2; margin-top: .3rem; }
  .mod-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.header-inner nav a[aria-current="page"],
.header-inner nav a.section-current { color: var(--accent); }
.header-inner nav .mobile-contact { display: none; }
.section-anchor { display: block; }
.section-actions { margin-top: 1.25rem; }

.software-home + .mods-section { border-top: 1px solid var(--border); }
.software-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.software-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.25rem;
  min-width: 0;
  border: 1px solid #584134;
  border-radius: .3rem;
  background: linear-gradient(155deg, #2c2019, var(--surface) 72%);
}
.software-card h3 { font-size: clamp(1.9rem, 3.3vw, 2.6rem); }
.software-card h3 a { text-decoration: none; }
.software-card h3 a:hover { color: var(--accent-hover); }
.software-card p:not(.eyebrow) { color: var(--muted); }
.software-card .text-link { margin-top: auto; font-size: .9375rem; padding-top: .45rem; }

.subhero {
  background: radial-gradient(ellipse at 75% -20%, #473027, transparent 74%), #181516;
  border-bottom: 1px solid #503b30;
}
.subhero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6.3rem);
}
.subhero.has-art .subhero-inner { grid-template-columns: 1.25fr 1fr; }
.subhero h1 {
  margin-block: .45rem .9rem;
  font-size: clamp(3.8rem, 8.2vw, 7.5rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.015em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.subhero .actions { margin-top: 1.4rem; }
.subhero figure { margin: 0; min-width: 0; }
.subhero figure img {
  width: 100%;
  max-height: 22rem;
  object-fit: contain;
  background: #161314;
  border: 1px solid #644838;
  border-radius: .3rem;
}
.subhero figcaption { color: var(--muted); font-size: .875rem; margin-top: .35rem; }

.detail-section { padding-block: 3.5rem; }
.detail-section + .detail-section { border-top: 1px solid var(--border); }
.detail-heading {
  margin-bottom: 1.3rem;
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  font-weight: 800;
  text-transform: uppercase;
}
.section-lead { max-width: 48rem; color: var(--muted); font-size: 1.075rem; }
.section-lead + .detail-grid { margin-top: 1.2rem; }
.detail-grid { display: grid; gap: 1rem; align-items: stretch; }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-card {
  display: grid;
  align-content: start;
  gap: .6rem;
  min-width: 0;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .3rem;
}
.detail-card h3 { font-size: clamp(1.75rem, 3.7vw, 2.5rem); }
.detail-card p, .detail-card li { color: var(--muted); }
.resource-card { display: flex; flex-direction: column; align-items: start; }
.resource-card img { width: 100%; aspect-ratio: 1.8; object-fit: cover; border-radius: .2rem; margin-bottom: .3rem; }
.resource-card .text-link { margin-top: auto; padding-top: .35rem; }
.video-card { background: linear-gradient(150deg, #302219, var(--surface) 66%); }
.video-card a { justify-self: start; }
.prose { max-width: 49rem; display: grid; gap: .85rem; color: var(--muted); }
.rules-grid { grid-template-columns: 2fr 1fr; align-items: start; }
.rules-list { margin: .4rem 0 0; padding-inline-start: 1.2em; }
.rules-list li + li { margin-top: .45rem; }
.table-wrap { margin-top: 1rem; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: .3rem; }
table { width: 100%; min-width: 30rem; border-collapse: collapse; background: var(--surface); }
th, td { padding: .7rem .95rem; text-align: start; }
th { background: #27201d; }
td { border-top: 1px solid var(--border); color: var(--muted); }
td a { color: var(--accent); }
.news-list { display: grid; gap: 0; }
.news-entry {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding-block: 1.2rem;
  border-block-start: 1px solid var(--border);
}
.news-entry:last-child { border-block-end: 1px solid var(--border); }
.news-entry time { color: var(--accent); font-weight: 700; font-size: .875rem; }
.news-entry h3 { font-size: 1.9rem; }
.news-entry p { margin-block: .35rem; color: var(--muted); }
.download-options { display: grid; justify-items: start; gap: .55rem; margin-top: .35rem; }
.release-card { grid-template-columns: 1fr auto; align-items: start; max-width: 53rem; gap: .7rem 1rem; }
.release-card h3 { margin-bottom: .35rem; }
.release-card :is(.checksum, .download-status, noscript) { grid-column: 1 / -1; }
.download-status:empty { display: none; }
.download-status .text-link { display: inline-block; }
.checksum { color: var(--muted); font-size: .9rem; }
.checksum summary { cursor: pointer; }
.checksum code { display: block; margin-top: .4rem; overflow-wrap: anywhere; }
.contact-card { max-width: 44rem; }
.contact-card .actions { margin-top: .35rem; }
.contact-card #email-status:empty { display: none; }

@media (max-width: 62rem) {
  .software-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 52rem) {
  .header-inner { flex-wrap: wrap; min-height: 4.2rem; gap: .5rem; padding-block: .65rem; }
  .header-inner nav { width: 100%; gap: .7rem 1rem; padding-block: .35rem; }
  .header-action { display: none; }
  .header-inner nav .mobile-contact { display: inline; }
}
@media (max-width: 46rem) {
  .detail-section { padding-block: 2.65rem; }
  .subhero.has-art .subhero-inner, .rules-grid { grid-template-columns: 1fr; }
  .subhero figure img { max-height: 18rem; }
  .three-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .release-card { grid-template-columns: 1fr; }
  .release-card .button { justify-self: start; }
  .news-entry { grid-template-columns: 1fr; gap: .35rem; }
}
@media (max-width: 32rem) {
  .software-grid, .three-up { grid-template-columns: 1fr; }
  .subhero h1 { font-size: clamp(3.25rem, 13vw, 4.6rem); }
}
