/* ==========================================================================
   arturcat.com - Hand-Crafted Editorial & Playful Persona Style
   Designed with human warmth, typography, and personality.
   ========================================================================== */

:root {
  --canvas: #faf6f0;
  --surface: #ffffff;
  --surface-alt: #f4ede2;
  --ink: #1f1b17;
  --ink-secondary: #584f46;
  --ink-faint: #8f8274;
  --border: #e9decf;
  --border-strong: #d9ccb9;
  --terracotta: #de562c;
  --terracotta-hover: #c7451e;
  --butter: #fce8b3;
  --sage: #d9f0e1;
  --lilac: #ece2fb;
  --max-w: 1180px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--canvas);
  background-image:
    radial-gradient(420px 240px at 92% -10px, rgba(252, 232, 179, 0.45) 0%, transparent 70%),
    radial-gradient(380px 220px at -4% 28%, rgba(222, 86, 44, 0.08) 0%, transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 8px; }

.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 20px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand span { color: var(--terracotta); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.tuna-icon {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-block;
  transform-origin: 30% 50%;
  animation: tunaSwim 3s ease-in-out infinite;
}

@keyframes tunaSwim {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.08); }
  75% { transform: rotate(6deg) scale(0.96); }
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink-secondary);
  transition: color 0.15s, background 0.15s;
}
.nav a:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav a.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 8px 18px;
}
.nav a.nav-cta:hover {
  background: var(--terracotta);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 60px 0 68px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.9rem, 6.5vw, 4.2rem);
  letter-spacing: -0.025em;
  font-style: normal;
}

.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--terracotta);
}

.hero-bio {
  margin: 22px 0 0;
  max-width: 38ch;
  font-size: 1.18rem;
  line-height: 1.58;
  color: var(--ink-secondary);
}

.social-row {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.15s, background 0.15s;
}

.social-chip:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: #fff;
}

/* --------------------------------------------------------------------------
   HERO PHOTO FRAME & INTERACTION
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  border-radius: 36px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.03),
    0 18px 36px -8px rgba(33, 27, 23, 0.12);
  transform: rotate(2deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.photo-frame:hover {
  transform: rotate(-1deg) scale(1.03);
}

.photo-img {
  display: block;
  width: 340px;
  height: 340px;
  object-fit: cover;
  border-radius: 28px;
}

.photo-sticker {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--butter);
  border: 1px solid #e2cb8b;
  color: #4f3b06;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.photo-frame:hover .photo-sticker {
  transform: translateX(-50%) translateY(-2px) rotate(1deg);
}

/* Floating speech bubble */
.speech-bubble {
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 10;
  pointer-events: none;
  width: max-content;
  max-width: 290px;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s, visibility 0.2s;
}

.speech-bubble p { margin: 0; }

.speech-bubble.active {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.bubble-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
}

/* ==========================================================================
   SECTION: GAMES (CINEMATIC POSTER STYLE)
   ========================================================================== */
.section {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 6px;
}

.section-heading {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
}

.section-lead {
  margin: 0;
  color: var(--ink-secondary);
  max-width: 40ch;
  font-size: 1.05rem;
}

/* Game Poster Card */
.game-poster-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.02),
    0 16px 36px -10px rgba(33, 27, 23, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-poster-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.02),
    0 24px 48px -12px rgba(33, 27, 23, 0.12);
}

.poster-media {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: #111;
}

.poster-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.9);
  transition: transform 0.5s ease;
}

.game-poster-card:hover .poster-bg {
  transform: scale(1.03);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
}

.poster-tag {
  position: absolute;
  top: 18px;
  left: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
}

.poster-body {
  padding: 36px 36px 32px;
}

.poster-header h3 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
}

.poster-tagline {
  margin: 6px 0 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--terracotta);
  font-weight: 600;
}

.poster-desc {
  margin: 18px 0 0;
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 68ch;
}

/* Stats bar inside poster */
.poster-stats-bar {
  display: grid;
  grid-template-columns: 140px 140px 1fr;
  gap: 24px;
  margin: 28px 0 32px;
  padding: 18px 24px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.meta-val {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
}

.top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.top-list li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-list li:first-child {
  color: var(--terracotta);
  font-weight: 700;
}

/* CTA row */
.poster-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  background: var(--terracotta);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(222, 86, 44, 0.35);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--terracotta-hover);
  box-shadow: 0 8px 22px rgba(222, 86, 44, 0.45);
}

.btn-primary:active { transform: translateY(1px); }

.cta-hint {
  font-size: 0.88rem;
  color: var(--ink-faint);
  font-weight: 600;
}

/* Sub-games 2 col */
.sub-games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.compact-game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.compact-media {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #111;
}

.compact-media-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.compact-game-card:hover .compact-media-bg {
  transform: scale(1.05);
}

.compact-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 60%);
}

.compact-media-tag {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.compact-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.compact-body h4 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.compact-body p {
  margin: 0 0 18px;
  color: var(--ink-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}

.manifesto-card {
  background: linear-gradient(145deg, #ffffff 0%, var(--surface-alt) 100%);
  padding: 28px;
  position: relative;
}

.manifesto-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.compact-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.quote-mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--terracotta);
  opacity: 0.28;
  margin: 4px 0 -12px;
  user-select: none;
}

.manifesto-quote {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.55;
  margin: 8px 0 16px !important;
}

.badge-accent {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lilac);
  color: #49287c;
}

.badge-neutral {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--butter);
  color: #5d4608;
}

.sub-icon { font-size: 1.3rem; }

.compact-game-card h4 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.compact-game-card p {
  margin: 0 0 16px;
  color: var(--ink-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.15s, gap 0.15s;
}

.text-link:hover {
  color: var(--terracotta);
  gap: 12px;
}
.btn-troll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(31, 27, 23, 0.22);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s, box-shadow 0.15s;
}

.btn-troll:hover {
  transform: translateY(-2px);
  background: #50268a;
  box-shadow: 0 8px 22px rgba(80, 38, 138, 0.35);
}

.btn-troll:active { transform: translateY(1px); }

.compact-btn-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.compact-btn-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-faint);
}


.manifesto-card em {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-secondary);
}

.facts-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.facts-chips span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--surface-alt);
  border-radius: 999px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   SECTION: EDITORIAL SPLIT (BOOK & CONTACT)
   ========================================================================== */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.split-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.split-col h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.split-col p {
  margin: 0 0 20px;
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.pill-status {
  display: inline-block;
  width: max-content;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding: 6px 14px;
  background: rgba(222, 86, 44, 0.1);
  border-radius: 999px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s, gap 0.15s;
}

.email-link:hover {
  color: var(--terracotta);
  gap: 12px;
}

/* ==========================================================================
   FOOTER & PEEKING MOUSE EASTER EGG
   ========================================================================== */
.footer {
  margin-top: 56px;
  padding: 36px 0 44px;
  border-top: 1px solid var(--border);
  position: relative;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--ink-faint);
  font-weight: 500;
}

.footer-copy strong { color: var(--ink); }

.footer-meta {
  display: flex;
  gap: 18px;
}
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }
.footer-meta a:hover { color: var(--terracotta); }

/* Mouse hole easter egg */
.mouse-hole-container {
  position: absolute;
  bottom: 0;
  right: 60px;
  width: 50px;
  height: 38px;
  cursor: pointer;
}

.mouse-hole {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 34px;
  background: var(--ink);
  border-radius: 25px 25px 0 0;
  box-shadow: inset 0 6px 10px rgba(0,0,0,0.6);
  z-index: 1;
}

.peeking-mouse {
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 30px;
  height: 28px;
  background: #a39b94;
  border-radius: 15px 15px 0 0;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateY(18px);
}

.peeking-mouse.peek {
  transform: translateY(0);
}

.peeking-mouse.scurry {
  transform: translateY(32px);
}

.mouse-ears {
  position: absolute;
  top: -6px;
  left: 2px;
  right: 2px;
  display: flex;
  justify-content: space-between;
}
.mouse-ears::before, .mouse-ears::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #f7b4c4;
  border: 2px solid #a39b94;
  border-radius: 50%;
  display: block;
}

.mouse-face {
  position: relative;
  width: 100%;
  height: 100%;
}

.mouse-eye {
  position: absolute;
  top: 8px;
  width: 4px;
  height: 4px;
  background: #111;
  border-radius: 50%;
}
.mouse-eye.left { left: 7px; }
.mouse-eye.right { right: 7px; }

.mouse-nose {
  position: absolute;
  bottom: 8px;
  left: 13px;
  width: 4px;
  height: 3px;
  background: #f7b4c4;
  border-radius: 50%;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 38px 0 48px;
  }
  .hero-bio { margin: 18px auto 0; }
  .social-row { align-items: center; }
  .hero-visual { order: -1; }
  .photo-img { width: 260px; height: 260px; }

  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .poster-stats-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sub-games-grid,
  .editorial-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .header { flex-direction: column; gap: 14px; }
  .poster-body { padding: 24px 20px; }
  .poster-cta-row { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-troll { justify-content: center; width: 100%; }
  .compact-btn-row { flex-direction: column; align-items: stretch; }
  .footer-top { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 1400px) {
  :root {
    --max-w: 1260px;
  }
  .page {
    padding: 0 40px;
  }
  .poster-media {
    height: 310px;
  }
}
