.page-news {
  background: var(--cream);
  color: var(--char);
  overflow-x: hidden;
}

.page-news h1,
.page-news h2,
.page-news h3 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}

.page-news h1 {
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  color: var(--ink-900);
  margin: 0 0 18px;
  max-width: 16ch;
}

.page-news h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.16;
  font-weight: 800;
  color: var(--ink-900);
  margin: 0;
}

.page-news h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
}

.page-news p {
  margin: 0;
}

.page-news a {
  color: var(--ink-700);
}

.page-news img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-news section[id],
.page-news div[id] {
  scroll-margin-top: 24px;
}

.news-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border-bottom: 1px solid var(--line);
  padding: 22px 0 34px;
}

.news-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-hero__grid {
  display: grid;
  gap: 26px;
}

.news-kicker {
  display: inline-block;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  border-left: 3px solid var(--amber);
  padding-left: 10px;
  margin-bottom: 14px;
}

.news-hero .lead {
  max-width: 62ch;
  margin-bottom: 20px;
  color: var(--char);
}

.news-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.news-hero__stat {
  font-size: 14px;
  color: var(--ink-soft);
}

.news-hero__stat .num {
  font-size: 20px;
  color: var(--ink-900);
  margin-right: 3px;
}

.news-hero__media {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.news-hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.news-layout {
  display: grid;
  gap: 36px;
  padding-top: 40px;
}

.news-main {
  min-width: 0;
}

.news-section {
  padding: 38px 0 46px;
  border-bottom: 1px solid var(--line-soft);
}

.news-section:last-of-type {
  border-bottom: 0;
}

.news-section .section-head {
  margin-bottom: 26px;
}

.news-section .section-head__note {
  max-width: 64ch;
}

.update-list {
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.update-item:hover,
.update-item:focus-within {
  background: rgba(237, 194, 122, 0.16);
  border-color: var(--amber);
}

.update-item__date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-head);
}

.update-item__date .num {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.update-item__pinned {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--rust);
  border: 1px solid var(--rust);
  padding: 1px 6px;
}

.update-item--pinned {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 6px;
}

.update-item--pinned .update-item__date .num {
  font-size: 26px;
  color: var(--amber);
}

.update-item__body {
  min-width: 0;
}

.update-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.update-item__title {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.update-item__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 68ch;
  margin-bottom: 8px;
}

.update-item__link {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  background: linear-gradient(var(--amber), var(--amber)) left bottom / 0 2px no-repeat;
  transition: background-size 0.25s var(--ease), color 0.2s var(--ease);
}

.update-item__link:hover,
.update-item__link:focus-visible {
  color: var(--amber);
  background-size: 100% 2px;
}

.update-item__thumb {
  border: 1px solid var(--line);
  background: var(--cream-2);
}

.update-item__thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.news-categories {
  padding-top: 34px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px;
  min-width: 0;
}

.category-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 10px;
}

.category-card__head h3 {
  font-size: 17px;
}

.category-card__head .num {
  font-size: 24px;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.category-card > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.category-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.category-card__list a {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--char);
  text-decoration: none;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.category-card__list a:hover,
.category-card__list a:focus-visible {
  border-color: var(--amber);
  color: var(--ink-900);
}

.news-aside {
  min-width: 0;
}

.news-aside__sticky {
  display: grid;
  gap: 18px;
}

.news-aside__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.news-toc,
.news-filter,
.news-aside__note {
  background: var(--cream-2);
  border: 1px solid var(--line);
  padding: 16px;
}

.news-toc .toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.news-toc .toc__link {
  display: block;
  padding: 8px 0 8px 12px;
  border-left: 2px solid transparent;
  font-size: 14px;
  text-decoration: none;
  color: var(--char);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.news-toc .toc__link:hover,
.news-toc .toc__link.is-active {
  border-left-color: var(--amber);
  color: var(--ink-900);
}

.news-filter {
  display: grid;
  gap: 0;
}

.news-filter__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  text-decoration: none;
  color: var(--char);
  transition: color 0.2s var(--ease);
}

.news-filter__link:last-child {
  border-bottom: 0;
}

.news-filter__link:hover,
.news-filter__link:focus-visible {
  color: var(--amber);
}

.news-filter__link .num {
  color: var(--ink-900);
  font-size: 15px;
}

.news-aside__note {
  background: var(--jade-soft);
  border-color: rgba(94, 142, 126, 0.36);
}

.news-aside__note-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.news-aside__note p:last-child {
  font-size: 13px;
  line-height: 1.7;
  color: var(--char);
}

.news-section.shell {
  padding-top: 42px;
  padding-bottom: 46px;
}

.notes-grid {
  display: grid;
  gap: 16px;
}

.note-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
  min-width: 0;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.note-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.note-card .tag {
  margin-bottom: 12px;
}

.note-card h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.note-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.note-card a {
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
}

.note-card a:hover,
.note-card a:focus-visible {
  color: var(--amber);
}

.version-layout {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.version-media {
  border: 1px solid var(--line);
  background: var(--cream-2);
}

.version-media img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.version-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.version-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.version-step:last-child {
  border-bottom: 0;
}

.version-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--jade);
  color: var(--jade);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
}

.version-step h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.version-step p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.version-list {
  display: grid;
  gap: 12px;
}

.version-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: var(--cream-2);
  border: 1px solid var(--line-soft);
  padding: 16px;
}

.version-item > .num {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1.2;
}

.version-item h3 {
  font-size: 17px;
  margin-bottom: 5px;
}

.version-item p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.news-band-section {
  background: var(--ink-900);
  color: var(--cream);
  padding: 42px 0;
  margin: 8px 0;
}

.rhythm-layout {
  display: grid;
  gap: 24px;
}

.rhythm-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--amber-soft);
  margin-bottom: 10px;
}

.rhythm-copy h2 {
  color: var(--cream);
  margin-bottom: 14px;
}

.rhythm-copy > p:not(.rhythm-kicker) {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(247, 240, 227, 0.82);
  max-width: 62ch;
  margin-bottom: 16px;
}

.rhythm-link {
  display: inline-block;
  color: var(--amber-soft);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
}

.rhythm-link:hover,
.rhythm-link:focus-visible {
  color: var(--cream);
}

.rhythm-cards {
  display: grid;
  gap: 12px;
}

.rhythm-card {
  border: 1px solid rgba(247, 240, 227, 0.22);
  background: rgba(247, 240, 227, 0.05);
  padding: 16px;
}

.rhythm-card .num {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--amber-soft);
  margin-bottom: 6px;
}

.rhythm-card h3 {
  color: var(--cream);
  font-size: 16px;
  margin-bottom: 5px;
}

.rhythm-card p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(247, 240, 227, 0.74);
}

.rhythm-media {
  margin-top: 24px;
  border: 1px solid rgba(247, 240, 227, 0.2);
  background: var(--ink-800);
}

.rhythm-media img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.help-panel {
  background: var(--ink-900);
  color: var(--cream);
  border: 1px solid var(--ink-700);
  padding: 22px;
}

.help-panel__grid {
  display: grid;
  gap: 22px;
}

.help-panel h3 {
  color: var(--cream);
  font-size: 18px;
  margin-bottom: 8px;
}

.help-panel p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(247, 240, 227, 0.8);
  margin-bottom: 10px;
}

.help-panel__mail {
  display: inline-block;
  color: var(--amber-soft);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  overflow-wrap: anywhere;
}

.help-panel__mail:hover,
.help-panel__mail:focus-visible {
  color: var(--cream);
}

.help-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 240, 227, 0.2);
}

.news-backtop {
  text-align: center;
  padding-top: 26px;
}

.news-backtop a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.news-backtop a:hover,
.news-backtop a:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-grid .note-card--three {
    grid-column: 1 / -1;
  }

  .version-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .news-hero {
    padding: 30px 0 44px;
  }

  .news-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 40px;
  }

  .news-hero__media img {
    aspect-ratio: 3 / 2;
  }

  .news-layout {
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 44px;
    padding-top: 48px;
  }

  .news-aside__sticky {
    position: sticky;
    top: 30px;
  }

  .update-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0;
  }

  .update-item--pinned {
    grid-template-columns: 92px minmax(0, 1fr) 220px;
    gap: 20px;
    align-items: start;
    padding: 22px;
  }

  .update-item--pinned .update-item__thumb {
    display: block;
  }

  .update-item--pinned .update-item__date {
    flex-direction: column;
    align-items: flex-start;
  }

  .version-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 32px;
  }

  .rhythm-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 40px;
  }

  .rhythm-media {
    max-width: 720px;
  }

  .help-panel {
    padding: 28px;
  }

  .help-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (min-width: 1040px) {
  .notes-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .note-card--one {
    grid-column: 1 / span 5;
  }

  .note-card--two {
    grid-column: 7 / span 4;
    margin-top: 28px;
  }

  .note-card--three {
    grid-column: 11 / span 2;
    grid-row: 1;
    margin-top: 14px;
    padding: 14px;
  }

  .note-card--three h3 {
    font-size: 16px;
  }

  .note-card--three p {
    font-size: 12px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .update-item,
  .page-news .note-card,
  .page-news .update-item__link,
  .page-news .category-card__list a,
  .page-news .news-filter__link {
    transition: none;
  }
}
