/*
 * Premium v3 art direction.
 * One shared editorial shell now governs the header, home, article and footer.
 */
:root {
  --shell-max: 1440px;
  --content-max: 1240px;
  --reading-max: 720px;
  --site-gutter: clamp(28px, 4vw, 64px);
  --paper: #f2efe7;
  --paper-deep: #ddd8ce;
  --ink: #11110f;
  --muted-ink: #625e57;
  --line-v3: rgba(17, 17, 15, 0.18);
  --signal: #f04424;
  --signal-on-light: #a52c1d;
  --acid: #ceff32;
  --display: "Bodoni 72", "Iowan Old Style", "Noto Serif KR", "Batang", Georgia, serif;
  --sans: Pretendard, "Pretendard Variable", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

html {
  background: var(--paper);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

body,
button,
input {
  font-family: var(--sans);
}

main {
  overflow: clip;
}

a,
button,
input {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.masthead {
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: none;
  border: 0;
  border-bottom: 1px solid var(--line-v3);
  background: var(--paper);
}

.masthead-main,
.edition-nav,
.header-search-form {
  width: min(var(--shell-max), calc(100% - (var(--site-gutter) * 2)));
  max-width: none;
  margin-inline: auto;
}

.masthead-main {
  position: relative;
  display: flex;
  min-height: 122px;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  width: auto;
  min-width: 0;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.wordmark .wordmark-english {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3.2rem, 4.75vw, 4.85rem);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: 0.015em;
}

.wordmark .wordmark-lens {
  display: block;
  color: var(--muted-ink);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.2em;
  order: 2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.archive-search-toggle,
.edition-toggle,
.search-submit,
.search-close,
.archive-search-form button {
  border-radius: 0;
  cursor: pointer;
}

.archive-search-toggle {
  position: static;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.15rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.archive-search-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.archive-search-toggle[aria-expanded="true"] {
  border-color: var(--signal);
  color: var(--signal-on-light);
}

.edition-toggle {
  position: static;
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

.edition-toggle .edition-icon {
  width: 18px;
}

.archive-search-panel {
  position: absolute;
  z-index: 60;
  top: 100%;
  left: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 22px 42px rgba(17, 17, 15, 0.2);
}

.header-search-form {
  display: grid;
  min-height: 116px;
  padding-block: 1.6rem;
  grid-template-columns: auto minmax(220px, 1fr) auto 44px;
  align-items: center;
  gap: 1rem;
}

.header-search-form label {
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1;
  white-space: nowrap;
}

.header-search-form input,
.archive-search-form input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 1rem;
}

.header-search-form input::placeholder {
  color: rgba(242, 239, 231, 0.58);
}

.search-submit,
.archive-search-form button {
  min-height: 48px;
  padding: 0 1.2rem;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.search-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(242, 239, 231, 0.5);
  background: transparent;
  color: var(--paper);
  place-items: center;
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 300;
}

.edition-nav {
  position: absolute;
  z-index: 35;
  top: 100%;
  left: 50%;
  padding: 0 clamp(1.25rem, 2.5vw, 2.4rem);
  border: 0;
  background: rgba(17, 17, 15, 0.86);
  color: var(--paper);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.edition-menu {
  display: flex;
  min-height: 62px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.edition-menu li {
  flex: 0 0 auto;
}

.edition-menu a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  padding: 0;
  color: var(--paper);
  align-items: center;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.edition-menu a::after {
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
}

.edition-menu a:hover::after,
.edition-menu .current-menu-item > a::after,
.edition-menu .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.edition-menu .current-menu-item > a,
.edition-menu .current-menu-ancestor > a {
  color: var(--acid);
}

.art-cover,
.moving-type,
.edition-index,
.lead-spread,
.choice-atlas,
.ledger-grid,
.editorial-note,
.archive-wrap,
.article-wrap {
  width: min(var(--shell-max), calc(100% - (var(--site-gutter) * 2)));
  max-width: none;
  margin-inline: auto;
}

.art-cover {
  position: relative;
  display: grid;
  min-height: clamp(680px, 76vh, 790px);
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(184px, 0.34fr);
  isolation: isolate;
}

.cover-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  padding: clamp(7.4rem, 9vw, 9rem) clamp(2.2rem, 4.2vw, 4.5rem) 3.6rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.cover-copy::after {
  content: none;
}

.cover-signature {
  position: absolute;
  top: 5.25rem;
  left: clamp(2.2rem, 4.2vw, 4.5rem);
  display: inline-flex;
  padding-left: 0.9rem;
  border-left: 4px solid var(--signal);
  color: var(--paper);
  text-decoration: none;
  flex-direction: column;
  gap: 0.32rem;
}

.cover-signature strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.cover-signature span {
  color: rgba(242, 239, 231, 0.62);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.cover-copy .kicker {
  margin: 1.8rem 0 0;
  color: rgba(242, 239, 231, 0.72);
}

.cover-copy h1 {
  max-width: 7.2em;
  margin: 0.35em 0 0.38em;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(3.6rem, 4.6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.058em;
  overflow-wrap: normal;
  word-break: keep-all;
}

.cover-copy > p:not(.kicker) {
  max-width: 33rem;
  margin: 0 0 1.45rem;
  color: rgba(242, 239, 231, 0.78);
  font-size: clamp(0.94rem, 1.05vw, 1.04rem);
  line-height: 1.78;
}

.title-accent {
  position: relative;
  display: inline;
  padding: 0;
  color: var(--signal-on-light);
  background: transparent;
  font-style: normal;
}

.title-accent::after {
  right: auto;
  bottom: -0.06em;
  left: 0.03em;
  width: 36%;
  height: 2px;
  background: currentColor;
  opacity: 0.82;
  transform: none;
}

.cover-copy .title-accent,
.lead-spread .title-accent {
  color: var(--acid);
}

.cover-copy .title-accent::after {
  content: none;
}

.cover-copy .disc-link {
  margin-top: auto;
  color: var(--paper);
}

.cover-art {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #c8c1b5;
}

.cover-art > img {
  position: absolute;
  inset: -14px 0;
  display: block;
  width: 100%;
  height: calc(100% + 28px);
  max-width: none;
  object-fit: cover;
  object-position: 60% center;
  filter: saturate(0.84) contrast(1.04);
  transform: translateY(var(--art-offset, 0));
}

.cover-art::after {
  background: linear-gradient(180deg, transparent 62%, rgba(17, 17, 15, 0.58));
}

.art-caption {
  right: 1.35rem;
  bottom: 1.25rem;
  left: 1.35rem;
  max-width: 17rem;
  color: var(--paper);
  font-size: 0.58rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.cover-note {
  display: flex;
  min-width: 0;
  padding: 2rem 1.35rem;
  border: 0;
  background: var(--signal);
  color: var(--ink);
  flex-direction: column;
  justify-content: space-between;
}

.cover-note > span,
.cover-note small {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.cover-note strong {
  max-width: 100%;
  font-family: var(--display);
  font-size: clamp(1.55rem, 1.85vw, 2rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.055em;
  overflow-wrap: normal;
  word-break: keep-all;
}

.moving-type {
  padding: 0.62rem 0 0.68rem;
  background: var(--acid);
  color: var(--ink);
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  line-height: 0.8;
  letter-spacing: -0.045em;
}

