/* ============================================================
   THE S MAGAZINE — CURTAIN HERO (Rèm danh mục · Hướng 1a BẢNG TÊN)
   ============================================================ */

.magazine-notebook-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 24px;
  background-color: #fff;
  background-image: repeating-linear-gradient(180deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 15px);
}

.magazine-notebook-hero__inner {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}

/* ---------- ke góc / crop mark ở 4 góc ---------- */
.magazine-notebook-hero__corner {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink, #141412);
  pointer-events: none;
}

.magazine-notebook-hero__corner--tl {
  top: -10px;
  left: -10px;
  border-right: 0;
  border-bottom: 0;
}

.magazine-notebook-hero__corner--tr {
  top: -10px;
  right: -10px;
  border-left: 0;
  border-bottom: 0;
}

.magazine-notebook-hero__corner--bl {
  bottom: -10px;
  left: -10px;
  border-right: 0;
  border-top: 0;
}

.magazine-notebook-hero__corner--br {
  bottom: -10px;
  right: -10px;
  border-left: 0;
  border-top: 0;
}

/* ---------- 1a BẢNG TÊN · tokens ---------- */
.cur {
  --red: #C1121F;
  --ink: #141412;
  --ink-2: #3A3A36;
  --muted: #8A8A85;
  --line: #E4E4E0;
  --paper: #F1F0EE;
  --white: #fff;
  --rail: 44px;
  /* bề rộng thanh ray còn lại khi mở */
  --dur: .9s;
  --ease: cubic-bezier(.76, 0, .24, 1);
  --p: 0;
  /* 0 = đóng, 1 = mở hoàn toàn (JS ghi vào đây) */
  font-family: 'Unbounded', system-ui, sans-serif;
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.cur *,
.cur *::before,
.cur *::after {
  box-sizing: border-box;
}

/* ---------- lớp bài viết bên dưới ---------- */
.cur__article {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 44px 52px;
}

.cur__thumb {
  width: 392px;
  flex: none;
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(45deg, #EDEDEA 0 8px, #F8F8F6 8px 16px);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  overflow: hidden;
}

.cur__thumb span {
  font: 10px/1 ui-monospace, Menlo, monospace;
  letter-spacing: .1em;
  color: #9A9A95;
}

.cur__thumb--photo {
  padding: 0;
}

.cur__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cur__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.cur__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--red);
}

.cur__kicker i {
  width: 26px;
  height: 3px;
  background: var(--red);
}

.cur__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: pretty;
}

.cur__title a {
  color: inherit;
  text-decoration: none;
}

.cur__title a:hover {
  color: var(--red);
}

.cur__excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 300;
  color: #6E6E68;
  max-width: 52ch;
  text-wrap: pretty;
}

.cur__meta {
  display: flex;
  gap: 18px;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: .14em;
  color: #9A9A95;
}

/* ---------- hai cánh rèm ---------- */
.cur__panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  display: flex;
  z-index: 3;
  transition: transform var(--dur) var(--ease);
}

.cur__panel--l {
  left: 0;
  transform: translateX(calc(-100% * var(--p) + var(--rail) * var(--p)));
}

.cur__panel--r {
  right: 0;
  transform: translateX(calc(100% * var(--p) - var(--rail) * var(--p)));
}

/* mặt rèm: giấy kẻ ngang mảnh */
.cur__face {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 34px 30px;
  background: var(--paper);
  background-image: repeating-linear-gradient(180deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 15px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cur__panel--l .cur__face {
  align-items: flex-end;
  text-align: right;
}

.cur__eyebrow {
  font-size: clamp(8px, 1.4vw, 10px);
  letter-spacing: clamp(.1em, .6vw, .24em);
  color: var(--muted);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cur__name {
  font-size: clamp(22px, 6vw, 56px);
  line-height: .92;
  font-weight: 800;
  white-space: nowrap;
}

.cur__name em {
  font-style: normal;
  color: var(--red);
}

.cur__panel--r .cur__name {
  font-size: clamp(20px, 5vw, 56px);
}

.cur__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cur__panel--l .cur__foot {
  align-items: flex-end;
}

.cur__foot i {
  width: 52px;
  height: 3px;
  background: var(--red);
}

.cur__panel--r .cur__foot i {
  background: var(--ink);
}

.cur__foot span {
  font-size: 10px;
  letter-spacing: .18em;
  color: #5C5C57;
  white-space: nowrap;
}

/* thanh ray / sống tạp chí — phần duy nhất còn lại khi mở */
.cur__rail {
  width: var(--rail);
  flex: none;
  background: var(--ink);
  color: #F2F2F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
}

.cur__panel--l .cur__rail {
  box-shadow: -14px 0 30px rgba(0, 0, 0, .1);
}

.cur__panel--r .cur__rail {
  box-shadow: 14px 0 30px rgba(0, 0, 0, .1);
  border-left: 1px solid var(--red);
}

.cur__rail b {
  font-size: 11px;
  font-weight: 700;
}

.cur__rail u {
  width: 8px;
  height: 8px;
  background: var(--red);
  text-decoration: none;
}

.cur__rail u.cur--hollow {
  background: none;
  border: 1px solid #6E6E68;
}

.cur__vert {
  writing-mode: vertical-rl;
  font-size: 9.5px;
  letter-spacing: .34em;
  font-weight: 500;
}

.cur__panel--r .cur__vert {
  transform: rotate(180deg);
  color: var(--muted);
  font-weight: 400;
}

.cur__rail small {
  font-size: 10px;
  color: #6E6E68;
}

@media (max-width: 720px) {
  .magazine-notebook-hero {
    padding-inline: 16px;
  }

  .cur {
    /* bỏ thanh ray trên màn nhỏ — rèm trượt hẳn ra ngoài */
    --rail: 0px;
  }

  .cur__rail {
    display: none;
  }

  .cur__article {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 22px;
    gap: 22px;
  }

  .cur__thumb {
    width: 100%;
  }

  .cur__face {
    padding: 22px 14px;
  }

  .cur__name {
    font-size: clamp(18px, 8vw, 34px);
    letter-spacing: -.03em;
  }

  .cur__panel--r .cur__name {
    font-size: clamp(15px, 6.4vw, 28px);
  }

  .cur__eyebrow {
    font-size: 8px;
    letter-spacing: .08em;
  }

  .cur__foot span {
    font-size: 8px;
    letter-spacing: .1em;
  }

  .magazine-notebook-hero__corner {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }

  .magazine-notebook-hero__corner--tl,
  .magazine-notebook-hero__corner--tr {
    top: -6px;
  }

  .magazine-notebook-hero__corner--bl,
  .magazine-notebook-hero__corner--br {
    bottom: -6px;
  }

  .magazine-notebook-hero__corner--tl,
  .magazine-notebook-hero__corner--bl {
    left: -6px;
  }

  .magazine-notebook-hero__corner--tr,
  .magazine-notebook-hero__corner--br {
    right: -6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cur {
    --dur: 0s;
  }
}