/* Palette sampled from sideslawlogo.png */
:root {
  --plum: #7a2a6e;          /* "SIDE SLAW" wordmark, bowl rim */
  --plum-dark: #5a1d51;
  --plum-deep: #3b1336;     /* dark sections, footer */
  --plum-light: #b78bc0;    /* light purple cubes */
  --green: #8cc152;         /* "INTERACTIVE", green cubes */
  --green-dark: #5b8c26;    /* green readable as text on white */
  --lime: #e6e97c;          /* yellow-green cubes */
  --orange: #f26b2a;        /* orange cubes */
  --orange-dark: #cf5114;
  --cream: #f4f6e1;         /* bowl */
  --cream-shade: #e6e3ca;   /* bowl shading */
  --paper: #ffffff;         /* logo background */
  --ink: #2c1a2a;
  --ink-soft: #5b4a58;
  --muted: #84768a;
  --line: #ebe7d6;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(59, 19, 54, .06), 0 10px 28px rgba(59, 19, 54, .10);
  --display: "Lato", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--plum); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; color: var(--plum); }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.005em; }
h3 { font-size: 1.25rem; font-weight: 900; color: var(--ink); }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Eyebrow: tracked uppercase, echoing "INTERACTIVE" in the logo */
.eyebrow {
  font: 700 .8rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  font: 700 1rem/1 var(--body);
  padding: 15px 26px;
  border-radius: 12px;
  background: var(--plum);
  color: #fff;
  text-decoration: none;
  border: 2px solid var(--plum);
  cursor: pointer;
  box-shadow: 0 4px 0 var(--plum-deep);
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn:hover { background: var(--plum-dark); border-color: var(--plum-dark); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--plum-deep); }
.btn-ghost { background: var(--paper); color: var(--plum); box-shadow: 0 4px 0 var(--cream-shade); }
.btn-ghost:hover { background: var(--cream); color: var(--plum); border-color: var(--plum); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--cream-shade); }
.btn-orange { background: var(--orange); border-color: var(--orange); box-shadow: 0 4px 0 #a23e0c; }
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-small { padding: 10px 18px; font-size: .95rem; box-shadow: 0 3px 0 var(--plum-deep); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.wordmark { display: flex; flex-direction: column; font-family: var(--display); text-transform: uppercase; line-height: 1; }
.wm-top { font-weight: 900; font-size: 1.2rem; color: var(--plum); letter-spacing: .01em; }
.wm-bottom { font-weight: 400; font-size: .66rem; color: var(--green-dark); letter-spacing: .26em; margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:not(.btn):hover { color: var(--plum); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--plum); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 55%, var(--cream) 100%);
  padding: clamp(40px, 7vw, 90px) 0 clamp(56px, 8vw, 100px);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hl { color: var(--green-dark); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-logo { width: min(460px, 100%); height: auto; }

/* Isometric cubes, matching the ones spilling out of the logo's bowl */
.cube { position: absolute; width: 34px; height: 34px; animation: bob 6s ease-in-out infinite; }
.cube-1 { top: 4%;  left: 2%;   color: var(--green);  width: 40px; height: 40px; }
.cube-2 { top: 28%; right: 0;   color: var(--orange); animation-delay: -1.5s; }
.cube-3 { bottom: 14%; left: -2%; color: var(--plum-light); animation-delay: -3s; width: 28px; height: 28px; }
.cube-4 { bottom: 4%; right: 8%; color: var(--lime); animation-delay: -4.5s; width: 30px; height: 30px; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .cube { animation: none; } }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .hero-art { order: -1; }
  .hero-logo { width: min(300px, 80%); }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--plum-deep); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--green); }
.section-dark p { color: #e6d8e3; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--ink-soft); margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--cream);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--green-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(3n+2) .card-icon svg { stroke: var(--orange-dark); }
.card:nth-child(3n) .card-icon svg { stroke: var(--plum); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { position: relative; }
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--plum); color: #fff; font: 900 1.25rem/1 var(--display); margin-bottom: 18px;
  transform: rotate(-4deg);
}
.steps li:nth-child(2) .step-num { transform: rotate(3deg); }
.steps li:nth-child(4) .step-num { transform: rotate(5deg); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 24px; left: 62px; right: -12px;
  border-top: 2px dashed var(--cream-shade);
}
.steps p { color: var(--ink-soft); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
  .steps li::after { display: none; }
  .step-num { margin: 0; }
}

/* Steps on dark background: one cube color per step */
.steps-dark { margin-top: 56px; }
.steps-dark li:nth-child(1) .step-num { background: var(--green); color: var(--plum-deep); }
.steps-dark li:nth-child(2) .step-num { background: var(--lime); color: var(--plum-deep); }
.steps-dark li:nth-child(3) .step-num { background: var(--plum-light); color: var(--plum-deep); }
.steps-dark li:nth-child(4) .step-num { background: var(--orange); color: #fff; }
.steps-dark li:not(:last-child)::after { border-top-color: rgba(255, 255, 255, .22); }
.steps-dark h3 { color: #fff; }
.steps-dark p { color: #e6d8e3; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 32px; }
summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font: 700 1.12rem/1.35 var(--display); color: var(--ink);
}
summary:hover { color: var(--plum); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: 400 1.6rem/1 var(--body); color: var(--orange); transition: transform .2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--ink-soft); padding-right: 40px; }

/* Games */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: 600 .9rem/1 var(--body); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer;
}
.filter:hover { border-color: var(--plum); color: var(--plum); }
.filter.is-active { background: var(--plum); border-color: var(--plum); color: #fff; }

.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.games-empty { margin-top: 8px; }
.subhead { margin-top: 72px; margin-bottom: 32px; }
.game {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.game[hidden] { display: none; }
.game:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-media { position: relative; }
.game-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.game-cover-tile {
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .28) 0%, transparent 50%),
    linear-gradient(315deg, rgba(0, 0, 0, .14) 0%, transparent 45%),
    var(--tile);
}
.game-cover-tile span { font: 900 3.6rem/1 var(--display); color: rgba(255, 255, 255, .95); text-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.game-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font: 700 .72rem/1 var(--body); padding: 7px 10px; border-radius: 8px; background: var(--paper); color: var(--plum); text-transform: uppercase; letter-spacing: .08em; }
.badge-sample { background: #c4422b; color: #fff; }
.game-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.game-genre { font: 700 .75rem/1 var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--green-dark); margin-bottom: 10px; }
.game h3 { font-size: 1.4rem; margin-bottom: 4px; color: var(--plum); }
.game-creator { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.game-tagline { font: italic 700 1.05rem/1.35 var(--display); color: var(--orange-dark); margin-bottom: 8px; }
.game-blurb { color: var(--ink-soft); flex: 1; }
.game-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 14px; }
.game-link { font-weight: 700; color: var(--plum); text-decoration: none; }
.game-link:hover { text-decoration: underline; }
.game-platforms { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plat {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 .8rem/1 var(--body); padding: 8px 11px; border-radius: 8px;
  background: var(--cream); color: var(--ink); text-decoration: none;
}
.plat::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.plat-ios::before { background: var(--plum); }
.plat-android::before { background: var(--green); }
.plat-steam::before { background: var(--orange); }
.plat-tba { color: var(--muted); }
.plat-tba::before { background: var(--cream-shade); }
a.plat { background: var(--plum); color: #fff; }
a.plat:hover { background: var(--plum-dark); }
@media (max-width: 900px) { .games { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .games { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--plum-deep); color: #fff; padding: 48px 0 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }

.brand-footer .wm-top { color: #fff; }
.brand-footer .wm-bottom { color: var(--green); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; justify-content: flex-end; }
.footer-nav a { color: #fff; text-decoration: none; opacity: .85; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.fine { grid-column: 1 / -1; font-size: .8rem; color: #c2adbf; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

/* Legal / simple pages */
.page { padding: clamp(48px, 7vw, 88px) 0; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page h2 { font-size: 1.5rem; margin-top: 2em; }
.page li { margin-bottom: .4em; }
.page .updated { color: var(--muted); }
.notice {
  background: var(--cream); border-left: 4px solid var(--orange); border-radius: 8px;
  padding: 14px 18px; margin: 24px 0;
}
