/* ============================================================
   SporeWood Games – BoB: Battle of Bots
   Stylesheet
   ------------------------------------------------------------
   1. Fonts
   2. Tokens
   3. Base
   4. Shapes & plates (chamfer system)
   5. Buttons
   6. Header / Nav
   7. Hero
   8. Games
   9. Features
   10. Team
   11. FAQ
   12. Discord band
   13. Wishlist CTA
   14. Footer
   15. Responsive
   ============================================================ */

/* ---------- 1. Fonts ---------- */
@font-face {
  font-family: 'Tektur';
  src: url('../fonts/Tektur-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Tektur';
  src: url('../fonts/Tektur-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Tektur';
  src: url('../fonts/Tektur-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Tektur';
  src: url('../fonts/Tektur-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* colour, sampled from the BoB logo and the studio background plates */
  --void: #0f0c18;
  --deck: #15111f;
  --plate: #1d1732;
  --plate-hi: #251d3f;
  --violet: #2f205a;
  --indigo: #6877ce;
  --amber: #f3cd33;
  --bone: #e9e7f5;
  --ash: #9a93b8;
  --line: rgba(104, 119, 206, 0.26);
  --line-hot: rgba(104, 119, 206, 0.7);

  /* type */
  --font: 'Tektur', 'Segoe UI', system-ui, sans-serif;

  /* the house shape: cut top-left, cut bottom-right */
  --cut: 14px;
  --chamfer: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );

  /* the bevel from the wordmark, translated into UI */
  --bevel: drop-shadow(6px 6px 0 var(--violet));
  --bevel-sm: drop-shadow(4px 4px 0 var(--violet));
  --bevel-press: drop-shadow(2px 2px 0 var(--violet));

  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- 3. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--indigo);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--amber);
  color: var(--void);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section--deck {
  background: var(--deck);
  border-block: 1px solid var(--line);
}

/* halftone screen, lifted from the studio background plates */
.section--deck::before,
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--indigo) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  opacity: 0.07;
  pointer-events: none;
}

.section > .shell {
  position: relative;
  z-index: 1;
}

/* section headers */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--indigo);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--amber);
  flex: none;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
}

.section-head p {
  max-width: 62ch;
  margin-top: 1rem;
  color: var(--ash);
}

.section-head--center {
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center p {
  margin-inline: auto;
}

/* ---------- 4. Shapes & plates ---------- */
.plate {
  position: relative;
  background: var(--line-hot);
  clip-path: var(--chamfer);
}

.plate::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--plate);
  clip-path: var(--chamfer);
}

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

/* ---------- 5. Buttons ---------- */
.btn {
  --cut: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  border: 0;
  cursor: pointer;
  clip-path: var(--chamfer);
  filter: var(--bevel-sm);
  transition: filter 0.15s ease, transform 0.15s ease, background-color 0.15s ease,
    color 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translate(2px, 2px);
  filter: var(--bevel-press);
}

.btn:active {
  transform: translate(4px, 4px);
  filter: none;
}

.btn--primary {
  background: var(--amber);
  color: #150f0a;
}

.btn--primary:hover {
  background: #ffdc4d;
}

.btn--ghost {
  background: var(--indigo);
  color: var(--bone);
  padding: 0;
}

.btn--ghost span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  height: 100%;
  padding: calc(0.95rem - 2px) calc(1.9rem - 2px);
  margin: 2px;
  background: var(--plate);
  clip-path: var(--chamfer);
  transition: background-color 0.15s ease;
}

.btn--ghost:hover span {
  background: var(--plate-hi);
}

.btn--sm {
  --cut: 9px;
  padding: 0.7rem 1.3rem;
  font-size: 0.8rem;
}

.btn--sm.btn--ghost {
  padding: 0;
}

.btn--sm.btn--ghost span {
  padding: calc(0.7rem - 2px) calc(1.3rem - 2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 12, 24, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--bone);
}

.brand img {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

.nav a {
  position: relative;
  padding-block: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-hot);
  color: var(--bone);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4rem, 8vw, 6rem);
  background-color: var(--deck);
  background-image: linear-gradient(
      180deg,
      rgba(15, 12, 24, 0.55) 0%,
      rgba(15, 12, 24, 0.82) 55%,
      var(--void) 100%
    ),
    url('../img/bg-halftone.jpg');
  background-size: cover;
  background-position: center;
}

.hero__mech {
  position: absolute;
  left: -6%;
  bottom: -8%;
  width: min(560px, 42vw);
  opacity: 0.28;
  filter: saturate(0.75) contrast(1.05);
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
}

.hero__logo {
  width: min(500px, 86%);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.hero__claim {
  max-width: 56ch;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--bone);
}

.hero__claim b {
  color: var(--amber);
  font-weight: 700;
}

.hero .btn-row {
  justify-content: center;
}

/* status strip under the hero CTAs */
.status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
}

.status li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.status li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--amber);
  transform: rotate(45deg);
}

/* ---------- video ---------- */
.player {
  --cut: 20px;
  width: min(880px, 100%);
  aspect-ratio: 16 / 9;
  margin-top: 0.5rem;
  padding: 0;
  background: var(--line-hot);
  border: 0;
  clip-path: var(--chamfer);
  filter: var(--bevel);
}

.player__frame {
  display: block;
  position: relative;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  margin: 1px;
  overflow: hidden;
  background: #000;
  clip-path: var(--chamfer);
}

.player__frame video,
.player__frame iframe,
.player__frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border: 0;
  display: block;
}







/* ---------- 8. Games ---------- */
.game {
  --cut: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0;
}

.game__art {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: radial-gradient(circle at 50% 40%, rgba(104, 119, 206, 0.18), transparent 65%),
    var(--plate-hi);
  border-right: 1px solid var(--line);
}

.game__art img {
  width: min(320px, 100%);
}

.game__body {
  padding: clamp(1.8rem, 4vw, 3rem);
}

.game__title {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.game__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  padding: 0;
  list-style: none;
}

.game__meta li {
  padding: 0.28rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  border: 1px solid var(--line);
}

.game__body > p {
  color: var(--ash);
  margin-bottom: 1.6rem;
}

.steam-widget {
  width: 100%;
  max-width: 646px;
  height: 190px;
  margin-bottom: 1.6rem;
  border: 0;
  display: block;
}

/* ---------- 9. Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature {
  --cut: 16px;
  padding: 2rem 1.75rem;
  transition: transform 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
}

.feature__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.3rem;
}

.feature h3 {
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}

.feature p {
  font-size: 0.92rem;
  color: var(--ash);
}


/* ---------- 10. Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.member {
  --cut: 14px;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 1.4rem;
  transition: transform 0.18s ease;
}

.member:hover {
  transform: translate(2px, -2px);
}

.member__tag {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--void);
  background: var(--indigo);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.member:nth-child(2n) .member__tag {
  background: var(--amber);
}

.member__name {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.member__role {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  line-height: 1.4;
}

/* ---------- 11. FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 900px;
  margin-inline: auto;
}

.faq details {
  --cut: 14px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 1.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--amber);
}

.faq summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--indigo);
  clip-path: polygon(43% 0, 57% 0, 57% 43%, 100% 43%, 100% 57%, 57% 57%, 57% 100%, 43% 100%, 43% 57%, 0 57%, 0 43%, 43% 43%);
  transition: transform 0.25s ease, background-color 0.15s ease;
}

.faq details[open] summary::after {
  clip-path: polygon(0 43%, 100% 43%, 100% 57%, 0 57%);
  transform: rotate(180deg);
  background: var(--amber);
}

.faq__answer {
  margin: 0 1.5rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-size: 0.94rem;
}

.faq__answer a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq__answer a:hover {
  color: var(--amber);
}

.faq__answer .btn {
  text-decoration: none;
  color: var(--bone);
}

.faq__answer .btn-row {
  margin-top: 1.4rem;
}

.filelist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filelist li {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  color: var(--ash);
}

/* ---------- 12. Discord band ---------- */
.band {
  position: relative;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--violet);
  border-block: 1px solid var(--line-hot);
  overflow: hidden;
}

.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.5px, transparent 0.5px);
  background-size: 5px 5px;
  opacity: 0.09;
}

.band .shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.band h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.band p {
  max-width: 46ch;
  margin-top: 0.6rem;
  color: rgba(233, 231, 245, 0.75);
  font-size: 0.95rem;
}

/* ---------- 13. Wishlist CTA ---------- */
.deploy {
  text-align: center;
  background: var(--deck);
  border-top: 1px solid var(--line);
}

.deploy .eyebrow {
  justify-content: center;
}

.deploy h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.deploy p {
  max-width: 56ch;
  margin: 1.2rem auto 2.2rem;
  color: var(--ash);
}

.deploy .btn-row {
  justify-content: center;
}

/* ---------- 14. Footer ---------- */
.site-footer {
  padding-block: 3rem 2rem;
  background: var(--void);
  border-top: 1px solid var(--line);
  text-align: center;
}

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.socials a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--ash);
  border: 1px solid var(--line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.socials a:hover {
  color: var(--void);
  background: var(--amber);
  transform: translateY(-3px);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}

.footer-meta a {
  color: var(--ash);
}

.footer-meta a:hover {
  color: var(--amber);
}

.footer-legal {
  max-width: 70ch;
  margin: 1.5rem auto 0;
  font-size: 0.72rem;
  line-height: 1.7;
  color: rgba(154, 147, 184, 0.6);
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 900px) {
  .game {
    grid-template-columns: 1fr;
  }

  .game__art {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__mech {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    background: var(--deck);
    border-bottom: 1px solid transparent;
    transition: max-height 0.25s ease, border-color 0.25s ease;
  }

  .nav[data-open='true'] {
    max-height: 320px;
    border-bottom-color: var(--line);
  }

  .nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    width: 100%;
  }

  .band .shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- 16. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal='in'] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 17. Legal pages ---------- */
.legal {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  margin-bottom: 1.4rem;
}

.legal h2 {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  margin: 2.8rem 0 0.7rem;
}

.legal h3 {
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  color: var(--indigo);
  margin: 1.9rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--ash);
}

.legal .lede {
  color: var(--bone);
}

.legal ul {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.legal li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
}

.legal li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  background: var(--indigo);
  transform: rotate(45deg);
}

.legal a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal a:hover {
  color: var(--amber);
}

.legal strong {
  color: var(--bone);
  font-weight: 700;
}

.legal .btn {
  text-decoration: none;
  color: var(--bone);
}

.legal__lang {
  display: flex;
  gap: 0.6rem;
  margin: 0 0 2.5rem;
}

.legal__rule {
  height: 1px;
  margin: 4.5rem 0 3.5rem;
  background: var(--line);
  border: 0;
}

.legal__stand {
  margin-top: 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(154, 147, 184, 0.7);
}

.legal__contact {
  --cut: 14px;
  margin-top: 3rem;
  padding: 1.4rem 1.6rem;
}

.legal__contact p {
  margin: 0;
  font-size: 0.9rem;
}

/* bilingual label separator in the footer */
.footer-meta i {
  font-style: normal;
  margin: 0 0.15rem;
  color: rgba(154, 147, 184, 0.45);
}
