/* CMF Editor's View — shared styles
   All fonts are served from this site (no Google Fonts / CDN), same as the rest of hyphenedit.com.
   Korean: Pretendard 1.3.9 (OFL). /editors-view/fonts/pretendard-*.woff hold only the Korean characters used on these pages;
   it is regenerated when a new issue adds new Korean text. */
@font-face{font-family:Pretendard;src:url('/editors-view/fonts/pretendard-400.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Pretendard;src:url('/editors-view/fonts/pretendard-500.woff') format('woff');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Pretendard;src:url('/editors-view/fonts/pretendard-600.woff') format('woff');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Pretendard;src:url('/editors-view/fonts/pretendard-700.woff') format('woff');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:Manrope;src:url('/fonts/Manrope-300.woff') format('woff');font-weight:300;font-style:normal;font-display:swap;ascent-override:106.6%;descent-override:30%;line-gap-override:0%}
@font-face{font-family:Manrope;src:url('/fonts/Manrope-400.woff') format('woff');font-weight:400;font-style:normal;font-display:swap;ascent-override:106.6%;descent-override:30%;line-gap-override:0%}
@font-face{font-family:Manrope;src:url('/fonts/Manrope-500.woff') format('woff');font-weight:500;font-style:normal;font-display:swap;ascent-override:106.6%;descent-override:30%;line-gap-override:0%}
@font-face{font-family:Manrope;src:url('/fonts/Manrope-600.woff') format('woff');font-weight:600;font-style:normal;font-display:swap;ascent-override:106.6%;descent-override:30%;line-gap-override:0%}
@font-face{font-family:Manrope;src:url('/fonts/Manrope-700.woff') format('woff');font-weight:700;font-style:normal;font-display:swap;ascent-override:106.6%;descent-override:30%;line-gap-override:0%}
@font-face{font-family:Manrope;src:url('/fonts/Manrope-800.woff') format('woff');font-weight:800;font-style:normal;font-display:swap;ascent-override:106.6%;descent-override:30%;line-gap-override:0%}
:root {
  --slate: #556381;
  --cream: #F2DCC9;
  --coral: #FF8B74;
  --coral-on-light: #E9735C;
  --coral-ink: #B5492F;
  --coral-soft: #FFA390;
  --paper: #F5F4F1;
  --ink: #2B2F3A;
  --ink-2: #3C465C;
  --mist: #DDE1EA;
  --line: #8691A9;
  --line-light: #C9C5BC;
  --font: Manrope, Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
/* Korean: break lines between words, not inside them */
[lang="ko"], [lang="ko"] * { word-break: keep-all; overflow-wrap: break-word; }

.ev-dark { background: var(--slate); color: var(--paper); }
.ev-light { background: var(--paper); color: var(--ink); }

:focus-visible { outline: 2px solid var(--coral-soft); outline-offset: 3px; }
.ev-light :focus-visible { outline-color: var(--coral-ink); }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--paper); color: var(--ink); padding: 10px 14px; font-size: 14px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- Header ---------- */
.ev-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 40px; }
.ev-logo { display: block; line-height: 0; }
.ev-logo img { display: block; width: auto; height: 34px; }
.ev-nav { display: flex; gap: 40px; font-size: 14px; font-weight: 300; }
.ev-light .ev-nav { font-weight: 400; color: var(--ink-2); }
.ev-nav a { display: inline-block; padding: 12px 0 4px; border-bottom: 1.5px solid transparent; }
.ev-nav a:hover { color: var(--cream); }
.ev-light .ev-nav a:hover { color: var(--ink); }
.ev-nav a[aria-current] { font-weight: 600; color: var(--cream); border-bottom-color: var(--coral); }
.ev-light .ev-nav a[aria-current] { font-weight: 700; color: var(--ink); border-bottom-color: var(--coral-on-light); }

/* ---------- Footer ---------- */
.ev-footer { border-top: 1px solid var(--line); }
.ev-light .ev-footer { background: var(--slate); color: var(--paper); border-top: 0; }
.ev-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding-top: 36px; padding-bottom: 36px; font-size: 13px; }
.ev-footer .brand { font-weight: 700; color: var(--coral); }
.ev-light .ev-footer .brand { color: var(--cream); }
.ev-footer .links { display: flex; gap: 24px; flex-wrap: wrap; }
.ev-footer a { display: inline-block; padding: 8px 0; }
.ev-footer a:hover { color: var(--cream); }

/* ---------- Archive (list) ---------- */
.ev-list { padding-top: 80px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 56px; }
.ev-hero { --title: clamp(44px, 6vw, 96px); display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.ev-title { margin: 0; font-size: var(--title); line-height: 0.92; letter-spacing: -0.02em; color: var(--cream); text-transform: uppercase; font-weight: 300; }
.ev-title span { display: block; }
.ev-title .l1 { font-weight: 800; }
.ev-hero-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-end; }
/* top of the intro lines up with the cap top of EDITOR'S */
.ev-intro { margin: calc(var(--title) * 0.12 - 6px) 0 0; font-size: 15px; line-height: 1.55; text-align: right; }
.ev-years { display: flex; gap: 24px; }
.ev-years button { font-size: 14px; font-weight: 400; color: var(--paper); background: transparent; border: 0; border-bottom: 1.5px solid transparent; padding: 10px 0; }
.ev-years button:hover { color: var(--cream); }
.ev-years button[aria-pressed="true"] { font-weight: 700; color: var(--cream); border-bottom-color: var(--cream); }

.ev-issues { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ev-issue, .ev-empty { border-bottom: 1px solid var(--line); }
.ev-issue > a { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 36px 0; }
.ev-issue > a:hover .ev-h { color: var(--cream); }
.ev-num { width: 180px; flex: none; font-size: 128px; font-weight: 800; line-height: 0.85; letter-spacing: -0.04em; color: var(--coral-soft); }
.ev-body { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ev-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); }
.ev-h { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--paper); transition: color .15s; }
.ev-h-kr { font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--mist); }
.ev-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.ev-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border: 1px solid var(--mist); }
.ev-tags { font-size: 13px; color: var(--mist); margin-left: 8px; }
.ev-cover { flex: none; width: 200px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.ev-empty { padding: 48px 0; font-size: 16px; color: var(--mist); }

@media (max-width: 720px) {
  .ev-list { padding-top: 56px; padding-bottom: 80px; gap: 40px; }
  .ev-hero-side { align-items: flex-start; }
  .ev-intro { margin-top: 0; text-align: left; }
  .ev-issue > a { gap: 20px 24px; padding: 28px 0; }
  .ev-num { width: auto; font-size: 72px; }
  .ev-cover { width: 112px; margin-left: auto; }
  .ev-body { flex-basis: 100%; order: 1; }
  .ev-h { font-size: 24px; }
  .ev-h-kr { font-size: 15px; }
}

/* ---------- Issue viewer ---------- */
.ev-issue-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; padding-top: 56px; padding-bottom: 40px; }
.ev-issue-head .titles { display: flex; flex-direction: column; gap: 14px; max-width: 780px; }
.ev-crumb { font-size: 13px; color: var(--slate); }
.ev-crumb a { display: inline-block; padding: 6px 0; }
.ev-crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ev-issue-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-ink); }
.ev-issue-title { margin: 0; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; color: var(--ink); }
.ev-issue-title [lang="ko"] { letter-spacing: -0.02em; line-height: 1.3; }

.ev-lang { display: inline-flex; border: 1px solid var(--slate); }
.ev-lang button { min-width: 72px; min-height: 44px; font-size: 14px; font-weight: 700; border: 0; background: transparent; color: var(--ink-2); }
.ev-lang button[aria-pressed="true"] { background: var(--slate); color: var(--paper); }

.ev-viewer { background: var(--slate); color: var(--paper); padding: 56px 24px; }
.ev-viewer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; justify-content: center; }
.ev-stage { flex: 0 1 640px; max-width: max(320px, calc((100vh - 130px) * 0.8)); min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ev-page { position: relative; background: var(--paper); aspect-ratio: 4 / 5; overflow: hidden; touch-action: pan-y; }
.ev-page img { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.ev-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ev-pager { display: flex; align-items: center; gap: 12px; }
.ev-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid #C3CAD8; color: var(--paper); }
.ev-btn.next { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.ev-btn:disabled { opacity: 0.35; cursor: default; }
.ev-count { font-size: 15px; font-weight: 600; min-width: 72px; text-align: center; font-variant-numeric: tabular-nums; }
.ev-fs { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 500; background: transparent; border: 0; color: var(--paper); padding: 0; }
.ev-fs:hover { color: var(--cream); }

.ev-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ev-side-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.ev-side-head .label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--cream); }
.ev-side-head .info { font-size: 13px; color: var(--mist); }
.ev-thumbs { list-style: none; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ev-thumbs button { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--paper); overflow: hidden; outline: 1px solid var(--line); outline-offset: 2px; }
.ev-thumbs button[aria-current="true"] { outline: 2px solid var(--coral-soft); }
.ev-thumbs button:focus-visible { outline: 2px solid var(--cream); }
.ev-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ev-thumbs .n { position: absolute; left: 0; bottom: 0; font-size: 11px; font-weight: 700; color: var(--paper); background: var(--ink); padding: 2px 6px; }

/* full screen */
.ev-stage:fullscreen { max-width: none; background: #1F2430; justify-content: center; align-items: center; padding: 24px; gap: 16px; }
.ev-stage:fullscreen .ev-page { height: calc(100vh - 112px); width: auto; }
.ev-stage:fullscreen .ev-controls { width: min(640px, 100%); }
.ev-stage:-webkit-full-screen { max-width: none; width: 100%; height: 100%; background: #1F2430; justify-content: center; align-items: center; padding: 24px; gap: 16px; }
.ev-stage:-webkit-full-screen .ev-page { height: calc(100vh - 112px); width: auto; }

.ev-about { display: flex; flex-wrap: wrap; gap: 48px 80px; padding-top: 64px; padding-bottom: 48px; }
.ev-about .text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ev-about h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; color: var(--slate); }
.ev-about p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--ink); max-width: 68ch; }
.ev-about ol { margin: 0; padding-left: 22px; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.ev-facts { flex: 1 1 280px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; font-size: 14px; align-content: start; }
.ev-facts dt { color: var(--slate); }
.ev-facts dd { margin: 0; font-weight: 600; }

.ev-bottom { padding-bottom: 96px; }
.ev-bottom .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--line-light); padding-top: 28px; }
.ev-outline { display: inline-block; font-size: 14px; font-weight: 600; padding: 13px 24px; border: 1px solid var(--slate); color: var(--ink-2); }
.ev-outline:hover { background: var(--slate); color: var(--paper); }

@media (max-width: 720px) {
  .ev-issue-head { padding-top: 40px; padding-bottom: 28px; }
  .ev-viewer { padding: 24px 16px 40px; }
  .ev-viewer-inner { gap: 32px; }
  .ev-stage { max-width: none; flex-basis: 100%; }
  .ev-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .ev-about { padding-top: 48px; gap: 40px; }
  .ev-about p { font-size: 16px; }
  .ev-nav { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
