:root {
  /* Palette derived from images/studio-icon.jpg:
     golden yellow bg, periwinkle creature, dark navy outlines */
  --bg: #ffffff;
  --bg-alt: #f7f5ef;
  --surface: #ffffff;
  --border: #e7e3d8;
  --text: #2b2a55;
  --text-muted: #5f5e80;
  --accent: #e9a90e;
  --accent-hover: #d3980c;
  --accent-text: #a87a00;
  --navy: #2b2a55;
  --navy-hover: #3d3b74;
  --periwinkle: #8c90c8;
  --radius: 10px;
  --max-width: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(233, 169, 14, 0.12), transparent),
    var(--bg);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 20px;
}

.hero h1 span { color: var(--accent-text); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--text-muted); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }

.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Games ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(28, 33, 40, 0.06);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(28, 33, 40, 0.1);
}

.game-cover-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 374 / 448; /* natural ratio of the capsule art — full image, no crop */
  border-bottom: 1px solid var(--border);
}

.game-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.game-card:hover .game-cover { transform: scale(1.04); }

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(43, 42, 85, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
}

.game-card:hover .game-overlay,
.game-card:focus-within .game-overlay {
  opacity: 1;
}

.game-info {
  flex: 1;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.game-info h3 { font-size: 1.3rem; }

.game-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-text);
}

.game-link {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.game-link:hover { color: var(--accent-text); }

/* ---------- About ---------- */
.about-wrap {
  max-width: 640px;
  text-align: center;
}

.about-wrap h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.about-wrap p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ---------- Contact ---------- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: -10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form button {
  justify-self: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-inner p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.socials {
  display: flex;
  gap: 20px;
}

.socials a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.socials a:hover { color: var(--accent-text); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links { gap: 20px; }
  .hero { padding: 80px 0 70px; }
  section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .nav-links li:first-child { display: none; }
}
