/* ============================================================
   SOMA — game developer portfolio
   Palette: warm sunset amber on dark, matched to the hero image
   ============================================================ */

:root {
  --bg: #171210;
  --bg-card: #201915;
  --line: #35291f;
  --text: #f2e6d8;
  --text-dim: #a89684;
  --accent: #ffa033;
  --accent-soft: #ffc069;

  --red: #ff6157;
  --purple: #c493ec;
  --blue: #85bcff;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  background: var(--bg);
  overscroll-behavior-y: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.6;
  overscroll-behavior-y: none;
}

a { color: var(--accent); text-decoration: none; }

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

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

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(to bottom, rgba(23, 18, 16, 0) 45%, rgba(23, 18, 16, 0.55) 78%, var(--bg) 100%),
    url("assets/hero.jpg") center 30% / cover no-repeat;
}

.hero-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px 56px;
}

.hero-title {
  font-size: clamp(64px, 11vw, 120px);
  font-weight: 700;
  letter-spacing: 6px;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
  margin-bottom: 18px;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-blog {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--accent);
  color: #241505;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}
.btn-blog:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn-blog svg { width: 18px; height: 18px; fill: currentColor; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: rgba(23, 18, 16, 0.6);
  border: 1px solid rgba(242, 230, 216, 0.25);
  backdrop-filter: blur(4px);
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.btn-icon:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-icon svg { width: 22px; height: 22px; fill: var(--text); }

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

.games {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 28px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.game-card:hover { transform: translateY(-4px); }

.accent-red:hover    { border-color: var(--red);    box-shadow: 0 8px 32px rgba(255, 97, 87, 0.15); }
.accent-purple:hover { border-color: var(--purple); box-shadow: 0 8px 32px rgba(196, 147, 236, 0.15); }
.accent-blue:hover   { border-color: var(--blue);   box-shadow: 0 8px 32px rgba(133, 188, 255, 0.15); }

.game-cover {
  display: block;
  aspect-ratio: 630 / 500;
  overflow: hidden;
}

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

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

.game-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.game-title { font-size: 20px; font-weight: 700; line-height: 1.3; }

.game-title a, .game-title span { color: var(--text); }
.accent-red .game-title a    { color: var(--red); }
.accent-purple .game-title span { color: var(--purple); }
.accent-blue .game-title span   { color: var(--blue); }

.game-tagline { font-size: 13px; }

.game-meta {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.status-released { background: var(--accent); color: #241505; }
.status-dev      { border: 1px solid var(--line); color: var(--text-dim); }

.game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.play-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 5px;
  background: #3a2d21;
  color: var(--text);
  font-size: 13px;
  transition: background 0.15s;
}
.play-btn:hover { background: var(--accent); color: #241505; }

.play-btn.is-disabled {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--text-dim);
  cursor: default;
}

.platforms { display: inline-flex; gap: 8px; }
.platforms svg { width: 16px; height: 16px; fill: var(--text-dim); }

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

.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 28px 40px;
  color: var(--text-dim);
  font-size: 13px;
}

.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--accent); }
.site-footer .sep { margin: 0 6px; }
.site-footer .credit { white-space: nowrap; }
.site-footer .credit a { color: var(--text); }
.site-footer .credit a:hover { color: var(--accent); }

/* ---------------- small screens ---------------- */

@media (max-width: 540px) {
  .hero { min-height: 70svh; }
  .hero-inner { padding: 0 16px 40px; }

  .hero-links { gap: clamp(6px, 2vw, 10px); flex-wrap: nowrap; }
  .btn-blog { height: clamp(42px, 13vw, 50px); padding: 0 clamp(13px, 3.6vw, 17px); font-size: 12px; gap: 7px; }
  .btn-blog svg { width: 16px; height: 16px; }
  .btn-icon { width: clamp(42px, 13vw, 50px); height: clamp(42px, 13vw, 50px); }
  .btn-icon svg { width: clamp(20px, 6vw, 24px); height: clamp(20px, 6vw, 24px); }
}

@media (max-width: 359px) {
  .hero-links { gap: 5px; }
  .btn-blog { height: 42px; padding: 0 10px; font-size: 11px; }
  .btn-icon { width: 42px; height: 42px; }
  .btn-icon svg { width: 20px; height: 20px; }
}
