@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/geist/Geist-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/gloock/Gloock-Regular-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/gloock/Gloock-Regular-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --paper: #FBF9F7;
  --ink: #151514;
  --muted: #66645F;
  --line: #D7D4CE;
  --cinema: #0B0B0B;
  --focus: #151514;
  --type: "Geist", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", Arial, sans-serif;
  --gutter: clamp(24px, 4vw, 56px);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--type); font-weight: 500; font-synthesis: none; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
p, h1, h2, h3 { margin: 0; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
.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-link { position: fixed; top: 8px; left: 16px; z-index: 20; background: var(--paper); padding: 12px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.page-width { max-width: 1600px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.site-header { max-width: 1600px; margin: 0 auto; padding: 36px var(--gutter) 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.wordmark, .footer-wordmark { font-family: "Gloock", Georgia, serif; font-weight: 400; }
.wordmark { font-size: clamp(80px, 7vw, 108px); font-weight: 400; line-height: 1; letter-spacing: -.035em; padding-right: .035em; }
.site-header nav { display: flex; gap: 36px; align-items: center; }
.site-header nav a { position: relative; padding: 14px 0; font-size: 12px; letter-spacing: .08em; line-height: 1.4; }
.site-header nav a[aria-current=page]::after { content: ""; position: absolute; bottom: 7px; left: 0; width: 100%; height: 1px; background: var(--ink); }
.introduction { display: flex; justify-content: space-between; align-items: flex-end; padding: 64px 0 40px; gap: 32px; }
.eyebrow { font-size: 12px; letter-spacing: .09em; line-height: 1.6; font-weight: 500; }
.introduction .eyebrow { color: var(--muted); margin-bottom: 16px; }
.introduction h1 { font-size: clamp(25px, 2vw, 30px); font-weight: 500; line-height: 1.5; letter-spacing: -.035em; word-break: keep-all; }
.edition { flex-shrink: 0; text-align: right; font-size: 11px; letter-spacing: .08em; line-height: 1.6; }
.edition span { display: block; color: var(--muted); font-size: 12px; letter-spacing: -.01em; margin-top: 8px; }
.tools { border-top: 1px solid var(--line); padding: 12px 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.filters { display: flex; gap: 28px; }
.filters button { position: relative; min-height: 44px; font-size: 13px; color: var(--muted); }
.filters button.active { color: var(--ink); }
.filters button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px; background: var(--ink); }
.filters button span { font-size: 12px; margin-left: 7px; }
.search { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.search:focus-within { border-color: var(--ink); }
.search input { width: 166px; min-height: 44px; border: 0; border-radius: 0; padding: 6px 0; background: transparent; font-size: 13px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search svg { flex-shrink: 0; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px 24px; }
.reading-card { min-width: 0; }
.card-link { display: block; }
.portrait { aspect-ratio: 4/5; background: var(--line); overflow: hidden; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: opacity 200ms ease; }
.card-link:hover .portrait img { opacity: .9; }
.card-name { font-size: clamp(24px, 1.7vw, 28px); font-weight: 500; line-height: 1.22; letter-spacing: -.015em; margin-top: 18px; }
.card-korean { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.card-work { font-size: 14px; line-height: 1.6; margin-top: 16px; }
.card-author { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 3px; }
.reference-note { margin-top: 96px; padding: 28px 0 64px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: baseline; color: var(--muted); }
.reference-note>span { font-size: 11px; letter-spacing: .08em; }
.reference-note p { font-size: 13px; line-height: 1.9; word-break: keep-all; }
#empty-state { text-align: center; padding: 96px 24px; }
#empty-state p { font-size: 18px; }
#empty-state button { min-height: 44px; font-size: 14px; text-decoration: underline; margin-top: 20px; text-underline-offset: 5px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); gap: 24px; }
.footer-wordmark { font-size: 36px; line-height: 1; letter-spacing: -.045em; }
.site-footer>span:not(:first-child) { font-size: 11px; line-height: 1.6; letter-spacing: .07em; color: var(--muted); }

dialog {
  --ink: #FBF9F7;
  --muted: #B7B4AD;
  --line: #393835;
  --focus: #FBF9F7;
  color-scheme: dark;
  border: 0;
  padding: 0;
  width: min(1200px, calc(100% - 96px));
  max-width: none;
  max-height: calc(100dvh - 64px);
  background: var(--cinema);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog::backdrop { background: rgba(11,11,11,.96); }
.reading-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 10px 28px; background: var(--cinema); gap: 24px; }
.reading-top .eyebrow { font-size: 11px; color: var(--muted); }
.reading-top button { min-height: 44px; display: flex; align-items: center; gap: 20px; }
.reading-top button span:first-child { font-size: 12px; }
.reading-top button span:last-child { font-size: 30px; line-height: 1; }
.player-frame { width: 100%; aspect-ratio: 16/9; background: var(--cinema); position: relative; }
.player-frame iframe, .mood-player iframe { display: block; border: 0; width: 100%; height: 100%; position: absolute; inset: 0; }
.reading-content { padding: 40px 48px 36px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px 48px; }
.reading-title .eyebrow { color: var(--muted); margin-bottom: 12px; }
.reading-title h2 { font-size: 46px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.reading-title>p:last-child { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.reading-work h3 { font-size: 28px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.reading-work>p { font-size: 14px; line-height: 1.8; margin-top: 10px; }
.secondary { color: var(--muted); }
.reading-note { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: 28px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.reading-note .eyebrow { font-size: 12px; color: var(--muted); letter-spacing: 0; }
.reading-note p { font-size: 15px; line-height: 1.9; word-break: keep-all; }
.reading-source { grid-column: 1/-1; display: flex; gap: 8px 28px; flex-wrap: wrap; align-items: center; font-size: 12px; line-height: 1.8; color: var(--muted); }
.reading-source a, .reading-source button { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
#copy-feedback:empty { display: none; }
.reading-next { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.reading-next>span { font-size: 12px; color: var(--muted); }
.reading-next button { min-height: 44px; font-size: 25px; line-height: 1.3; letter-spacing: -.02em; text-align: right; }
body.dialog-open { overflow: hidden; }
.direct-reading dialog::backdrop { background: var(--cinema); }

.manifesto { padding-top: 80px; padding-bottom: 96px; }
.manifesto-layout { display: grid; grid-template-columns: .72fr 1fr; gap: 72px; align-items: start; }
.manifesto h1 { font-family: var(--type); font-size: clamp(36px, 3.8vw, 62px); line-height: 1.8; font-weight: 500; letter-spacing: -.04em; margin: 0; word-break: keep-all; }
.manifesto h1 span, .manifesto-lines span { display: block; }
.manifesto-copy { min-width: 0; font-family: var(--type); font-weight: 500; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.85; color: var(--muted); word-break: keep-all; }
.manifesto-copy p+p { margin-top: 30px; }
.poetica-signature { font-family: var(--type); font-weight: 500; font-size: 1.12em; letter-spacing: -.025em; }
.manifesto-copy .manifesto-signature { font-size: 27px; margin-top: 32px; }
.mood-reference { display: grid; grid-template-columns: 1fr 1.65fr; gap: 64px; margin-top: 112px; padding-top: 40px; border-top: 1px solid var(--line); align-items: center; }
.mood-reference h2 { font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; margin: 16px 0; }
.mood-reference p:not(.eyebrow) { font-size: 14px; line-height: 1.9; }
.mood-reference .secondary { margin-top: 20px; }
.mood-reference a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.mood-player { position: relative; aspect-ratio: 16/9; background: var(--cinema); }

.introduction h1, .filters, .search, .card-korean, .reference-note p, #empty-state, .reading-title>p:last-child, #reading-context, .reading-note, .reading-source, .reading-next>span, .reading-top button, .mood-reference p:not(.eyebrow), .mood-reference a {
  font-family: var(--type);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .gallery { gap: 56px 20px; }
  .card-name { font-size: 24px; }
  .edition span { max-width: 165px; }
  .reading-content { padding: 32px; gap: 32px; }
  .reading-title h2 { font-size: 38px; }
  .mood-reference { gap: 40px; }
  .manifesto-layout { gap: 40px; }
}

@media (max-width: 1000px) {
  .manifesto-layout { grid-template-columns: 1fr; gap: 48px; }
  .manifesto-copy { max-width: 720px; font-size: 18px; }
}

@media (max-width: 760px) {
  :root { --gutter: 22px; }
  .site-header { padding-top: 28px; padding-bottom: 28px; gap: 24px; }
  .wordmark { font-size: 64px; }
  .site-header nav { gap: 22px; }
  .site-header nav a { font-size: 11px; letter-spacing: .045em; }
  .introduction { padding: 40px 0 28px; display: block; }
  .introduction .eyebrow { font-size: 11px; margin-bottom: 14px; }
  .introduction h1 { font-size: 24px; }
  .edition { text-align: left; margin-top: 20px; font-size: 10px; color: var(--muted); }
  .edition span { display: none; }
  .tools { padding: 8px 0 24px; gap: 16px; }
  .filters { gap: 22px; }
  .filters button { font-size: 13px; }
  .search { gap: 8px; }
  .search input { width: 118px; font-size: 13px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 16px; }
  .card-name { font-size: 23px; margin-top: 14px; }
  .card-korean { font-size: 12px; }
  .card-work { font-size: 13px; line-height: 1.65; margin-top: 12px; }
  .card-author { font-size: 12px; }
  .reference-note { margin-top: 64px; padding: 24px 0 40px; display: block; }
  .reference-note p { font-size: 13px; margin-top: 16px; }
  .reference-note p br { display: none; }
  .site-footer { padding-top: 28px; padding-bottom: 32px; flex-wrap: wrap; gap: 20px; }
  .footer-wordmark { font-size: 34px; width: 100%; }
  .site-footer>span:not(:first-child) { font-size: 10px; }
  dialog { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; }
  .reading-top { padding: 8px 22px; }
  .reading-content { grid-template-columns: 1fr; padding: 32px 22px; gap: 32px; }
  .reading-title h2 { font-size: 39px; }
  .reading-work h3 { font-size: 28px; }
  .reading-note { display: block; padding-top: 24px; }
  .reading-note p { margin-top: 16px; font-size: 15px; }
  .reading-source { gap: 6px 24px; }
  .reading-source>span:first-child { width: 100%; }
  .reading-next { gap: 16px; }
  .reading-next button { font-size: 23px; }
  .manifesto { padding-top: 48px; padding-bottom: 64px; }
  .manifesto-layout { gap: 36px; }
  .manifesto h1 { font-size: clamp(32px, 5.5vw, 44px); margin: 0; line-height: 1.65; }
  .manifesto-copy { font-size: 16px; line-height: 1.9; }
  .manifesto-copy p+p { margin-top: 26px; }
  .manifesto-copy .manifesto-signature { font-size: 25px; }
  .mood-reference { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; padding-top: 32px; }
  .mood-reference h2 { font-size: 30px; }
}

@media (max-width: 420px) {
  .wordmark { font-size: 56px; }
  .site-header { gap: 16px; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 10px; }
  .introduction h1 { font-size: 22px; }
  .filters { gap: 18px; }
  .search input { width: 104px; }
  .card-name { font-size: 22px; }
}

@media (max-width: 359px) {
  :root { --gutter: 20px; }
  .site-header { flex-wrap: wrap; gap: 12px; }
  .site-header nav { margin-left: auto; }
  .tools { flex-wrap: wrap; }
  .search { width: 100%; }
  .search input { width: 100%; }
  .card-name { font-size: 20px; }
}

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