/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === BASE === */
body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* === LAYOUT === */
.wrapper {
  max-width: 780px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* === HEADER === */
.header {
  background: #4b112c;
  padding: 36px 48px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.header-logo { margin-bottom: 20px; display: block; }
.header-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #54b9b3;
  margin-bottom: 10px;
}
.header h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  max-width: 520px;
}
.header h1.snippet-title {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 12px;
  max-width: 560px;
}
.header .date {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}
.header .intro {
  margin-top: 14px;
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  line-height: 1.6;
}
.header-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.header-back:hover { color: rgba(255,255,255,0.9); }
.header-back::before { content: "←"; }
.header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.header-meta .date { font-size: 13px; color: rgba(255,255,255,0.6); }
.header-meta .meta-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}

/* === META BAR === */
.issue-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 48px;
  background: #f7f7f7;
  border-bottom: 1px solid #e6e6e6;
}
.issue-meta .count { font-size: 13px; color: #595a5c; }
.issue-meta .count strong { color: #e5173f; }
.issue-meta--center { justify-content: center; }
.subscribe-cta { font-size: 13px; font-weight: 600; color: #288983; text-decoration: none; white-space: nowrap; }
.subscribe-cta:hover { text-decoration: underline; }

/* === CONTENT === */
.content { padding: 0 48px 48px; }
.content--archive { padding: 32px 48px 48px; }
.content--snippet { padding: 40px 48px 48px; }

/* === ARCHIVE === */
.week-block { margin-bottom: 22px; }
.week-block:last-child { margin-bottom: 0; }
.week-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 4px;
}
.week-date {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #595a5c;
  flex-shrink: 0;
}
.week-nav { display: flex; gap: 8px; align-items: center; }
.week-nav-sep { color: #c8c8c8; font-size: 10px; }
.week-nav-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #288983;
}
.week-nav-link:hover { text-decoration: underline; }
.week-nav-link:focus-visible,
.feat-list a:focus-visible { text-decoration: underline; outline-offset: 2px; }
.feat-list { list-style: none; padding: 0; margin: 0; }
.feat-list li { padding: 2px 0; }
.feat-list a {
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  color: #595a5c;
}
.feat-list a:hover { text-decoration: underline; }

/* === STORIES === */
.story { padding: 28px 0; border-bottom: 1px solid #e6e6e6; }
.story:last-child { border-bottom: none; }
.tag-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 4px;
  background: #f2f2f2;
  color: #595a5c;
}
.story h2 { font-size: 18px; font-weight: 700; color: #e5173f; margin-bottom: 10px; line-height: 1.3; }
.story p { font-size: 14.5px; color: #374151; line-height: 1.7; }
.clip-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: #e8f6f5;
  color: #288983 !important;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  text-decoration: none;
}
.clip-link:hover { background: #d4efed; }
.clip-icon {
  display: inline-block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent #288983;
  flex-shrink: 0;
}
.learn-more { color: #288983; font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.learn-more:hover { text-decoration: underline; }

/* === ARCHIVE CTA === */
.archive-cta {
  padding: 16px 48px;
  text-align: center;
  border-top: 1px solid #e6e6e6;
}
.archive-cta a {
  font-size: 13px;
  font-weight: 600;
  color: #288983;
  text-decoration: none;
}
.archive-cta a:hover { text-decoration: underline; }

/* === SNIPPET === */
.video-section { margin-bottom: 40px; }
.video-section h2,
.transcript-section h2,
.description-section h2,
.screenshot-section h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4b112c;
  margin-bottom: 16px;
}
.video-wrap {
  position: relative;
  background: #0d0d0d;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.14);
  aspect-ratio: 16 / 9;
}
.video-wrap video { display: block; width: 100%; height: 100%; object-fit: contain; max-height: 440px; }
.transcript-section h2 { margin-bottom: 20px; }
.transcript-card {
  background: #f9f9fb;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 20px;
}
.transcript-speaker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6e6e6;
}
.screenshot-section img { display: block; border-radius: 8px 8px 0 0; max-width: 100%; height: auto; }
.screenshot-section .screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-block-end: 20px;
}
.screenshot-section figure {
  margin-block-end: 20px;
  border-radius: 0 0 8px 8px;
  background: #f9f9fb;
  border: 1px solid #e6e6e6;
}
.screenshot-section figcaption { font-size: 12px; color: #555; padding: 6px 12px; }
.speaker-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #4b112c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.speaker-info .name { font-size: 14px; font-weight: 700; color: #1a1a2e; }
.speaker-info .time { font-size: 12px; color: #888; font-variant-numeric: tabular-nums; }
.transcript-body { font-size: 14px; color: #374151; line-height: 1.8; }
.transcript-body p { margin-bottom: 14px; }
.transcript-body p:last-child { margin-bottom: 0; }
.description {
  margin-block-end: 40px;
  color: #444;
  font-size: 14px;
  line-height: 1.6;
  background: #f9f9fb;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 20px;
  border-left: 3.2px solid;
}

/* === FOOTER === */
.footer { background: #4b112c; padding: 28px 48px; text-align: center; }
.footer-logo { display: block; margin-left: auto; margin-right: auto; }
.footer p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.footer .brand { font-weight: 700; color: #fff; }
.footer-link { display: block; font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: underline; margin-top: 6px; }
.footer-link:hover { color: rgba(255,255,255,0.8); }
.footer-link:focus-visible { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 2px; }

/* === RESPONSIVE === */
@media (max-width: 720px) {
  .wrapper { margin: 0; border-radius: 0; box-shadow: none; }
  .header,
  .content,
  .content--archive,
  .content--snippet,
  .footer,
  .issue-meta { padding-left: 24px; padding-right: 24px; }
  .transcript-card { padding: 20px; }
  .week-row { flex-wrap: wrap; gap: 6px 20px; }
}

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