:root {
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Page ── */
.sn-page {
  background: var(--color-primary);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
}

/* ── HERO ── */
.sn-hero {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 8vw, 8rem);
  max-width: 1400px;
  margin: 0 auto;
}

.sn-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* Back link */
.sn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gray-600);
  text-decoration: none;
  transition:
    color 0.2s,
    gap 0.2s;
}
.sn-back svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.sn-back:hover {
  color: var(--text-primary);
  gap: 0.75rem;
}
.sn-back:hover svg {
  transform: translateX(-3px);
}

/* Index number */
.sn-hero__index {
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-grey-600);
  user-select: none;
  letter-spacing: -0.02em;
}

/* Club tag */
.sn-club-tag {
  margin-bottom: 1.25rem;
}
.sn-club-tag a,
.sn-club-tag span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-red-500);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-red-500);
  transition: opacity 0.2s;
}
.sn-club-tag a:hover {
  opacity: 0.7;
}

/* Title */
.sn-hero__title-wrap {
  overflow: hidden;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.sn-title {
  font-size: clamp(2.2rem, 5.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 16ch;
}

.sn-title__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(105%);
  animation: snWordUp 1s var(--ease-expo) forwards;
}
@keyframes snWordUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero foot — byline + share */
.sn-hero__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Byline */
.sn-byline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.sn-byline__date {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.sn-byline__day {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary);
}
.sn-byline__dm {
  display: flex;
  flex-direction: column;
  padding-top: 0.2rem;
  gap: 0.1rem;
}
.sn-byline__dm span {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gray-600);
}
.sn-byline__divider {
  width: 1px;
  height: 2.5rem;
  background: var(--color-gray-300);
}
.sn-byline__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Share */
.sn-share {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sn-share__label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.sn-share__btns {
  display: flex;
  gap: 0.5rem;
  padding: 3px;
}
.sn-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--text-primary);
  color: var(--text-primary);
  text-decoration: none;
  will-change: transform;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.25s var(--ease-out-expo);
}

.sn-share__btn svg {
  width: 1rem;
  height: 1rem;
}
.sn-share__btn:hover {
  transform: scale(1.1);
}

/* Hero rule */
.sn-hero__rule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sn-hero__rule-line {
  flex: 1;
  height: 1px;
  background: var(--color-gray-300);
}
.sn-hero__rule-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

/* ── BODY WRAP ── */
.sn-body-wrap {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 8vw, 8rem);
  gap: 3rem;
}

@media (min-width: 900px) {
  .sn-body-wrap {
    grid-template-columns: 180px 1fr;
    gap: 6rem;
    align-items: start;
  }
}

/* ── Sidebar ── */
.sn-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sn-sidebar__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-gray-300);
}
.sn-sidebar__label {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.sn-sidebar__val {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ── Article ── */
.sn-article {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  color: var(--text-primary);
  max-width: 68ch;
}

.sn-article p {
  margin-bottom: 1.5em;
}

.sn-article h2 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-red-500);
  margin: 2.5em 0 0.75em;
  padding-left: 1rem;
}

.sn-article h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2em 0 0.6em;
  line-height: 1.25;
}

.sn-article blockquote {
  margin: 2.5rem 0;
  padding: 0 0 0 2rem;
  border-left: 3px solid var(--text-primary);
  font-style: italic;
  font-size: 1.2em;
  line-height: 1.6;
  color: var(--text-primary);
}

.sn-article a {
  color: var(--text-primary);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.sn-article strong {
  font-weight: 700;
}

.sn-article img {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

/* First paragraph drop cap */
.sn-article > p:first-of-type::first-letter {
  font-size: 4.2rem;
  font-weight: 700;
  float: left;
  line-height: 0.78;
  margin: 0.08em 0.12em 0 0;
  color: var(--color-red-500);
}

/* ── Footer ── */
.sn-footer {
  border-top: 1px solid var(--color-gray-300);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 8vw, 8rem);
  max-width: 1400px;
  margin: 0 auto;
  position: static;
}
.sn-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.sn-footer__label {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-gray-600);
}
.sn-footer__back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 2px;
  transition:
    color 0.2s,
    border-color 0.2s,
    gap 0.2s;
}
.sn-footer__back svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.sn-footer__back:hover {
  color: var(--red);
  border-color: var(--red);
  gap: 0.9rem;
}
.sn-footer__back:hover svg {
  transform: translateX(4px);
}

/* ── Mobile ── */
@media (max-width: 899px) {
  .sn-hero__index {
    display: none;
  }
  .sn-sidebar__progress-wrap {
    display: none;
  }
  .sn-byline {
    gap: 1rem;
  }
  .sn-sidebar__inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .sn-sidebar__item {
    flex: 1 1 120px;
    border-bottom: none;
    border-right: 1px solid var(--rule);
    padding-bottom: 0;
    padding-right: 1rem;
  }
  .sn-sidebar__item:last-child {
    border-right: none;
  }
}
