/* Laptopcats Productions — project site
 * Graphite stage, bright paper cards, yarn-red accent. Montserrat throughout.
 */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "AnagramNF";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/AnagramNF.ttf") format("truetype");
}

:root {
  /* page (dark graphite) */
  --bg: #26282e;
  --bg-deep: #1a1c21;
  --on-bg: #e9e6df;
  --on-bg-soft: #b3afa6;
  --on-bg-mute: #8a8780;

  /* cards (bright paper sit on top of the graphite) */
  --paper: #fbfaf7;
  --cream: #ece8e0;        /* warm light (also: light text on dark fills) */
  --cream-deep: #d8d3c9;   /* warm cream chip inside cards */
  --ink: #18181b;
  --ink-soft: #3f3f46;
  --ink-mute: #71717a;

  --yarn: #d6402f;
  --yarn-dark: #b3311f;
  --yarn-soft: #f4b5a8;
  --whisker: #3a3d44;
  --leaf: #4f7a3a;
  --max: 1100px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.20);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.30), 0 2px 4px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.40), 0 10px 20px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--on-bg);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(circle at 18% 6%, rgba(255, 255, 255, 0.06) 0, transparent 50%),
    radial-gradient(circle at 92% 96%, rgba(214, 64, 47, 0.07) 0, transparent 55%);
  background-attachment: fixed;
}

a {
  color: var(--yarn);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}

a:hover {
  color: var(--yarn-soft);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

h1, h2, h3 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: inherit;
  margin: 0;
}

p { margin: 0; }

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

.site {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
}

/* ── Top bar ───────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "AnagramNF", "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0;
  color: var(--on-bg);
  text-transform: none;
}

.brand-mini:hover {
  color: var(--on-bg);
  text-decoration: none;
}

.brand-mini img {
  width: 34px;
  height: 34px;
  padding: 4px;
  background: var(--paper);
  border-radius: 999px;
  object-fit: contain;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-bg-mute);
}

.lang-switcher a,
.lang-switcher span[aria-current] {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--on-bg-soft);
}

.lang-switcher a:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--on-bg);
}

.lang-switcher [aria-current="page"] {
  background: var(--on-bg);
  color: var(--bg-deep);
  font-weight: 800;
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 3.5rem 0 2.75rem;
  position: relative;
}

.hero__logo {
  width: clamp(150px, 22vw, 220px);
  height: clamp(150px, 22vw, 220px);
  margin: 0 auto 1.75rem;
  background: var(--paper);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero__logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.hero h1 {
  font-family: "AnagramNF", "Montserrat", system-ui, sans-serif;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--on-bg);
  text-transform: none;
}

.hero h1 .wink {
  color: var(--yarn);
  display: inline-block;
  font-weight: 400;
}

.hero__tag {
  color: var(--on-bg-soft);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 400;
  max-width: 42ch;
  margin: 0.6rem auto 0;
}

.hero__yarn-rule {
  display: block;
  width: 110px;
  height: 14px;
  margin: 1.6rem auto 0;
  color: var(--yarn);
}

/* ── Section heading ───────────────────────────────────────── */

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin: 3.5rem 0 1.4rem;
  padding-bottom: 0.4rem;
}

.section-heading h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  color: var(--on-bg);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.section-heading__kicker {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yarn);
}

/* ── Featured Soccards card ────────────────────────────────── */

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-card::before {
  content: "NEW";
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  background: var(--yarn);
  color: var(--cream);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(214, 64, 47, 0.4);
  transform: rotate(-4deg);
}

.feature-card__media {
  position: relative;
  background: #0b1220;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.feature-card__body {
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-card__title {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.feature-card__title small {
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--ink-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature-card__lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.feature-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.3rem 0 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--ink-soft);
}

.feature-card__cta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.feature-card__cta .btn {
  height: 64px;
}

.feature-card__play {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.feature-card__play .play-badge {
  height: 64px;
}

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  cursor: pointer;
  border: 0;
  text-decoration: none;
}

.btn--primary {
  background: var(--yarn);
  color: var(--cream);
  box-shadow: 0 3px 0 var(--yarn-dark), 0 10px 22px rgba(214, 64, 47, 0.25);
}

.btn--primary:hover {
  background: var(--yarn-dark);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--yarn-dark), 0 18px 28px rgba(214, 64, 47, 0.3);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 0.75rem 1.25rem;
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
}

/* ── Game cards (Scopa, Stoppa) ────────────────────────────── */

.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.game-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.game-card__media {
  aspect-ratio: 1024 / 500;
  overflow: hidden;
  background: var(--cream-deep);
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__body {
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.game-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.game-card__platform {
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.game-card__desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.game-card__features {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0.6rem;
  display: grid;
  gap: 0.3rem;
}

.game-card__features li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.game-card__features li::before {
  content: "🐾";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.85rem;
}

.game-card__shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.game-card__shots img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.game-card__cta {
  margin-top: auto;
  padding-top: 1rem;
}

.play-badge {
  height: 72px;
  width: auto;
  transition: transform 120ms ease;
}

.play-badge:hover {
  transform: translateY(-2px);
}

/* ── project strip ──────────────────────────────────────────── */

.project {
  margin: 4rem 0 3rem;
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--bg-deep) 0%, #2c2e36 100%);
  color: var(--on-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.project::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--yarn) 0 22%, transparent 23%);
  opacity: 0.22;
  pointer-events: none;
}

.project h2 {
  color: var(--on-bg);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.project p {
  color: var(--on-bg-soft);
  max-width: 56ch;
  font-size: 0.96rem;
}

.project a {
  color: var(--yarn);
}

.project a:hover {
  color: var(--yarn-soft);
}

/* ── Footer ────────────────────────────────────────────────── */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2.5rem;
  color: var(--on-bg-mute);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px dashed var(--whisker);
  margin-top: 1rem;
}

.footer a {
  color: var(--on-bg-soft);
}

.footer a:hover {
  color: var(--on-bg);
}

.footer__left {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

/* ── Prose pages (privacy) ─────────────────────────────────── */

.prose {
  max-width: 64ch;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 1.2rem;
  color: var(--on-bg);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.prose p, .prose li {
  color: var(--on-bg-soft);
  margin: 0.8rem 0;
}

.prose ul {
  padding-left: 1.2rem;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 820px) {
  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card__media {
    aspect-ratio: 1024 / 500;
  }

  .feature-card__body {
    padding: 1.6rem 1.4rem 1.6rem;
  }

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

  .project {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .section-heading {
    margin: 2.5rem 0 1rem;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding-top: 0.25rem;
  }

  .game-card__shots {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card::before {
    top: 0.8rem;
    left: 0.8rem;
  }
}

/* ── Reduced motion ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
