/* ==========================================================================
   Wild Man Games — site styles
   Sections:  1. Tokens  2. Reset/base  3. Layout  4. Header  5. Hero
              6. Oony machine  7. Haggle  8. Team  9. Values  10. Footer
              11. Responsive (≤900px tablet, ≤600px phone)
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --bg:      #E0D3BE;
  --ink:     #141210;
  --red:     #C82A1E;
  --red-dim: #7a1009;
  --dark:    #211C18;
  --card:    #ECE3D2;
  --muted:   #5a5145;
  --muted-2: #8a7d68;
  --line:    #b3a48a;

  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-disp: 'Bowlby One SC', var(--font-body);

  --maxw: 1440px;
  --gutter: 72px;          /* page side padding (desktop) */
  --header-h: 140px;
  --header-h-compact: 108px;
  --logo-h: 92px;
  --logo-h-compact: 71px;
}

/* 2. RESET / BASE ---------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
.disp { font-family: var(--font-disp); font-weight: 400; }
::selection { background: var(--red); color: #fff; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: 88px; }

/* 4. HEADER ---------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  transition: box-shadow .2s ease;
}
.header.is-stuck { box-shadow: 0 6px 22px rgba(20,18,16,.22); }
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: 56px;
  border-bottom: 2px solid var(--ink);
  transition: height .2s ease;
}
.header.is-stuck .header__bar { height: var(--header-h-compact); }
.header__logo { height: var(--logo-h); transition: height .2s ease; }
.header.is-stuck .header__logo { height: var(--logo-h-compact); }

.social { display: flex; align-items: center; gap: 18px; }
.social a { display: flex; padding: 6px; transition: color .15s; }
.social a:hover { color: var(--red); }

/* 5. HERO ------------------------------------------------------------------ */
.hero { position: relative; padding-block: 84px 96px; overflow: hidden; }
.hero__mascot {
  position: absolute;
  right: max(30px, calc(50% - 720px));
  bottom: 0;
  height: 540px;
  opacity: .92;
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 900px; }
.eyebrow {
  display: inline-block;
  font-size: 15px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 6px 12px; border-radius: 999px;
}
.hero h1 {
  margin: 24px 0 0;
  font-size: clamp(44px, 8vw, 80px);
  line-height: .96;
  letter-spacing: -.01em;
}
.hero h1 .bigword { color: var(--red); white-space: nowrap; }
.hero__lead {
  margin: 28px 0 0;
  max-width: 620px;
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.55;
  color: #39322a;
}
.btn {
  display: inline-block;
  background: var(--ink); color: var(--bg);
  font-weight: 700; font-size: 18px;
  padding: 17px 30px; border-radius: 6px;
  transition: background .15s;
}
.btn:hover { background: var(--red); }
.hero__cta { display: flex; gap: 14px; margin-top: 30px; }

/* fragment words the user drags */
.drg {
  cursor: grab;
  border-bottom: 2px dotted var(--red);
  padding: 0 1px; border-radius: 3px;
  touch-action: none;
  transition: background .12s;
}
.drg:hover { background: rgba(200,42,30,.14); }
.drg:active { cursor: grabbing; }

/* 6. OONY MACHINE ---------------------------------------------------------- */
.machine {
  margin: 24px 0 0;
  max-width: 640px;
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.machine__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.machine__label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2);
}
.machine__reset {
  font-family: var(--font-body);
  cursor: pointer;
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: none;
  border: 2px solid var(--line);
  color: var(--muted-2);
  padding: 5px 11px; border-radius: 999px;
}
.machine__zone {
  margin-top: 10px; min-height: 42px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.machine__hint { font-size: 14px; color: #a99c84; font-style: italic; }

.oony-chip {
  touch-action: none; user-select: none;
  font-family: var(--font-body);
  cursor: grab;
  font-size: 14px; font-weight: 700;
  background: var(--red); color: #fff;
  padding: 7px 11px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
}
.oony-chip__x { opacity: .6; font-size: 16px; line-height: 1; cursor: pointer; }
.oony-ghost {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  color: var(--red);
  background: rgba(200,42,30,.10);
  border: 2px dashed var(--red);
  padding: 5px 9px; border-radius: 999px;
  display: inline-flex; align-items: center; opacity: .8;
}
.oony-avatar {
  position: fixed; left: 0; top: 0; z-index: 99999;
  pointer-events: none;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  background: var(--red); color: #fff;
  padding: 7px 11px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,.32);
  transform: translate(-50%,-55%) rotate(-4deg) scale(1.06);
}

/* 7. HAGGLE ---------------------------------------------------------------- */
.haggle { background: var(--dark); color: #E8DFCF; scroll-margin-top: 100px; }
.haggle__logo-card {
  background: var(--bg); border-radius: 14px;
  padding: 28px 24px;
  display: flex; justify-content: center; align-items: center;
}
.haggle__logo { width: 100%; max-width: 680px; height: auto; }
.haggle__shot {
  width: 100%; height: 520px; object-fit: cover;
  border-radius: 10px; margin: 24px 0 36px;
}
.haggle__body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.haggle__copy { font-size: 19px; line-height: 1.6; color: #cdc3b1; }
.haggle__copy p { margin: 0 0 16px; }
.haggle__copy p:last-child { margin: 0; }
.tagcard {
  border: 2px solid var(--red); border-radius: 10px; padding: 22px;
}
.tagcard__title { font-size: 24px; line-height: 1.05; color: var(--bg); }
.tagcard p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: #b8ad9b; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  padding: 8px 13px; border-radius: 999px;
}
.chip--solid { background: var(--bg); color: var(--dark); }
.chip--outline { border: 2px solid var(--bg); color: var(--bg); padding: 6px 13px; }

/* 8. TEAM ------------------------------------------------------------------ */
.team h2 { margin: 0 0 6px; font-size: clamp(38px, 6vw, 56px); }
.team__lead { margin: 0 0 36px; font-size: 19px; color: var(--muted); max-width: 620px; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 26px;
}
.member__photo {
  width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--ink);
}
.member__name { margin-top: 18px; font-size: 30px; }
.member__role {
  margin-top: 4px; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--red);
}
.member__link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px; font-size: 14px; font-weight: 600;
  transition: color .15s;
}
.member__link:hover { color: var(--red); }

/* 9. VALUES ---------------------------------------------------------------- */
.values { padding-block: 8px 96px; }
.values h2 { margin: 0 0 30px; font-size: clamp(38px, 6vw, 56px); }
.values__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
.value { border-top: 3px solid var(--ink); padding-top: 18px; }
.value__title { font-size: 26px; }
.value__title .num { color: var(--red); }
.value p { margin: 10px 0 0; font-size: 18px; line-height: 1.55; color: var(--muted); }

/* 10. FOOTER --------------------------------------------------------------- */
.footer { background: var(--dark); color: var(--bg); padding-block: 54px; }
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 30px;
}
.footer__about { max-width: 420px; }
.footer__logo { height: 54px; }
.footer__about p { margin: 20px 0 0; font-size: 16px; line-height: 1.55; color: #b8ad9b; }
.footer__social { display: flex; gap: 18px; }
.footer__social a { display: flex; transition: color .15s; }
.footer__social a:hover { color: var(--red); }
.footer__legal {
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid #3a342c;
  font-size: 13px; color: #8a8071;
}

/* 11. RESPONSIVE ----------------------------------------------------------- */

/* Tablet ---------------------------------------------------- */
@media (max-width: 900px) {
  :root { --gutter: 40px; }
  .header__bar { padding-inline: 40px; }
  .section { padding-block: 64px; }

  .hero { padding-block: 56px 72px; }
  .hero__mascot { height: 360px; opacity: .5; right: -40px; }
  .hero__inner { max-width: 100%; }

  .haggle__shot { height: 380px; }
  .haggle__body { grid-template-columns: 1fr; gap: 28px; }

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

/* Phone ----------------------------------------------------- */
@media (max-width: 600px) {
  :root { --gutter: 20px; --header-h: 96px; --header-h-compact: 80px; --logo-h: 60px; --logo-h-compact: 50px; }
  .header__bar { padding-inline: 20px; }

  /* social icons hide on the smallest screens so the logo can breathe */
  .header .social { display: none; }

  .section { padding-block: 52px; }

  .hero { padding-block: 36px 56px; }
  .hero__mascot { display: none; }
  .hero h1 { margin-top: 18px; }
  .hero__cta { margin-top: 24px; }
  .btn { width: 100%; text-align: center; }

  .machine { max-width: 100%; }

  .haggle__shot { height: 240px; }
  .haggle__logo-card { padding: 20px 16px; }

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

  .values__grid { grid-template-columns: 1fr; gap: 24px; }

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