:root {
  --bg: #ffffff;
  --bg-card: #f2f2f2;
  --text: #101010;
  --text-muted: #777777;
  --accent: #3da9da;
  --accent2: #e4002b;
  --accent-light: #10c46e;
  --border: #e9e9e9;
  --radius: 8px;
  --shadow: inset 0 -1px 0 0 #e2e2e2;
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --size-base: 16px;
  --lh: 1.231;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1226;
    --bg-card: #251a36;
    --text: #f2f2f2;
    --text-muted: #a99bbf;
    --border: #382a4d;
    --shadow: inset 0 -1px 0 0 #382a4d;
  }
}

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

html { font-size: var(--size-base); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent2);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.site-logo:hover { text-decoration: none; opacity: .9; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.site-nav a:hover { text-decoration: none; opacity: .85; }

/* Hero */
.hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 58%; min-width: 280px; }
.hero-photo {
  flex: 1 1 38%;
  min-width: 260px;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-photo img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
  max-height: 480px;
  max-height: 55vh;
  border-radius: var(--radius);
}
.hero h1 {
  font-size: 2.6rem;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 40ch;
}

/* Section */
.section { padding: 2.5rem 0; }
.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: -.01em;
  border-left: 4px solid var(--accent);
  padding-left: .75rem;
}

/* Model grid */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 2rem;
}

/* Model card */
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.model-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.model-card-img {
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.model-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.model-card-body { padding: .75rem; }

.model-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  object-position: top center;
}
.model-name {
  font-size: 1.15rem;
  font-weight: 700;
}
.category-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .2rem .6rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}
.model-bio {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: .85rem;
}

/* CTA */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.btn-cta {
  display: inline-block;
  background: var(--accent2);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background .2s;
}
.btn-cta:hover { background: #b80022; text-decoration: none; }
.btn-cta--tg { background: #229ED9; }
.btn-cta--tg:hover { background: #1a87ba; }

/* Post cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 2rem;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.post-card-img { overflow: hidden; aspect-ratio: 3 / 4; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.post-card-body { padding: .75rem; }
.post-card-body h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.post-card-body time { color: var(--text-muted); font-size: .82rem; }

/* SEO section */
.seo-section { padding: 2.5rem 0; background: var(--bg-card); border-top: 1px solid var(--border); }
.seo-content {
  max-width: 70ch;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.seo-content h2, .seo-content h3 { color: var(--text); margin: 1.5rem 0 .75rem; }
.seo-content p { margin-bottom: 1rem; }

/* Post single */
.post-body { max-width: 760px; margin: 0 auto; font-size: 1.05rem; line-height: 1.7; }
.post-body p { margin-bottom: 1.25rem; }
.post-body h2, .post-body h3 { margin: 2rem 0 .75rem; }
.post-body::after { content: ""; display: table; clear: both; }

.post-header { max-width: 760px; margin: 0 auto; padding: 2rem 0 1rem; }
.post-header h1 { font-size: 2.2rem; margin-bottom: .5rem; letter-spacing: -.02em; }
.post-meta { color: var(--text-muted); font-size: .9rem; }
.post-tags { margin-top: .5rem; }
.post-tags span {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  margin-right: .4rem;
}

.post-game-hero {
  width: 100%;
  margin-bottom: 1.75rem;
  overflow: hidden;
  border-radius: var(--radius);
}
.post-game-hero img { width: 100%; height: auto; display: block; }

.game-screenshot { clear: both; margin: 2rem 0; overflow: hidden; border-radius: var(--radius); }
.game-screenshot img { width: 100%; height: auto; }

.post-photo-link {
  float: right;
  width: 42%;
  margin: .25rem 0 1.25rem 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
}
.post-inline-img { width: 100%; height: auto; }

.back-link { display: inline-block; margin: 2rem 0; font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}
.site-footer nav { margin-top: .75rem; display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 768px) {
  .model-grid, .post-grid { grid-template-columns: 1fr; }
  .hero .container { flex-direction: column-reverse; }
  .hero h1 { font-size: 2rem; }
  .hero-photo { width: 100%; }
}