* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 0 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  line-height: 1.25;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  border-radius: 6px;
}

/* Content images centered by default */
article img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
}

pre code {
  border: none;
  background: none;
  padding: 0;
}

/* Thin horizontal separators */
hr, .sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Header + nav */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.site-header .site-name {
  font-weight: 600;
  color: var(--text);
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
}

.site-header nav a {
  color: var(--muted);
}

.site-header nav a[aria-current="page"] {
  color: var(--text);
}

/* Simple colorless buttons, slightly rounded */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.button svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

/* Home hero */
.hero {
  padding: 2rem 0 1rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.25rem;
  font-size: 2.4rem;
}

.hero .tagline {
  color: var(--muted);
  margin: 0;
}

.hero .tagline-2 {
  margin-top: 0.25rem;
  font-size: 0.9em;
  opacity: 0.85;
}

.hero .button-row {
  justify-content: center;
}

.hero .bio {
  max-width: 39.6rem;
  margin: 1.75rem auto 0;
  text-align: justify;
}

/* Post / item lists */
.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.item-list li:last-child {
  border-bottom: none;
}

.item-list .date {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Game cards */
.game-list {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.game-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 1.25rem;
}

.game-card h3 {
  margin: 0 0 0.35rem;
}

.game-card h3 a {
  color: var(--text);
}

.game-card p {
  margin: 0;
  color: var(--muted);
}

.game-platform {
  color: var(--muted);
  opacity: 0.55;
  font-weight: 400;
  font-size: 0.85em;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.page-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -0.75rem;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .site-header {
    flex-direction: column;
    gap: 0.35rem;
  }
}
