/*
  #1d1d1f · #6e6e73
  0.75rem · 0.875rem
  400 · 600
*/

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: #1d1d1f; color: #fff; }

body {
  background: #fff;
  color: #1d1d1f;
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  animation: fadein 0.5s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes fadein { from { opacity: 0 } }
@view-transition { navigation: auto; }
:focus-visible { outline: 1.5px solid #6e6e73; outline-offset: 2px; }

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-video { background: #ff3b30; }
.dot-short { background: #5856d6; }
.dot-text  { background: #1d1d1f; }

/* ── Shared pill button ── */

.cta {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  color: #6e6e73;
  background: none;
  border: 1px solid #e5e5e7;
  border-radius: 100px;
  padding: 0.4rem 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.cta:hover {
  color: #1d1d1f;
  border-color: #1d1d1f;
}

/* ── Header & Footer (same layout) ── */

.header,
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
}

.header { border-bottom: 1px solid #e5e5e7; }
.footer { border-top: 1px solid #e5e5e7; margin-top: auto; }

.header-left { min-width: 0; }

.site-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d1d1f;
  text-decoration: none;
}

.site-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: #6e6e73;
  margin-top: 0.25rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d1d1f;
  text-decoration: none;
  transition: opacity 0.2s;
}

.back:hover { opacity: 0.4; }
.back-arrow { font-weight: 400; color: #6e6e73; transition: transform 0.2s; }
.back:hover .back-arrow { transform: translateX(-3px); }

.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-social a {
  color: #6e6e73;
  text-decoration: none;
  display: flex;
  transition: color 0.2s;
}

.footer-social a:hover { color: #1d1d1f; }

/* ── List ── */

.list {
  flex: 1;
  transition: opacity 0.15s ease;
}

.list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f2;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.list a:first-child { padding-top: 0.75rem; }
.list a:active { opacity: 0.5; }
.list a.hidden { display: none; }
@media (hover: hover) {
  .list:hover a { opacity: 0.15; }
  .list:hover a:hover { opacity: 1; }
}

.list-title {
  font-size: 0.875rem;
  font-weight: 400;
  min-width: 0;
  padding-right: 1.5rem;
}

.list-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.list-date {
  font-size: 0.75rem;
  font-weight: 400;
  color: #6e6e73;
}

/* ── Article ── */

.article-header { padding: 2.5rem 0 2rem; }

.article-header h1 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 660px;
}

.article-meta {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: #6e6e73;
}

.article-body {
  max-width: 660px;
  padding-bottom: 4rem;
}

.article-body p {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.article-body p:last-child { margin-bottom: 0; }

.article-body h2 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid #e5e5e7;
}

.article-body blockquote p {
  color: #6e6e73;
  font-style: italic;
}

/* ── Video ── */

.video-embed {
  margin-top: 2rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-embed iframe { width: 100%; height: 100%; border: none; }
.video-section { padding-bottom: 4rem; }

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: #6e6e73;
  text-decoration: none;
  transition: color 0.2s;
}

.video-link:hover { color: #1d1d1f; }

/* ── Pager ── */

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e5e7;
}

.pager-btn {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  color: #1d1d1f;
  background: none;
  border: 1px solid #e5e5e7;
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pager-btn:hover { border-color: #1d1d1f; }
.pager-btn:active { background: #f5f5f5; }
.pager-btn:disabled { opacity: 0; pointer-events: none; }

.pager-count {
  font-size: 0.75rem;
  color: #6e6e73;
  min-width: 2.5rem;
  text-align: center;
}

/* ── Responsive ── */

.site-sub { display: none; }
@media (min-width: 768px) { .site-sub { display: block; } }
@media (min-width: 768px) { .page { padding: 0 2rem; } }
@media (max-width: 480px) { .list-date { display: none; } }
