:root {
  --background: #242424;
  --text: #f7f1ec;
  --muted: #bdb6b0;
  --accent: #ff9aa2;
  --surface: #302f2f;
  --border: #464343;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px clamp(20px, 5vw, 56px);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
}

.site-logo-mark {
  display: block;
  height: 15px;
  width: auto;
  /* nudge down to share an optical center with the separators and lowercase text */
  transform: translateY(1.25px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a,
.site-nav-separator {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.site-nav a {
  text-decoration: none;
  transition: color 160ms ease;
}

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

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.home-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 96px 24px;
}

.brand-mark {
  margin: 0;
  color: var(--accent);
  font-size: clamp(40px, 7vw, 58px);
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
}

.page-shell {
  min-height: 100vh;
  padding: 128px clamp(20px, 5vw, 56px) 64px;
}

.page-content {
  width: min(760px, 100%);
  margin: 0 auto;
}

.page-content h1 {
  margin: 0 0 32px;
  color: var(--accent);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05;
}

.post-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.post-card:hover,
.post-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.post-card time,
.article-meta {
  color: var(--muted);
  font-size: 14px;
}

.post-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.article {
  font-size: 18px;
  line-height: 1.7;
}

.article h1 {
  margin-bottom: 24px;
}

.article h2 {
  margin-top: 40px;
  font-size: 28px;
}

.article p {
  margin: 0 0 22px;
}

.contact-skeleton {
  display: grid;
  gap: 28px;
}

.contact-section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.contact-section:last-child {
  border-bottom: 0;
}

.contact-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.contact-section p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-placeholder {
  color: var(--text);
}

.contact-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  text-decoration: underline;
}

.pong-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pong-overlay.is-open {
  display: flex;
  animation: pong-fade-in 200ms ease-out;
}

.pong-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pong-overlay.is-open .pong-frame {
  animation: pong-pop-in 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.pong-canvas {
  width: min(800px, 90vw);
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

@keyframes pong-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pong-pop-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pong-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.pong-hint strong {
  color: var(--accent);
  font-weight: 600;
}

body.pong-active {
  overflow: hidden;
}

@media (max-width: 560px) {
  .site-header {
    padding: 20px;
  }

  .site-logo-mark {
    height: 14px;
  }

  .site-nav a,
  .site-nav-separator {
    font-size: 14px;
  }
}
