/* Theme tokens: centralize colors, typography, and content width for site-wide tuning. */
:root {
  --bg: #11100d;
  --bg-soft: #171512;
  --surface: #1d1a17;
  --surface-2: #27231f;
  --ink: #f3ebdf;
  --muted: #b9a890;
  --line: rgba(255, 255, 255, 0.08);
  --green: #6f7f5f;
  --moss: #a4b28d;
  --rose: #ba7c5d;
  --clay: #d39a7c;
  --shadow: rgba(0, 0, 0, 0.28);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --max: 74rem;
  color-scheme: dark;
}

/* Base layout: normalize sizing, keep the footer below short pages, and share the content container. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at top, rgba(180, 124, 93, 0.10), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #171512 100%);
  color: var(--ink);
  font: 1rem/1.7 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 0.2em; }
a:hover { color: var(--moss); }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
main { flex: 1; }
.page { padding-block: 3rem 5rem; }

/* Type scale and reusable text treatments used across all pages. */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.55rem, 2vw, 2rem); }
p { max-width: 62ch; margin: 0 0 1em; }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.08rem, 1.8vw, 1.45rem); color: var(--ink); max-width: 44ch; }
.kicker {
  color: var(--moss);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

/* Primary and secondary actions share one shape; .actions lays out groups of buttons. */
.button {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--moss);
  color: #1a1c15;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  padding: 0.9rem 1.3rem;
  border-radius: 0.75rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.button:hover {
  color: #1a1c15;
  transform: translateY(-1px);
  background: #bfd4a8;
}
.button:active { transform: translateY(0); }
.button:disabled { opacity: 0.6; cursor: wait; }
.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.button-ghost:hover { color: var(--ink); background: rgba(255,255,255,0.02); }
.button-small {
  font-size: 0.68rem;
  padding: 0.62rem 0.95rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; margin-top: 1.75rem; }

.hero-inner .actions {
  width: fit-content;
  max-width: none;
  margin-inline: auto;
  justify-content: center;
}

/* Sticky site navigation; JavaScript toggles .open for the collapsed mobile menu. */
#site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(17, 16, 13, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 0.5rem;
}
#main-nav { display: flex; align-items: center; gap: 1.25rem; }
#main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
}
#main-nav ul a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  padding-bottom: 0.2rem;
}
#main-nav ul a:hover { color: var(--ink); }
#main-nav ul a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--moss);
}
.menu-toggle {
  display: none;
  font: 700 0.72rem var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}
/* Reveal the menu button and let JavaScript expand the navigation on small screens. */
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; }
  .menu-toggle { display: block; }
  #main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.75rem;
  }
  #main-nav.open { display: flex; }
  #main-nav ul { flex-direction: column; gap: 0.75rem; }
}

/* Hero treatments share the artwork overlay; the home hero centers its logo, copy, and actions. */
.hero, .game-hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(17, 16, 13, 0.92) 0%, rgba(17, 16, 13, 0.72) 40%, rgba(17, 16, 13, 0.32) 100%),
    var(--hero) center / cover no-repeat,
    linear-gradient(135deg, rgba(25, 23, 22, 0.96), rgba(17, 16, 13, 0.92));
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  padding-block: clamp(4rem, 12vw, 7.5rem);
  text-align: left;
}
.hero h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
  line-height: 0.88;
}
.hero .lede {
  margin: 0;
  max-width: 38rem;
  color: rgba(243, 235, 223, 0.82);
}
.hero-logo {
  width: clamp(52px, 7vw, 90px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 0 1.5rem;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  padding: 0.45rem;
}
.hero-inner .actions { justify-content: flex-start; }
.game-hero .wrap { padding-block: clamp(3.5rem, 10vw, 6rem); }

/* The mission statement is a prominent full-width text band below the home hero. */
.mission {
  padding-block: 4rem 4.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.mission p {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin: 0;
}

/* Home-page featured game pairs large key art with its summary and store/detail links. */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding-block: 5rem;
}
.featured-art {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}
.featured-art img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.featured h2 { margin-bottom: 0.7rem; }
.featured p { color: var(--muted); }
/* Stack the featured game's art and text when a two-column layout becomes too narrow. */
@media (max-width: 820px) {
  .featured, .about { grid-template-columns: 1fr; }
  .hero-inner { text-align: left; }
  .hero .lede { max-width: 30rem; }
}

/* Reusable game cards power both the home-page collection and the full games listing. */
.games-section { padding-block: 1rem 5rem; }
.games-section .section-heading,
.news-preview .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.games-section h2,
.news-preview h2 {
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.card {
  background: rgba(27, 24, 21, 0.9);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(164, 178, 141, 0.7);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}
.card-link {
  color: var(--ink);
  text-decoration: none;
  display: block;
  padding-bottom: 0.25rem;
  flex: 1;
}
.card-link:hover { color: var(--ink); }
.card-link:hover h3 { color: var(--moss); }
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.card .genre {
  display: block;
  color: var(--moss);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 1rem 1.25rem 0.45rem;
}
.card h3 { margin: 0 1.25rem 0.6rem; }
.card p {
  margin: 0 1.25rem;
  color: var(--muted);
}
.card-steam {
  display: inline-block;
  margin: 0.95rem 1.25rem 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

/* Studio overview content on the home page. */
.about {
  padding-block: 4rem 5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.about h2 {
  margin: 0 0 0.5rem;
}
.about p {
  color: var(--muted);
  margin: 0 0 1rem;
}
.about > *:nth-child(n + 2) { align-self: center; }
.about a { font-weight: 700; }

/* Optional community band appears when a Discord URL is configured in content.js. */
.community {
  background: rgba(25, 23, 22, 0.78);
  border-block: 1px solid var(--line);
}
.community-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: 3.25rem;
}
.community p { margin: 0; color: var(--muted); }
.community h2 { margin: 0 0 0.5rem; }

/* Final centered call to action on the home page. */
.closer { padding-block: 5rem; text-align: center; }
.closer h2 { max-width: 18ch; margin-inline: auto; }
.closer .actions { justify-content: center; max-width: none; }

/* Home-page news preview and the full news archive use these shared feature/list card styles. */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading a, .latest-post > a:last-child { color: var(--green); font-weight: 700; }
.news-preview { padding-block: 1rem 4.5rem; }
.latest-post, .news-feature, .news-item, .position, .empty-state {
  background: rgba(20, 33, 25, 0.78);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
}
.latest-post h3 { margin-bottom: 0.7rem; }
.latest-post h3 a, .news-feature h2 a, .news-item h3 a { text-decoration: none; }
.post-meta {
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-meta time { color: var(--muted); letter-spacing: normal; }
.news-feature { margin-top: 2rem; padding-block: clamp(2rem, 6vw, 4rem); }
.news-feature h2 { max-width: 24ch; }
.news-archive { margin-top: 4rem; }
.news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.news-item h3 { line-height: 1.1; }
.news-item > a:last-child { color: var(--green); font-weight: 700; }

/* Career listings display role metadata, responsibilities, requirements, and their application action. */
.position-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.position h2 { margin-bottom: 0.65rem; }
.position-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin: 2rem 0; }
.position-details h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.position-details ul { color: var(--muted); padding-left: 1.25rem; }
.position-details li + li { margin-top: 0.5rem; }
.empty-state { margin-top: 2rem; }
.empty-state h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* Individual game pages show linked screenshots in a responsive gallery and posts as a devlog list. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-bottom: 3.5rem;
}
.shots a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}
.shots a:hover { border-color: var(--green); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-video { margin-bottom: 3.5rem; }
.game-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--bg-soft);
}
.game-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.game-video-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #173f25;
}
.game-video-fallback:hover { color: #fff; }
.game-video-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 70%);
}
.game-video-fallback .video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.game-video-fallback span {
  position: absolute;
  z-index: 1;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.game-video > a { display: inline-block; margin-top: 0.75rem; }
.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.posts li { border-left: 3px solid var(--green); padding-left: 1rem; }
.posts a { font-weight: 700; font-size: 1.1rem; }
.posts time { display: block; color: var(--muted); font-size: 0.9rem; }
.posts p { margin: 0.25rem 0 0; }

/* Long-form news and devlog article layout. */
.wrap.post { max-width: 46rem; margin-inline: auto; }
.post > .post-meta { margin-top: 1.5rem; }
.post > time { display: block; color: var(--muted); margin-bottom: 2rem; }
.post-body p { text-align: justify; }
.post-body img { margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 1rem; }

/* Team cards use portrait crops with compact name and role details. */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 260px));
  gap: 1.25rem;
  margin-top: 1.5rem;
  justify-content: space-between;
}
.member {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 0;
  background: var(--surface);
  border-radius: 0;
  margin-bottom: 0;
}
.member h2 { font-size: 1.1rem; margin: 1rem 1rem 0.15em; }
.member .role { color: var(--moss); font-weight: 700; margin: 0 1rem 1rem; }
.member a { font-weight: 700; }

/* Contact and application form fields, including visible validation/status feedback. */
.form { display: grid; gap: 1.2rem; max-width: 36rem; margin-top: 2rem; }
.form label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: rgba(255,255,255,0.02);
  border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.7rem 0.8rem;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); }
.form textarea { min-height: 10rem; resize: vertical; }
.form input[type="radio"],
.form input[type="checkbox"] { width: auto; accent-color: var(--green); }
.form input[type="file"] { padding: 0.55rem; }
.application-form {
  display: grid;
  gap: 0;
  max-width: 56rem;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 16px 42px var(--shadow);
}
.page:has(> #application-title) {
  text-align: center;
}
.page:has(> #application-title) > .lede {
  margin-inline: auto;
}
.page:has(> #application-title) > .kicker {
  margin-inline: auto;
}
#application-title { font-size: clamp(2.75rem, 5vw, 4.25rem); }
.application-section {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.application-section > h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.035em;
}
.application-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
}
.application-fields > div,
.application-section > div:not(.application-acknowledgement) { min-width: 0; }
.application-section > label { margin: 0; }
.application-section textarea { min-height: 8rem; }
.choice-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
}
.choice-field legend { padding-inline: 0.35rem; font-weight: 700; }
.choice-field label,
.application-acknowledgement label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 500;
}
.application-acknowledgement {
  padding: 1.25rem;
  border-left: 4px solid var(--green);
  background: var(--bg-soft);
}
.application-acknowledgement h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.application-acknowledgement p { color: var(--muted); margin-bottom: 1rem; }
.application-form > div > label .muted { font-size: 0.85rem; font-weight: 400; }
.conditional-field { display: grid; gap: 0.35rem; margin-top: 1rem; }
.field-hint { color: var(--muted); font-size: 0.88rem; margin: 0; }
.application-submit { padding: 1.5rem clamp(1.25rem, 3.5vw, 2.25rem) 0; }
.application-form > #form-status { margin: 0; padding: 0 clamp(1.25rem, 3.5vw, 2.25rem) 1.5rem; }
.hp { position: absolute; left: -9999px; }
.status { min-height: 1.6em; font-weight: 700; margin: 0; }
.status.ok { color: var(--moss); }
.status.err { color: var(--rose); }

/* Shared footer grid, social links, and copyright row. */
#site-footer {
  background: rgba(16, 15, 13, 0.96);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.97rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}
.footer-grid h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--moss); }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .brand:hover { color: var(--ink); }
.social {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem !important;
  margin-top: 1rem !important;
}
.legal { border-top: 1px solid var(--line); }
.legal p { margin: 0; padding-block: 1.25rem; font-size: 0.9rem; }

/* At tablet/mobile widths, navigation becomes collapsible and grids stack for narrow screens. */
@media (max-width: 680px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 620px) {
  .section-heading { align-items: flex-start; flex-direction: column; }
  .position-details { grid-template-columns: 1fr; gap: 0.75rem; }
  .application-fields { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .position-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .position-header { width: 100%; }
  .position-disclosure { width: 100%; }
  .position-disclosure summary { align-items: flex-start; }
}

/* Respect OS accessibility preferences by disabling smooth scrolling and button transitions. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }

/* Publisher-inspired visual refresh shared by every page. */
:root {
  --bg: #fff;
  --bg-soft: #f2f7ef;
  --surface: #fff;
  --surface-2: #e8f1e4;
  --ink: #1b2c20;
  --muted: #647368;
  --line: rgba(28, 67, 37, 0.13);
  --green: #287a36;
  --moss: #48a83f;
  --rose: #287a36;
  --clay: #48a83f;
  --shadow: rgba(24, 67, 34, 0.15);
  --display: "Manrope", "Segoe UI", sans-serif;
  color-scheme: light;
}

body {
  background: #fff;
  color: var(--ink);
}
a { color: var(--ink); }
a:hover { color: var(--green); }
:focus-visible { outline-color: var(--rose); }
.wrap { max-width: 80rem; }
.wrap.team-page { width: 92%; max-width: 76rem; }
.page { padding-block: clamp(3.5rem, 7vw, 6rem); }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}
h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.25rem, 4.8vw, 4rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.wrap.post > h1 { font-size: clamp(2.75rem, 5vw, 4rem); }
.post-body h2 { font-size: clamp(2rem, 3.8vw, 2.75rem); }
.post-body h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.lede { color: var(--muted); }
.kicker { color: var(--rose); letter-spacing: 0.13em; }

.button {
  background: #287a36;
  border: 0;
  border-radius: 0.2rem;
  box-shadow: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.95rem 1.5rem;
}
.button:hover { background: #1d652b; color: #fff; }
.button-ghost {
  background: transparent;
  border: 1px solid currentColor;
  color: var(--ink);
}
.button-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

#site-header {
  background: #185b2b;
  border: 0;
  color: #fff;
}
.header-row { min-height: 5rem; padding-block: 0.65rem; }
.brand, .brand:hover { color: #fff; }
.brand {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.055em;
}
.brand img { border-radius: 0; }
#main-nav { gap: clamp(0.75rem, 2vw, 1.75rem); }
#main-nav ul { gap: clamp(0.7rem, 1.8vw, 1.5rem); }
#main-nav ul a {
  color: rgba(255,255,255,0.86);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.045em;
}
#main-nav ul a:hover,
#main-nav ul a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--rose);
}
#main-nav .button-small {
  background: var(--rose);
  color: #fff;
}
.menu-toggle {
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  border-radius: 0.2rem;
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 12% 20%, rgba(255,255,255,0.17), transparent 32%),
    radial-gradient(ellipse at 88% 84%, rgba(108,202,76,0.3), transparent 34%),
    linear-gradient(135deg, #27853a, #14532b 78%);
  border: 0;
  color: #fff;
}
.game-hero {
  background:
    linear-gradient(90deg, rgba(18, 54, 29, 0.9), rgba(25, 77, 39, 0.62) 62%, rgba(28, 85, 42, 0.34)),
    var(--hero) center / cover no-repeat,
    linear-gradient(135deg, #27853a, #14532b);
  color: #fff;
}
.game-hero h1 { color: #fff; }
.game-hero .kicker { color: #d5f0bc; }
.game-hero .lede { color: rgba(255,255,255,0.88); }
.hero-inner {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(3.5rem, 6vw, 5rem);
  text-align: center;
}
.hero .kicker { color: #d5f0bc; }
.hero h1 {
  max-width: 15ch;
  margin-inline: auto;
  font-size: clamp(2.8rem, 6.4vw, 5.7rem);
  line-height: 0.98;
}
.hero .lede {
  max-width: 48rem;
  margin: 0 auto;
  color: rgba(255,255,255,0.86);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.hero-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2.7vw, 2rem);
  align-items: center;
  max-width: 67rem;
  margin: clamp(2rem, 4vw, 3.25rem) auto 0;
}
.hero-game {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 0.84;
  border: 5px solid rgba(246, 255, 240, 0.45);
  border-radius: 1.3rem;
  background: #1f6231;
  box-shadow: 0 18px 48px rgba(13, 45, 22, 0.3);
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease;
}
.hero-game:nth-child(2) { transform: translateY(-0.8rem); }
.hero-game:hover {
  border-color: var(--rose);
  color: #fff;
  transform: translateY(-0.65rem);
}
.hero-game:nth-child(2):hover { transform: translateY(-1.45rem); }
.hero-game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}
.hero-game:hover img { transform: scale(1.045); }
.hero-game::after {
  position: absolute;
  inset: 28% 0 0;
  background: linear-gradient(transparent, rgba(12, 35, 19, 0.88));
  content: "";
}
.hero-game-copy {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1.05rem;
  left: 1rem;
  display: grid;
  gap: 0.3rem;
}
.hero-game-copy > span {
  color: #d5f0bc;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-game-copy strong {
  font-size: clamp(1rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.05;
}
.hero .actions { justify-content: center; margin-top: 1.9rem; }
.hero .button-ghost {
  border-color: rgba(255,255,255,0.65);
  color: #fff;
}
.hero .button-ghost:hover { color: #fff; }

.mission {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-color: var(--line);
  text-align: center;
}
.mission p {
  max-width: 24ch;
  margin-inline: auto;
  font-weight: 800;
  line-height: 1.05;
}
.featured {
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.featured-art {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 18px 44px var(--shadow);
}
.featured-art img { aspect-ratio: 16 / 10; }
.featured p { color: var(--muted); }
.featured .kicker { color: var(--rose); }
.featured h2 { color: var(--ink); }
.games-section { padding-block: 2rem 5rem; }
.cards { gap: 1.5rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  box-shadow: 0 10px 30px rgba(24, 67, 34, 0.07);
}
.card:hover {
  border-color: rgba(40, 122, 54, 0.42);
  box-shadow: 0 18px 36px var(--shadow);
  transform: translateY(-5px);
}
.card img {
  aspect-ratio: 1.25;
  border: 0;
}
.card .genre { color: var(--green); }
.card h3 { color: var(--ink); }
.card p { color: var(--muted); }
.card-steam { color: var(--green); }

.position-list { gap: 1rem; }
.position {
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.position h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}
.position-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.position-disclosure { flex: 1; min-width: 0; }
.position-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
}
.position-disclosure summary::-webkit-details-marker { display: none; }
.position-disclosure summary > span:first-child { min-width: 0; }
.position-title {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.position-location {
  display: table;
  margin: 0.65rem 0 0;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.position-disclosure summary .button,
.position-apply { white-space: nowrap; }
.position-disclosure summary:hover .button.button-ghost {
  background: #1d652b;
  color: #fff;
}
.position-disclosure[open] summary .button::after { content: " −"; }
.position-disclosure:not([open]) summary .button::after { content: " +"; }
.position-expanded {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.position-expanded > p { color: var(--muted); }
.position-expanded .position-commitment {
  color: var(--ink);
  font-size: 0.95rem;
}
.position-details { margin-block: 1.5rem 0; }

.about {
  border-color: var(--line);
  background: var(--bg-soft);
  padding: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
  border-radius: 1rem;
}
.about p { color: var(--muted); }
.about a { color: var(--green); }
.community {
  background: #eff6eb;
  border-block: 1px solid var(--line);
}
.community h2 { color: var(--ink); }
.community p { color: var(--muted); }
.closer { padding-block: clamp(4rem, 8vw, 7rem); }
.news-preview { padding-block: 2rem 5rem; }
.section-heading a, .latest-post > a:last-child { color: var(--green); }
.latest-post, .news-feature, .news-item, .position, .empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  box-shadow: 0 10px 30px rgba(24, 67, 34, 0.06);
}
.post-meta, .position-details ul { color: var(--muted); }
.post-meta { font-weight: 800; }
.post-meta time { color: var(--muted); }
.news-item > a:last-child { color: var(--green); }
.shots a { border: 0; border-radius: 0.8rem; }
.shots a:hover { box-shadow: 0 12px 30px var(--shadow); }
.posts li { border-color: var(--rose); }
.posts time, .post > time { color: var(--muted); }
.member img { border: 0; border-radius: 0; background: var(--bg-soft); }
.member .role { color: var(--green); }
.form input, .form select, .form textarea {
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(28, 67, 37, 0.2);
  border-radius: 0.35rem;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); }
.status.ok { color: var(--green); }
.status.err { color: #b7382e; }

#site-footer {
  background: #173b22;
  border: 0;
  color: rgba(255,255,255,0.7);
}
.footer-grid h2 { color: #fff; }
.footer-grid a { color: rgba(255,255,255,0.72); }
.footer-grid a:hover { color: #b9e6a1; }
.footer-grid .brand { color: #fff; }
.legal { border-color: rgba(255,255,255,0.16); }

@media (max-width: 760px) {
  #main-nav {
    background: #185b2b;
    border-top: 1px solid rgba(255,255,255,0.18);
  }
  #main-nav ul a[aria-current="page"] { box-shadow: none; color: #fff; }
  .hero-inner { padding-block: 3rem 4rem; }
  .hero-games { gap: 0.65rem; }
  .hero-game { border-width: 3px; border-radius: 0.8rem; }
  .hero-game:nth-child(2) { transform: translateY(-0.4rem); }
  .hero-game-copy { right: 0.55rem; bottom: 0.65rem; left: 0.55rem; }
  .hero-game-copy > span { font-size: 0.54rem; letter-spacing: 0.06em; }
  .hero-game-copy strong { font-size: clamp(0.78rem, 2.6vw, 1.1rem); }
  .about { margin-inline: 0; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .hero-games { gap: 0.45rem; }
  .hero-game { border-width: 2px; border-radius: 0.55rem; }
  .hero-game-copy { right: 0.35rem; bottom: 0.4rem; left: 0.35rem; }
  .hero-game-copy > span { display: none; }
  .hero-game-copy strong { font-size: 0.73rem; }
  .hero .actions { gap: 0.65rem; }
  .hero .button { padding: 0.8rem 0.95rem; font-size: 0.68rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-game, .hero-game img, .card { transition: none; }
}
