:root {
  --mag-ink: #1a1815;
  --mag-ink-soft: rgba(26, 24, 21, 0.62);
  --mag-paper: #fbfaf7;
  --mag-paper-soft: #f3eee7;
  --mag-surface: #fff;
  --mag-rule: rgba(26, 24, 21, 0.18);
  --mag-rule-strong: rgba(26, 24, 21, 0.82);
  --mag-accent: #72f1f4;
  --mag-serif: "Noto Serif KR", serif;
  --mag-sans: "Instrument Sans", "Noto Sans KR", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  --mag-gutter: clamp(20px, 5vw, 72px);
  --mag-max: 1240px;
  --mag-fs-script: 1.14rem;
  --mag-fs-cover-title: 3.1rem;
  --mag-fs-standfirst: 1.04rem;
  --mag-fs-note-title: 2.45rem;
  --mag-fs-section-title: 1.9rem;
  --mag-fs-toc-num: 1.4rem;
  --mag-fs-toc-title: 2.1rem;
  --mag-fs-quote: 2.1rem;
  --mag-fs-next-title: 2rem;
  --mag-fs-dept-title: 1.65rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.mag-body {
  min-width: 320px;
  margin: 0;
  color: var(--mag-ink);
  background: var(--mag-paper);
  font-family: var(--mag-sans);
  letter-spacing: 0;
}

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

/* ---------------------------------------------------------------- labels */

.mag-label {
  margin: 0;
  color: var(--mag-ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  word-break: keep-all;
}

.mag-script-label {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: var(--mag-fs-script);
  font-style: italic;
  font-weight: 500;
  color: var(--mag-ink-soft);
  letter-spacing: 0;
}

/* -------------------------------------------------------------- masthead */

.mag-masthead {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 var(--mag-gutter);
  min-height: 60px;
  background: var(--mag-paper);
  border-bottom: 1px solid var(--mag-rule-strong);
}

.mag-masthead__brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.mag-masthead__brand img {
  display: block;
  width: 96px;
  height: auto;
  filter: brightness(0);
  opacity: 0.88;
}

.mag-masthead__title {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.1em;
  letter-spacing: 0;
}

.mag-masthead__nav {
  display: flex;
  justify-self: end;
  gap: 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mag-masthead__nav a {
  padding: 6px 0;
  word-break: keep-all;
}

.mag-masthead__nav a:hover,
.mag-masthead__nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.32em;
}

/* ----------------------------------------------------------------- cover */

.mag-cover {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  width: min(var(--mag-max), 100%);
  margin: 0 auto;
  padding: clamp(40px, 7vh, 88px) var(--mag-gutter);
}

.mag-cover__frame {
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: min(560px, 100%);
  margin: 0;
  justify-self: end;
  aspect-ratio: 1500 / 2093;
  background: #504238;
  box-shadow:
    0 1px 2px rgba(26, 24, 21, 0.18),
    0 24px 64px -24px rgba(26, 24, 21, 0.45);
}

.mag-cover__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(0.96) brightness(0.9);
}

.mag-cover__art {
  position: absolute;
  inset: 0;
  color: #fff;
}

.mag-cover__masthead {
  position: absolute;
  top: 3.5cqw;
  left: 5cqw;
  right: 5cqw;
}

.mag-cover__masthead span {
  display: block;
  font-size: 11.4cqw;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.95);
}

.mag-cover__masthead em {
  display: block;
  margin-top: -3cqw;
  text-align: right;
  color: var(--mag-accent);
  font-family: var(--mag-serif);
  font-size: 8cqw;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.mag-cover__features {
  position: absolute;
  top: 26cqw;
  left: 6cqw;
  display: grid;
  gap: 0.6cqw;
  text-shadow: 0 2px 18px rgba(20, 17, 14, 0.5);
}

.mag-cover__features span {
  margin-top: 4cqw;
  font-size: 6.4cqw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.92);
}

.mag-cover__features strong {
  font-size: 2.5cqw;
  font-weight: 700;
  word-break: keep-all;
}

.mag-cover__culture {
  position: absolute;
  top: 36cqw;
  right: 6cqw;
  display: grid;
  justify-items: end;
  text-align: right;
  text-shadow: 0 2px 20px rgba(20, 17, 14, 0.55);
}

.mag-cover__culture span {
  font-family: var(--mag-serif);
  font-size: 7.4cqw;
  font-weight: 600;
  line-height: 1;
}

.mag-cover__culture strong {
  font-size: 2.7cqw;
  font-weight: 700;
}

.mag-cover__script {
  position: absolute;
  right: 2cqw;
  bottom: 14cqw;
  max-width: 80cqw;
  transform: rotate(-6deg);
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--mag-serif);
  font-size: 11cqw;
  font-style: italic;
  font-weight: 400;
  line-height: 0.92;
  text-align: right;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.35);
}

.mag-cover__imprint {
  position: absolute;
  bottom: 3cqw;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 3cqw;
  font-weight: 800;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* cover meta column */

.mag-cover__meta {
  display: grid;
  gap: 22px;
  justify-items: start;
  align-content: center;
}

.mag-cover__meta h1 {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: var(--mag-fs-cover-title);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
  word-break: keep-all;
}

.mag-standfirst {
  max-width: 26rem;
  margin: 0;
  color: var(--mag-ink-soft);
  font-size: var(--mag-fs-standfirst);
  font-weight: 500;
  line-height: 1.85;
}

.mag-cover__index {
  display: grid;
  width: 100%;
  max-width: 26rem;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--mag-rule-strong);
}

.mag-cover__index li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--mag-rule);
  font-size: 0.98rem;
  font-weight: 700;
  word-break: keep-all;
}

.mag-textlink {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  border-bottom: 1px solid var(--mag-ink);
  padding-bottom: 3px;
  word-break: keep-all;
}

.mag-textlink:hover,
.mag-textlink:focus-visible {
  color: var(--mag-ink-soft);
  border-color: var(--mag-ink-soft);
}

/* ----------------------------------------------------------- editor note */

.mag-note {
  width: min(var(--mag-max), 100%);
  margin: 0 auto;
  padding: clamp(56px, 10vh, 120px) var(--mag-gutter);
  border-top: 1px solid var(--mag-rule-strong);
  display: grid;
  justify-items: center;
  gap: 26px;
  text-align: center;
}

.mag-note h2 {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: var(--mag-fs-note-title);
  font-weight: 600;
  line-height: 1.36;
  word-break: keep-all;
}

.mag-note__body {
  max-width: 36rem;
  margin: 0;
  color: var(--mag-ink-soft);
  font-size: var(--mag-fs-standfirst);
  font-weight: 500;
  line-height: 2;
  text-align: justify;
}

.mag-note__sign {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 500;
}

.mag-note__sign::before {
  content: "— ";
}

/* -------------------------------------------------------- section header */

.mag-rulehead {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-top: 18px;
  margin-bottom: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--mag-rule-strong);
}

.mag-rulehead h2 {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: var(--mag-fs-section-title);
  font-weight: 700;
  line-height: 1.2;
  word-break: keep-all;
}

/* -------------------------------------------------------------- contents */

.mag-contents,
.mag-departments,
.mag-archive,
.mag-colophon {
  width: min(var(--mag-max), 100%);
  margin: 0 auto;
  padding: 0 var(--mag-gutter) clamp(64px, 10vh, 128px);
}

.mag-toc {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mag-toc__row {
  display: grid;
  grid-template-columns: clamp(40px, 6vw, 88px) auto 1fr auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 40px) 0;
  border-top: 1px solid var(--mag-rule);
}

a.mag-toc__row:hover h3,
a.mag-toc__row:focus-visible h3 {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.mag-toc__thumb {
  margin: 0;
  width: clamp(110px, 14vw, 176px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.mag-toc__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(0.96);
}

.mag-toc__thumb--places img {
  object-position: 50% 34%;
}

.mag-toc__thumb--works img {
  object-position: 50% 58%;
}

.mag-toc__thumb--culture img {
  object-position: 50% 96%;
}

.mag-toc li:first-child .mag-toc__row {
  border-top: 0;
  padding-top: 0;
}

.mag-toc__num {
  font-family: var(--mag-serif);
  font-size: var(--mag-fs-toc-num);
  font-weight: 400;
  line-height: 1.3;
  color: var(--mag-ink-soft);
  font-variant-numeric: tabular-nums;
}

.mag-toc__body {
  display: grid;
  gap: 10px;
}

.mag-toc__body h3 {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: var(--mag-fs-toc-title);
  font-weight: 700;
  line-height: 1.24;
  word-break: keep-all;
}

.mag-toc__desc {
  max-width: 34rem;
  margin: 0;
  color: var(--mag-ink-soft);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.75;
  word-break: keep-all;
}

.mag-toc__page {
  padding-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--mag-ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------- pull quote */

.mag-quote {
  width: min(var(--mag-max), 100%);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) var(--mag-gutter);
  border-top: 1px solid var(--mag-rule-strong);
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.mag-quote blockquote {
  margin: 0;
  max-width: 44rem;
}

.mag-quote blockquote p {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: var(--mag-fs-quote);
  font-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
}

.mag-quote cite {
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--mag-ink-soft);
  word-break: keep-all;
}

.mag-quote cite::before {
  content: "— ";
}

/* ----------------------------------------------------------- next issue */

.mag-next {
  width: min(var(--mag-max), 100%);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) var(--mag-gutter);
  border-top: 1px solid var(--mag-rule-strong);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.mag-next h2 {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: var(--mag-fs-next-title);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.mag-next p:not(.mag-script-label) {
  max-width: 30rem;
  margin: 0;
  color: var(--mag-ink-soft);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.9;
  word-break: keep-all;
}

/* ----------------------------------------------------------- departments */

.mag-departments__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mag-departments__grid article {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 0 clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--mag-rule);
}

.mag-departments__grid article:first-child {
  padding-left: 0;
  border-left: 0;
}

.mag-departments__grid article:last-child {
  padding-right: 0;
}

.mag-departments__grid h3 {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: var(--mag-fs-dept-title);
  font-weight: 700;
  line-height: 1.2;
  word-break: keep-all;
}

.mag-departments__grid p:not(.mag-label) {
  margin: 0;
  color: var(--mag-ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.8;
  word-break: keep-all;
}

/* --------------------------------------------------------------- archive */

.mag-archive__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--mag-rule-strong);
}

.mag-issue-card {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 220px;
  padding: 26px clamp(20px, 3vw, 36px);
  border-right: 1px solid var(--mag-rule);
  background: transparent;
}

.mag-issue-card:first-child {
  padding-left: 0;
}

.mag-issue-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.mag-issue-card h3 {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  word-break: keep-all;
}

.mag-issue-card p:not(.mag-label) {
  margin: 0;
  color: var(--mag-ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.75;
  word-break: keep-all;
}

.mag-issue-card .mag-textlink {
  align-self: end;
  justify-self: start;
  margin-top: 8px;
}

.mag-issue-card__state {
  align-self: end;
  justify-self: start;
  margin-top: 8px;
  padding-top: 3px;
  border-top: 1px solid var(--mag-rule);
  color: var(--mag-ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

/* -------------------------------------------------------------- colophon */

.mag-colophon__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 6vw, 96px);
  margin: 0;
}

.mag-colophon__list div {
  display: grid;
  grid-template-columns: minmax(88px, 0.28fr) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mag-rule);
}

.mag-colophon__list dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--mag-ink-soft);
  align-self: center;
  word-break: keep-all;
}

.mag-colophon__list dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  word-break: keep-all;
}

/* ---------------------------------------------------------------- footer */

.mag-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: min(var(--mag-max), 100%);
  margin: 0 auto;
  padding: 22px var(--mag-gutter) 40px;
  border-top: 1px solid var(--mag-rule-strong);
  color: var(--mag-ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.mag-footer__mark {
  font-family: var(--mag-serif);
  font-style: italic;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.mag-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.mag-footer__links a {
  word-break: keep-all;
}

.mag-footer__links a:hover,
.mag-footer__links a:focus-visible {
  color: var(--mag-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 960px) {
  :root {
    --mag-fs-cover-title: 2.55rem;
    --mag-fs-note-title: 2rem;
    --mag-fs-toc-title: 1.75rem;
    --mag-fs-quote: 1.75rem;
  }

  .mag-cover {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
  }

  .mag-cover__frame {
    justify-self: center;
    max-width: min(460px, 100%);
  }

  .mag-cover__meta {
    justify-items: start;
  }

  .mag-departments__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mag-archive__list {
    grid-template-columns: 1fr;
  }

  .mag-issue-card,
  .mag-issue-card:first-child,
  .mag-issue-card:last-child {
    min-height: auto;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--mag-rule);
  }

  .mag-issue-card:last-child {
    border-bottom: 0;
  }

  .mag-departments__grid article {
    padding: 0;
    border-left: 0;
  }

  .mag-departments__grid article + article {
    padding-top: 32px;
    border-top: 1px solid var(--mag-rule);
  }

  .mag-colophon__list {
    grid-template-columns: 1fr;
  }

  .mag-toc__row {
    grid-template-columns: clamp(32px, 6vw, 48px) auto 1fr;
  }

  .mag-toc__thumb {
    width: clamp(88px, 22vw, 132px);
  }

  .mag-toc__page {
    display: none;
  }
}

@media (max-width: 480px) {
  .mag-toc__row {
    grid-template-columns: clamp(32px, 6vw, 48px) 1fr;
  }

  .mag-toc__thumb {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --mag-fs-script: 1.02rem;
    --mag-fs-cover-title: 2.05rem;
    --mag-fs-standfirst: 0.98rem;
    --mag-fs-note-title: 1.72rem;
    --mag-fs-section-title: 1.58rem;
    --mag-fs-toc-title: 1.42rem;
    --mag-fs-quote: 1.46rem;
    --mag-fs-next-title: 1.55rem;
    --mag-fs-dept-title: 1.35rem;
  }

  .mag-masthead {
    min-height: 52px;
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .mag-masthead__title {
    display: none;
  }

  .mag-masthead__brand img {
    width: 72px;
  }

  .mag-masthead__nav {
    gap: 10px;
    font-size: 0.68rem;
  }

  .mag-rulehead {
    flex-direction: column;
    gap: 10px;
  }

  .mag-note__body {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ================================================================ COVER
   Vogue의 전면 마스트헤드 · Magazine B의 호수 표기 · 모닝캄의 국영문 병치
   컨테이너 쿼리 단위(cqw)로 히어로/카드 어느 크기에서도 비율 유지
   ================================================================== */

.cover {
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  aspect-ratio: 1500 / 2093;
  background: #241f1a;
  box-shadow:
    0 1px 2px rgba(26, 24, 21, 0.2),
    0 30px 70px -30px rgba(26, 24, 21, 0.5);
}

.cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02) brightness(0.82);
}

.cover__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.78) 0%, rgba(12, 10, 8, 0.34) 22%, rgba(12, 10, 8, 0.06) 40%, rgba(12, 10, 8, 0.5) 62%, rgba(12, 10, 8, 0.86) 100%);
}

.cover__art {
  position: absolute;
  inset: 0;
  color: #fff;
}

/* 마스트헤드 — 지면 폭을 꽉 채우는 Vogue식 제호 */
.cover__masthead {
  position: absolute;
  top: 4.2cqw;
  left: 5cqw;
  right: 5cqw;
  margin: 0;
  font-size: 11.6cqw;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.028em;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.97);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

/* 계절 — 제호에 걸치는 스크립트 */
.cover__season {
  position: absolute;
  top: 12.4cqw;
  right: 6cqw;
  margin: 0;
  color: var(--cover-accent, #7fe6e8);
  font-family: var(--mag-serif);
  font-size: 8.6cqw;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* 커버라인 — 하단 좌측 컬럼 */
.cover__lines {
  position: absolute;
  left: 6cqw;
  right: 22cqw;
  bottom: 14.5cqw;
  display: grid;
  gap: 3.4cqw;
}

.cover__line {
  display: grid;
  gap: 0.7cqw;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  padding-top: 1.5cqw;
}

.cover__line span {
  font-size: 2.15cqw;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cover-accent, #7fe6e8);
}

.cover__line strong {
  font-family: var(--mag-serif);
  font-size: 4cqw;
  font-weight: 600;
  line-height: 1.28;
  word-break: keep-all;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

/* 호수 — Magazine B식 표기 */
.cover__no {
  position: absolute;
  right: 6cqw;
  bottom: 15cqw;
  margin: 0;
  font-family: var(--mag-serif);
  font-size: 5.4cqw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
  writing-mode: vertical-rl;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.cover__imprint {
  position: absolute;
  bottom: 5cqw;
  left: 50%;
  width: 21cqw;
  height: auto;
  transform: translateX(-50%);
  /* 어두운 표지 위 흰 워드마크 */
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

/* ========================================================= ISSUE HERO */

.issue-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 1fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: center;
  width: min(var(--mag-max), 100%);
  margin: 0 auto;
  padding: clamp(36px, 6vh, 80px) var(--mag-gutter);
}

.issue-hero .cover {
  max-width: min(480px, 100%);
  justify-self: end;
}

.issue-hero__meta {
  display: grid;
  gap: 20px;
  justify-items: start;
  align-content: center;
}

.issue-hero__meta h1 {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: clamp(2.1rem, 3.9vw, 3.7rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.012em;
  word-break: keep-all;
}

.issue-hero__standfirst {
  max-width: 27rem;
  margin: 0;
  color: var(--mag-ink-soft);
  font-size: clamp(0.98rem, 1.3vw, 1.06rem);
  font-weight: 500;
  line-height: 1.92;
  word-break: keep-all;
}

/* 홈: 최신호 미리보기 목록 */
.home__peek {
  display: grid;
  width: 100%;
  max-width: 27rem;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--mag-rule-strong);
}

.home__peek li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--mag-rule);
}

.home__peek a {
  font-family: var(--mag-serif);
  font-size: 1.02rem;
  font-weight: 600;
  word-break: keep-all;
}

.home__peek a:hover,
.home__peek a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* ============================================================== LETTER */

.letter {
  width: min(var(--mag-max), 100%);
  margin: 0 auto;
  padding: clamp(52px, 9vh, 110px) var(--mag-gutter);
  border-top: 1px solid var(--mag-rule-strong);
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.letter h2 {
  margin: 0;
  max-width: 22em;
  font-family: var(--mag-serif);
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
  font-weight: 600;
  line-height: 1.4;
  word-break: keep-all;
}

.letter__body {
  max-width: 37rem;
  text-align: justify;
}

.letter__body p {
  margin: 0 0 1.5em;
  color: var(--mag-ink-soft);
  font-family: var(--mag-serif);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 2.05;
  word-break: keep-all;
}

.letter__body p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-size: 3.1em;
  line-height: 0.84;
  font-weight: 600;
  color: var(--mag-ink);
}

.letter__sign {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: 0.95rem;
  font-style: italic;
}

.letter__sign::before { content: "— "; }

/* ================================================================= TOC */

.toc {
  width: min(var(--mag-max), 100%);
  margin: 0 auto;
  padding: 0 var(--mag-gutter) clamp(48px, 8vh, 96px);
}

.toc__group + .toc__group { margin-top: clamp(36px, 5vw, 60px); }

.toc__sec {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mag-rule-strong);
}

.toc__sec span {
  font-family: var(--mag-serif);
  font-size: 1.32rem;
  font-weight: 700;
}

.toc__sec em {
  color: var(--mag-ink-soft);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.toc__list { margin: 0; padding: 0; list-style: none; }

.toc__row {
  display: grid;
  grid-template-columns: 44px 132px 1fr auto;
  gap: clamp(14px, 2.4vw, 32px);
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--mag-rule);
}

.toc__num {
  font-family: var(--mag-serif);
  font-size: 1.05rem;
  color: var(--mag-ink-soft);
  font-variant-numeric: tabular-nums;
}

.toc__thumb {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--mag-rule);
}

.toc__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.toc__row:hover .toc__thumb img,
.toc__row:focus-visible .toc__thumb img { transform: scale(1.045); }

.toc__body { display: grid; gap: 6px; }

.toc__body h4 {
  margin: 0;
  font-family: var(--mag-serif);
  font-size: clamp(1.12rem, 1.85vw, 1.5rem);
  font-weight: 700;
  line-height: 1.32;
  word-break: keep-all;
}

.toc__body p {
  margin: 0;
  color: var(--mag-ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.7;
  word-break: keep-all;
}

.toc__go { color: var(--mag-ink-soft); font-size: 1rem; }

.toc__row:hover .toc__go,
.toc__row:focus-visible .toc__go { color: var(--mag-ink); }

/* ================================================== HOME — 호별 카드 */

.home__issues {
  width: min(var(--mag-max), 100%);
  margin: 0 auto;
  padding: 0 var(--mag-gutter) clamp(48px, 8vh, 96px);
  border-top: 1px solid var(--mag-rule-strong);
  padding-top: clamp(40px, 7vh, 80px);
}

.home__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.home__card .cover { margin-bottom: 18px; }

.home__card h3 {
  margin: 6px 0 8px;
  font-family: var(--mag-serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.32;
  word-break: keep-all;
}

.home__card p:not(.mag-label) {
  margin: 0;
  color: var(--mag-ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.75;
  word-break: keep-all;
}

.home__card a:hover h3,
.home__card a:focus-visible h3 {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.home__card--more {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 6px;
}

.home__card--more .mag-textlink { margin-top: 6px; }

/* ============================================== 기사 본문 추가 컴포넌트 */

.art__figure { margin: 2.4em 0; }

.art__figure img {
  display: block;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.97);
}

.art__figure figcaption {
  margin-top: 9px;
  color: var(--mag-ink-soft);
  font-family: var(--mag-sans);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.6;
  word-break: keep-all;
}

.art__tablewrap { margin: 2.2em 0; overflow-x: auto; }

.art__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mag-sans);
  font-size: 0.9rem;
}

.art__table th,
.art__table td {
  padding: 11px 12px 11px 0;
  text-align: left;
  border-bottom: 1px solid var(--mag-rule);
  word-break: keep-all;
}

.art__table th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mag-ink-soft);
  border-bottom-color: var(--mag-rule-strong);
}

.art__table td { font-weight: 500; line-height: 1.7; }

/* 출처 */

/* ========================================================== 반응형 */

@media (max-width: 980px) {
  .issue-hero { grid-template-columns: 1fr; gap: 36px; }
  .issue-hero .cover { justify-self: center; max-width: min(400px, 100%); }
  .home__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc__row { grid-template-columns: 36px 104px 1fr; }
  .toc__go { display: none; }
}

@media (max-width: 640px) {
  .home__grid { grid-template-columns: 1fr; gap: 36px; }
  .home__card .cover { max-width: 300px; }
  .toc__row { grid-template-columns: 30px 1fr; }
  .toc__thumb { display: none; }
  .letter__body { text-align: left; }
  .home__peek li { grid-template-columns: 62px 1fr; }
}

/* ============================================ 프론트엔드 개선 (2026-07)
   대형 디스플레이 대응 · 호 그리드 균형 · 접근성 · 모션
   ================================================================== */

/* 넓은 화면에서 지면이 왜소해지지 않도록 단계적으로 확장 */
@media (min-width: 1600px) {
  :root { --mag-max: 1400px; }
}

@media (min-width: 2000px) {
  :root {
    --mag-max: 1560px;
    --mag-gutter: clamp(20px, 5vw, 96px);
  }
  .issue-hero .cover { max-width: 540px; }
}

/* 호가 늘어도 그리드가 어색하게 끊기지 않도록 */
@media (min-width: 1200px) {
  .home__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 아카이브 안내 카드는 남는 칸을 채운다 */
.home__card--more {
  align-self: stretch;
  padding: 18px 20px;
  border: 1px solid var(--mag-rule);
  background: rgba(26, 24, 21, 0.02);
}

/* ------------------------------------------------------------ 접근성 */

/* 키보드 포커스 — 전 페이지 일관 */
.mag-body a:focus-visible,
.mag-body button:focus-visible {
  outline: 2px solid var(--mag-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.toc__row:focus-visible,
.idx-row:focus-visible,
.arch-index__row:focus-visible {
  outline-offset: -2px;
}

/* 건너뛰기 링크가 실제로 보이도록 */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
}

.skip-link:focus {
  left: var(--mag-gutter);
  top: 8px;
  padding: 10px 16px;
  background: var(--mag-ink);
  color: var(--mag-paper);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 2px;
}

/* 본문 선택 색 */
.mag-body ::selection {
  background: var(--mag-ink);
  color: var(--mag-paper);
}

/* ------------------------------------------------------- 이미지 안정 */

/* 치수 속성이 있어도 폭에 맞춰 늘어나되 비율 유지 */
.art__figure img,
.art__hero img,
.toc__thumb img,
.cover__img {
  max-width: 100%;
  height: auto;
}

.art__hero img { aspect-ratio: 16 / 9; object-fit: cover; height: auto; }
.art__figure img { aspect-ratio: 16 / 9; object-fit: cover; }
.toc__thumb img { height: 100%; }
.cover__img { height: 100%; }

/* --------------------------------------------------------- 모션 절제 */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toc__thumb img,
  .home__card .cover { transition: none !important; }
}

/* 이미지 없는 기사의 목차 자리 */
.toc__thumb--none {
  background: repeating-linear-gradient(
    -45deg,
    rgba(26, 24, 21, 0.045) 0 6px,
    transparent 6px 12px
  );
}

/* ========================================================== 플레이리스트
   호마다 붙는 선곡. 지면을 읽는 동안 함께 듣는 자리.
   ================================================================== */

.playlist {
  width: min(var(--mag-max), 100%);
  margin: 0 auto;
  padding: clamp(44px, 7vh, 88px) var(--mag-gutter);
  border-top: 1px solid var(--mag-rule-strong);
}

.playlist__lead {
  max-width: 34rem;
  margin: 0 0 26px;
  color: var(--mag-ink-soft);
  font-family: var(--mag-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
  word-break: keep-all;
}

.playlist__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.playlist__layout {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

@media (min-width: 960px) {
  .playlist__layout {
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  }

  .playlist__layout--list-only {
    grid-template-columns: minmax(0, 1fr);
  }

  .playlist__player {
    position: sticky;
    top: 76px;
  }
}

.playlist__row {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: baseline;
  /* 왼쪽 여백은 재생 중 표시하는 세로선 자리다. 재생 여부와 무관하게 늘 비워
     두어야 곡을 바꿔도 글자가 흔들리지 않는다. */
  padding: 14px 0 14px 16px;
  border-bottom: 1px solid var(--mag-rule);
}

.playlist__no {
  font-family: var(--mag-serif);
  font-size: 0.9rem;
  color: var(--mag-ink-soft);
  font-variant-numeric: tabular-nums;
}

.playlist__song {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 10px;
}

.playlist__song strong {
  font-family: var(--mag-serif);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
}

.playlist__song em {
  color: var(--mag-ink-soft);
  font-family: var(--mag-sans);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
  word-break: keep-all;
}

.playlist__note {
  grid-column: 2 / 3;
  color: var(--mag-ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.65;
  word-break: keep-all;
}

.playlist__go {
  color: var(--mag-rule);
  font-size: 0.8rem;
  align-self: center;
}

.playlist__row:hover .playlist__song strong,
.playlist__row:focus-visible .playlist__song strong {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.playlist__row:hover .playlist__go,
.playlist__row:focus-visible .playlist__go {
  color: var(--mag-ink);
}

.playlist__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 24px 0 0;
}

.playlist__foot span {
  color: var(--mag-ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .playlist__row { grid-template-columns: 24px minmax(0, 1fr); }
  .playlist__go { display: none; }
  .playlist__note { grid-column: 2 / -1; }
}

/* ---------------------------------------------------- 플레이리스트 재생 */

.playlist__player {
  min-width: 0;
  margin: 0;
}

/* 재생 전 — iframe 없이 버튼만 */
.playlist__stage {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--mag-rule);
  background: rgba(26, 24, 21, 0.03);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.playlist__stage:hover,
.playlist__stage:focus-visible {
  background: rgba(26, 24, 21, 0.06);
  border-color: var(--mag-ink);
}

.playlist__stage-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.playlist__stage-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mag-ink);
  color: var(--mag-paper);
  font-size: 0.68rem;
  padding-left: 2px;
}

.playlist__stage-text { display: grid; gap: 2px; }

.playlist__stage-text strong {
  font-family: var(--mag-serif);
  font-size: 1rem;
  font-weight: 700;
}

.playlist__stage-text em {
  color: var(--mag-ink-soft);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 600;
}

/* 재생 중 — 16:9 프레임 */
.playlist__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d0c0b;
}

.playlist__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 목록 행이 버튼일 때도 링크와 같은 모양 */
button.playlist__row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--mag-rule);
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.playlist__row.is-playing .playlist__no,
.playlist__row.is-playing .playlist__go { color: var(--mag-ink); }

.playlist__row.is-playing .playlist__song strong {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

button.playlist__row.is-playing::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--mag-ink);
}

.playlist__row.is-unavailable {
  opacity: 0.52;
}

.playlist__deck {
  min-width: 0;
}

.playlist__frame {
  border: 1px solid var(--mag-rule-strong);
}

.playlist__frame > div {
  position: absolute;
  inset: 0;
}

.playlist__transport {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 14px 16px 10px;
  border: 1px solid var(--mag-rule-strong);
  border-top: 0;
  background: var(--mag-paper);
}

.playlist__now {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.playlist__position {
  color: var(--mag-ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.playlist__now strong {
  overflow: hidden;
  font-family: var(--mag-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist__now > span:last-child {
  overflow: hidden;
  color: var(--mag-ink-soft);
  font-size: 0.7rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist__controls {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  gap: 6px;
}

.playlist__controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--mag-rule-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--mag-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}

.playlist__controls button:hover,
.playlist__controls button:focus-visible {
  background: rgba(26, 24, 21, 0.06);
}

.playlist__controls button:disabled {
  cursor: default;
  opacity: 0.36;
}

.playlist__status {
  min-height: 28px;
  margin: 0;
  padding: 0 16px 10px;
  border: 1px solid var(--mag-rule-strong);
  border-top: 0;
  color: var(--mag-ink-soft);
  font-size: 0.7rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  .playlist__transport {
    grid-template-columns: minmax(0, 1fr);
  }

  .playlist__controls {
    grid-template-columns: repeat(3, 40px);
  }

  .playlist__controls button {
    width: 40px;
    height: 40px;
  }
}

/* ------------------------------------------------------------ AdSense */

.mag-ad {
  width: min(var(--mag-max), 100%);
  margin: 0 auto;
  padding: 0 var(--mag-gutter) clamp(64px, 9vh, 104px);
}

.mag-ad__inner {
  width: min(970px, 100%);
  min-height: 156px;
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid var(--mag-rule);
  border-bottom: 1px solid var(--mag-rule);
}

.mag-ad__label {
  margin: 0 0 10px;
  color: var(--mag-ink-soft);
  font-family: var(--mag-sans);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1;
}

.mag-ad .adsbygoogle {
  width: 100%;
  min-height: 110px;
}

.mag-ad--issue-before-contents {
  padding-bottom: clamp(36px, 5vh, 56px);
}

.mag-ad--issue-before-contents .mag-ad__inner {
  min-height: 104px;
}

.mag-ad--issue-before-contents .adsbygoogle {
  min-height: 58px;
}

.mag-ad--article-inline {
  width: 100%;
  padding: clamp(40px, 6vh, 64px) 0;
}

.mag-ad--article-inline .mag-ad__inner {
  width: 100%;
}

.art__body .mag-ad__label {
  margin: 0 0 10px;
}

.mag-ad--article-end {
  padding: clamp(48px, 8vh, 80px) 0 0;
}

.mag-ad--article-end .mag-ad__inner {
  width: 100%;
}

.mag-ad.is-unfilled,
.mag-ads-unavailable .mag-ad {
  display: none;
}

@media (max-width: 640px) {
  .mag-ad {
    padding-bottom: 56px;
  }

  .mag-ad__inner {
    min-height: 132px;
  }

  .mag-ad .adsbygoogle {
    min-height: 88px;
  }

  .mag-ad--issue-before-contents {
    padding-bottom: 40px;
  }

  .mag-ad--issue-before-contents .mag-ad__inner {
    min-height: 96px;
  }

  .mag-ad--issue-before-contents .adsbygoogle {
    min-height: 56px;
  }

  .mag-ad--article-inline {
    padding: 40px 0;
  }

  .mag-ad--article-end {
    padding: 44px 0 0;
  }
}
