:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #555555;
  --accent: #111111;
  --border: #d9d9d9;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
}

.magazine-shell {
  padding: 28px 20px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.magazine-header {
  margin-bottom: 20px;
  text-align: center;
}

.magazine-header h1 {
  font-family: "Georgia", "Times New Roman", serif;
}

.eyebrow {
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.magazine-header h1 {
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  margin: 0;
  font-weight: 500;
}

.issue-date {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.page-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 22px;
  justify-content: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.page-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

.page-nav a.active {
  color: var(--text);
  border-color: var(--text);
}

.magazine-content {
  display: grid;
  gap: 28px;
}

.magazine-content > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.magazine-content.is-ready > * {
  opacity: 1;
  transform: translateY(0);
}

.magazine-content.is-loading .loading-state {
  opacity: 1;
  transform: translateY(0);
}

.magazine-layout {
  display: grid;
  gap: 20px;
}

.magazine-top {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.magazine-hero,
.magazine-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.magazine-hero .article-card {
  min-height: 420px;
}

.magazine-right .article-card,
.magazine-left .article-card {
  min-height: 200px;
}

.magazine-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.magazine-row .article-card .thumbnail {
  aspect-ratio: 3 / 2;
}

.page-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.page-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.article-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  border: none;
  overflow: hidden;
  position: relative;
}

.article-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-card .thumbnail {
  aspect-ratio: 3 / 2;
  width: 100%;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  background-color: #f2f2f2;
  position: relative;
}

.article-card .headline {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.article-card .excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.score {
  font-weight: 600;
}

.article-card.hero .article-link {
  gap: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 20px;
  align-items: start;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-image .thumbnail {
  aspect-ratio: 3 / 2;
  width: 100%;
}

.video-play {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.video-play-small {
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
}

.video-play-large {
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

.empty-state {
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--text);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .magazine-top {
    grid-template-columns: 1fr;
  }

  .magazine-hero .article-card {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .page-section {
    padding: 0;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .magazine-row {
    grid-template-columns: 1fr;
  }
}

.meta .source {
  font-weight: 600;
  margin-right: 0.5em;
}
.meta .source::after {
  content: '·';
  margin-left: 0.5em;
  margin-right: 0.5em;
  font-weight: normal;
}

.magazine-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.updated-stamp {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
