/* Alya & Tim Abbott Game Designs — site styles */

:root {
  --bg: #fbf8f3;
  --bg-elev: #ffffff;
  --ink: #1c1c20;
  --ink-soft: #4a4a52;
  --ink-faint: #8a8a92;
  --rule: #e6e1d6;
  --link: #5b3a99;
  --link-hover: #3a1f76;

  /* Pizza Shark theme */
  --ps-green: #2f8a44;
  --ps-green-deep: #246b34;
  --ps-red: #a8332c;
  --ps-cream: #fff7e6;
  --ps-pizza: #f1b24a;

  /* Rock the Galaxy theme */
  --rtg-purple: #5b3a99;
  --rtg-purple-deep: #3a1f76;
  --rtg-purple-soft: #ece3f7;
  --rtg-green: #2f8a44;
  --rtg-orange: #e8801a;
  --rtg-ink: #15102b;

  /* Penguin Paths theme */
  --pp-blue: #3a78bd;
  --pp-blue-deep: #285a92;
  --pp-ice: #eaf1f8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15131a;
    --bg-elev: #1f1c26;
    --ink: #f1ecf5;
    --ink-soft: #c4becc;
    --ink-faint: #8b8594;
    --rule: #2c2834;
    --link: #b69cf0;
    --link-hover: #d4c2ff;

    /* Card body colors: cleaner neutrals with the faintest game-color tint,
       so the banner/accent carry the identity instead of a muddy surface. */
    --ps-cream: #1f1d1a;
    --rtg-purple-soft: #251f36;
    --pp-ice: #1a1f26;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--link-hover);
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.4em;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------- site header ------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(6px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  flex-wrap: wrap;
}

.site-header__brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 18px;
  white-space: nowrap;
}

@media (max-width: 460px) {
  .site-header__inner {
    gap: 8px;
  }
  .site-header__brand {
    font-size: 15px;
  }
  .site-nav {
    gap: 14px;
    font-size: 14px;
  }
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* ------- hero ------- */

.hero {
  padding-block: 64px 32px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.02em;
  margin: 0;
}

/* ------- who-we-are section on index ------- */

.who {
  padding-block: 24px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 40px;
  align-items: center;
  scroll-margin-top: 72px;
}

@media (max-width: 720px) {
  .who {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.who__body h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 14px;
}

.who__body p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.who__body em {
  font-style: italic;
}

.who__list {
  margin: 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.who__list li {
  margin-bottom: 8px;
}

.who__list li:last-child {
  margin-bottom: 0;
}

.who__photo {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.who__portrait {
  margin: 0;
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 112px;
}

.who__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: var(--bg-elev);
}

.who__portrait figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ------- games section ------- */

.games {
  padding-block: 32px 64px;
  scroll-margin-top: 72px;
}

.games__title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 24px;
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 920px) {
  .game-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------- shared game card chrome ------- */

.game-card {
  --c-bg: var(--bg-elev);
  --c-ink: var(--ink);
  --c-ink-soft: var(--ink-soft);
  --c-accent: var(--ink);
  --c-accent-soft: var(--rule);
  --c-banner-bg: var(--ink);
  --c-banner-ink: var(--bg);
  --c-heading: var(--ink);
  /* Filled-button colors. Kept separate from --c-accent so we can brighten
     outlines without sacrificing contrast on white-on-color fills. */
  --c-fill: var(--c-accent);
  --c-fill-ink: var(--c-banner-ink);

  background: var(--c-bg);
  color: var(--c-ink);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.game-card__banner {
  background: var(--c-banner-bg);
  color: var(--c-banner-ink);
  /* Right padding reserves space for the absolutely-positioned game icon. */
  padding: 22px 124px 22px 24px;
  position: relative;
  overflow: hidden;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-card__title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.game-card__title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.05;
}

.game-card__subtitle {
  font-style: italic;
  margin: 4px 0 0;
  font-size: 1rem;
  opacity: 0.92;
}

.game-card__status {
  background: rgba(255, 255, 255, 0.92);
  color: #1c1c20;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 9px;
  border-radius: 999px;
  /* Nudge up so the pill sits visually centered with the cap height
     of the title text, not at the title's text baseline. */
  transform: translateY(-0.5em);
}

/* Game icon: occupies the right side of the banner. Decorative — the
   game name is already in text. */
.game-card__icon {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 100px;
  height: 100px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.game-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

/* Push the Materials block to the bottom so it aligns across cards even
   when descriptions are different lengths. */
.game-card__body > :last-child {
  margin-top: auto;
}

.game-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Stats are informational labels, not interactive — keep them flat so
   they don't get visually confused with the tinted secondary buttons
   below. The accent color survives only on the icon. */
.game-card__stats li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-soft);
}

.game-card__stats svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--c-accent);
}

.game-card__description {
  margin: 0;
  font-size: 15.5px;
  color: var(--c-ink-soft);
}

.game-card__downloads-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  opacity: 0.7;
  margin-bottom: 4px;
}

.game-card__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--c-fill);
  color: var(--c-fill-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: filter 120ms ease;
}
.dl:hover {
  filter: brightness(1.1);
  color: var(--c-fill-ink);
}

/* Secondary buttons get a tinted background so the button shape reads
   clearly. Without it, an outline-only button visually disappears next
   to the filled primary on the same card. */
.dl--secondary {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-color: transparent;
}
.dl--secondary:hover {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  filter: brightness(1.08);
}

.dl--wip {
  background: transparent;
  color: var(--ink-faint);
  border: 1px dashed var(--ink-faint);
  cursor: default;
  pointer-events: none;
}

.dl svg {
  width: 14px;
  height: 14px;
}

/* ------- Pizza Shark theme ------- */

.game-card--pizza-shark {
  --c-bg: var(--ps-cream);
  --c-accent: var(--ps-red);
  --c-accent-soft: rgba(168, 51, 44, 0.16);
  --c-banner-bg: var(--ps-green);
  --c-banner-ink: #ffffff;
  --c-heading: var(--ps-red);
  border-color: rgba(47, 138, 68, 0.25);
}

.game-card--pizza-shark .game-card__banner {
  background: linear-gradient(
    180deg,
    var(--ps-green) 0%,
    var(--ps-green-deep) 100%
  );
}

.game-card--pizza-shark .game-card__title {
  font-weight: 800;
}

.game-card--pizza-shark .game-card__subtitle {
  color: rgba(255, 255, 255, 0.95);
}

@media (prefers-color-scheme: dark) {
  .game-card--pizza-shark {
    /* Brighter red for outlines/text so it reads on the dark card body. */
    --c-accent: #f08982;
    --c-accent-soft: rgba(240, 137, 130, 0.22);
    /* Keep the filled "Sell sheet" button deep enough for white text. */
    --c-fill: #c4453d;
  }
  .game-card--pizza-shark .game-card__description {
    color: #d6cdb8;
  }
}

/* ------- Rock the Galaxy theme ------- */

.game-card--rock-the-galaxy {
  --c-bg: var(--rtg-purple-soft);
  --c-accent: var(--rtg-purple);
  --c-accent-soft: rgba(91, 58, 153, 0.18);
  --c-banner-bg: var(--rtg-ink);
  --c-banner-ink: #ffffff;
  --c-heading: var(--rtg-purple);
  border-color: rgba(91, 58, 153, 0.25);
}

.game-card--rock-the-galaxy .game-card__banner {
  background: linear-gradient(140deg, #1c1240 0%, #15102b 55%, #2a1a4e 100%);
}

.game-card--rock-the-galaxy .game-card__title {
  font-family: "Caveat", "Bradley Hand", "Comic Sans MS", cursive;
  font-weight: 700;
  font-size: 2.7rem;
  letter-spacing: 0.005em;
  color: #b69cf0;
  line-height: 1;
}

.game-card--rock-the-galaxy .game-card__subtitle {
  color: #7fd29a;
  font-style: normal;
  font-weight: 500;
  margin-top: 8px;
}

/* ------- Penguin Paths theme ------- */

.game-card--penguin-paths {
  --c-bg: var(--pp-ice);
  --c-accent: var(--pp-blue-deep);
  --c-accent-soft: rgba(58, 120, 189, 0.16);
  --c-banner-bg: var(--pp-blue);
  --c-banner-ink: #ffffff;
  --c-heading: var(--pp-blue-deep);
  border-color: rgba(58, 120, 189, 0.25);
}

.game-card--penguin-paths .game-card__banner {
  background: linear-gradient(
    180deg,
    var(--pp-blue) 0%,
    var(--pp-blue-deep) 100%
  );
}

.game-card--penguin-paths .game-card__title {
  font-weight: 800;
}

.game-card--penguin-paths .game-card__subtitle {
  color: rgba(255, 255, 255, 0.95);
}

@media (prefers-color-scheme: dark) {
  .game-card--penguin-paths {
    /* Brighter blue for outlines/text so it reads on the dark card body. */
    --c-accent: #8db8e8;
    --c-accent-soft: rgba(141, 184, 232, 0.22);
    /* Keep the filled "Rules" button deep enough for white text. */
    --c-fill: #3a78bd;
  }
  .game-card--penguin-paths .game-card__description {
    color: #c4d3e2;
  }
}

/* Mobile overrides for both game cards. Placed AFTER per-theme rules
   so they beat them in the cascade at narrow widths. */
@media (max-width: 600px) {
  .game-card__banner {
    padding-inline-end: 82px;
  }
  .game-card__icon {
    top: 14px;
    width: 64px;
    height: 64px;
  }
  .game-card__title {
    font-size: 1.9rem;
  }
  .game-card--rock-the-galaxy .game-card__title {
    font-size: 2rem;
  }
}

@media (prefers-color-scheme: dark) {
  .game-card--rock-the-galaxy {
    /* Brighter lavender for outlines so they read on the dark purple body. */
    --c-accent: #c1aaf5;
    --c-accent-soft: rgba(193, 170, 245, 0.22);
    /* Solid fill stays deep so white text on it keeps contrast. */
    --c-fill: #7654c4;
  }
  .game-card--rock-the-galaxy .game-card__description {
    color: #d2c9e4;
  }
}

/* ------- contact / footer ------- */

.contact {
  border-top: 1px solid var(--rule);
  padding: 36px 0 48px;
  background: var(--bg-elev);
  scroll-margin-top: 72px;
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

@media (max-width: 600px) {
  .contact__inner {
    grid-template-columns: 1fr;
  }
}

.contact h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin: 0 0 10px;
  font-weight: 600;
}

.contact dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 4px 18px;
  margin: 0;
  font-size: 15px;
}

.contact dt {
  color: var(--ink-faint);
}

.contact dd {
  margin: 0;
  color: var(--ink);
}

.contact__credit {
  font-size: 13px;
  color: var(--ink-faint);
  text-align: right;
}

@media (max-width: 600px) {
  .contact__credit {
    text-align: left;
  }
}

