@charset "UTF-8";
:root { color-scheme: light; --paper: #fafaf8; --ink: #222522; --muted: #636863; --line: #d7dad5; --accent: #8b4a58; --surface: #fffefa; --input: #fff; --soft: #f0f0e9; --on-accent: #fff; --error: #aa382a; }
:root[data-theme="dark"] { color-scheme: dark; --paper: #191c1a; --ink: #eeeee8; --muted: #b0b6af; --line: #3d443e; --accent: #d5a0ad; --surface: #222623; --input: #191d1a; --soft: #2c322d; --on-accent: #2a1c21; --error: #f2a99c; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", "Malgun Gothic", sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; left: 16px; top: -80px; padding: 12px; background: var(--surface); z-index: 20; }
.skip-link:focus { top: 16px; }
.site-header, main, .site-footer { max-width: 1600px; margin-inline: auto; padding-inline: 5.5%; }
main { min-height: calc(100svh - 108px); }
.site-header { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; min-height: 108px; gap: 12px 20px; padding-block: 16px; }
.site-header .header-actions { justify-self: end; flex-wrap: nowrap; }
[data-theme-control] { display: inline-flex; width: 44px; height: 44px; flex: 0 0 44px; }
@media(max-width:1100px) { .site-header { grid-template-columns: minmax(0,1fr) auto; } .site-header .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; } }
.wordmark { font-family: Georgia, serif; font-size: clamp(1.75rem, 3.3vw, 2.75rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.1; white-space: nowrap; }
.wordmark-dot { color: var(--accent); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.site-nav a { font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 8px; }
.site-nav a:hover { color: var(--ink); }
.photo-exif { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px 18px; font-size: .8125rem; line-height: 1.6; margin: 20px 0; }
.photo-exif dt { color: var(--muted); }
.photo-exif dd { color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.photo-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.photo-tags a { font-size: .75rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: 20px; color: var(--accent); }
.photo-tags a:hover { border-color: var(--accent); }
@media(max-width:700px) { .site-nav { width: 100%; justify-content: center; border-top: 1px solid var(--line); gap: 8px 16px; padding-top: 6px; } .site-nav a { font-size: .8125rem; } }
.header-note { font-size: .75rem; letter-spacing: .15em; color: var(--muted); }
.header-link { font-size: .875rem; display: flex; gap: 18px; align-items: center; }
.header-link span[aria-hidden] { color: var(--accent); font-size: 1.5rem; }
.header-actions, .viewer-actions { display: flex; align-items: center; gap: 26px; }
.language-switch { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.language-switch button { min-height: 44px; min-width: 44px; padding: 8px; background: transparent; border: 0; color: var(--muted); font-size: .875rem; white-space: nowrap; }
.language-switch button[aria-pressed="true"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.language-switch button:hover { color: var(--accent); }
.theme-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.theme-button svg { width: 20px; height: 20px; pointer-events: none; }
.theme-button:hover { color: var(--accent); border-color: var(--accent); }
.theme-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.header-actions { flex-wrap: wrap; gap: 12px 20px; }
@media (max-width: 1200px) { .header-note { display: none; } }
html[lang="en"] h1 { font-family: Georgia, serif; letter-spacing: -.045em; }
html[lang="en"] .viewer-notes h2, html[lang="en"] .closing-note p { font-family: Georgia, serif; }
.introduction { border-top: 1px solid var(--line); padding: 72px 0 86px; display: grid; grid-template-columns: 1fr 3fr 1.25fr; gap: 24px; align-items: end; }
.eyebrow { font-size: .75rem; letter-spacing: .13em; font-weight: 600; }
.intro-side { align-self: start; padding-top: 10px; display: flex; flex-direction: column; gap: 23px; }
.little-line { width: 27px; height: 2px; background: var(--accent); }
h1 { font-family: "Batang", "Noto Serif KR", Georgia, serif; font-size: clamp(2.5rem, 4.3vw, 4.5rem); font-weight: 400; margin: 0 0 22px; line-height: 1.25; letter-spacing: -.055em; }
.intro-copy p { color: var(--muted); margin: 0; line-height: 1.8; }
.edition { font-size: .75rem; line-height: 2; color: var(--accent); text-align: right; letter-spacing: .05em; }
.edition span { color: var(--muted); letter-spacing: 0; }
.edition .edition-volume { color: var(--accent); }
.photo-section { scroll-margin-top: 24px; padding-bottom: clamp(48px,6vw,80px); }
.gallery > .photo-card:last-child { margin-bottom: 0; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; border-top: 1px solid var(--ink); }
.section-heading h2 { margin: 0; font-size: .875rem; font-weight: 500; }
.section-heading h2 .section-subtitle { margin-left: 20px; font-size: .75rem; letter-spacing: .08em; color: var(--muted); }
.preview-label { font-size: .75rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 22px; row-gap: 80px; padding-top: 8px; }
.gallery .loading-frame { aspect-ratio: 3/2; background: var(--soft); }
.gallery [aria-hidden="true"]::after { content: ''; display: block; height: 32px; }
.card-1, .card-5 { grid-column: 1 / 8; }
.card-2, .card-6 { grid-column: 9 / 13; margin-top: 80px; }
.card-3 { grid-column: 1 / 5; }
.card-4 { grid-column: 6 / 13; margin-top: 100px; }
.photo-button { display: block; border: 0; padding: 0; width: 100%; background: none; text-align: left; }
.photo-frame { width: 100%; aspect-ratio: var(--photo-ratio); overflow: hidden; position: relative; background: var(--frame-bg); color: var(--frame-ink); }
.tone-stone { --frame-bg: #e5e5df; --frame-ink: #65675e; }
.tone-blue { --frame-bg: #dfe6ec; --frame-ink: #5b6873; }
.tone-silver { --frame-bg: #e4e6e7; --frame-ink: #656b6e; }
.tone-ink { --frame-bg: #343d42; --frame-ink: #c1c9ce; }
:root[data-theme="dark"] .tone-stone { --frame-bg: #30352f; --frame-ink: #c2c8bd; }
:root[data-theme="dark"] .tone-blue { --frame-bg: #2b353d; --frame-ink: #bdcbd5; }
:root[data-theme="dark"] .tone-silver { --frame-bg: #343938; --frame-ink: #c5cdca; }
:root[data-theme="dark"] .tone-ink { --frame-bg: #242c30; --frame-ink: #b9c5ca; }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
.frame-top, .frame-bottom { font-family: "Consolas", monospace; font-size: .75rem; letter-spacing: .1em; }
.frame-bottom { display: flex; justify-content: space-between; gap: 12px; }
.frame-center { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; font-size: .875rem; }
.frame-outline { width: 40px; height: 29px; border: 1px solid currentColor; opacity: .65; transition: transform .25s ease; }
.photo-button:hover .frame-outline { transform: scale(1.16); }
.photo-button:hover .photo-frame { filter: brightness(.98); }
.photo-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-caption { display: flex; align-items: baseline; gap: 13px; padding-top: 15px; }
.card-caption > span:first-child { font-family: "Consolas", monospace; font-size: .75rem; color: var(--accent); }
.card-caption h3 { margin: 0; font-size: .875rem; font-weight: 500; }
.card-status { margin-left: auto; font-size: .75rem; color: var(--muted); }
.closing-note { text-align: center; padding: 110px 0 96px; }
.note-mark { color: var(--accent); font-family: Georgia, serif; font-size: 1.5rem; }
.closing-note p { font-family: "Batang", Georgia, serif; font-size: 1.75rem; margin: 24px 0 14px; }
.closing-note > span:last-child { font-size: .875rem; color: var(--muted); line-height: 1.8; }
.site-footer { position: relative; padding-block: 34px 42px; display: flex; justify-content: space-between; gap: 24px; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 5.5%; right: 5.5%; height: 1px; background: var(--line); }
.footer-wordmark { font: bold 1.75rem Georgia, serif; letter-spacing: -.06em; }
.site-footer p, .footer-right { font-size: .75rem; color: var(--muted); line-height: 1.9; }
.site-footer p { margin: 10px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 8px; }
.footer-links a { display: inline-block; padding-block: 6px; font-size: .75rem; line-height: 1.6; color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.about-copy { max-width: 640px; padding-bottom: clamp(56px,8vw,100px); }
.about-copy p { color: var(--muted); font-size: 1rem; line-height: 2; margin: 0 0 24px; word-break: keep-all; overflow-wrap: anywhere; }
.about-copy .about-signature { margin-top: 36px; color: var(--ink); font-size: .875rem; }
.footer-right { display: flex; flex-direction: column; justify-content: end; text-align: right; }
.viewer-open { overflow: hidden; }
dialog { width: calc(100% - 64px); max-width: 1500px; max-height: calc(100dvh - 48px); padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; }
dialog::backdrop { background: rgb(15 20 24 / .8); backdrop-filter: blur(7px); }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 28px; border-bottom: 1px solid var(--line); }
.viewer-brand { font: bold 1.75rem Georgia, serif; letter-spacing: -.05em; }
.viewer-counter { font: .875rem "Consolas", monospace; color: var(--muted); }
.icon-button { width: 44px; height: 44px; background: transparent; border: 0; font-size: 2rem; }
.viewer-body { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(230px, 1fr); gap: 40px; padding: 32px; align-items: center; }
.viewer-image { --viewer-max-height: 65dvh; min-width: 0; display: flex; justify-content: center; align-items: center; }
/* Limit width by both the container and the height budget, so aspect-ratio
   determines the height without flex growth stretching portrait frames. */
.enlarged-frame { width: min(100%, calc(var(--viewer-max-height) * var(--photo-ratio))); max-width: 100%; flex: 0 1 auto; }
.viewer-notes { padding: 18px 12px 18px 0; }
.viewer-notes .eyebrow { color: var(--accent); }
.viewer-notes h2 { font: 400 2rem/1.4 "Batang", Georgia, serif; margin: 22px 0; letter-spacing: -.04em; }
.viewer-notes > p { color: var(--muted); font-size: 1rem; line-height: 1.9; word-break: keep-all; white-space: pre-line; }
.detail-meta, .detail-rights { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; }
.detail-meta > span, .detail-rights > span { font-size: .875rem; }
.detail-meta p, .detail-rights p { font-size: .875rem; line-height: 1.9; color: var(--muted); white-space: pre-line; }
.viewer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; border-top: 1px solid var(--line); gap: 20px; }
.viewer-bottom > span { font-size: .875rem; color: var(--muted); }
.viewer-navigation { display: flex; gap: 12px; }
.viewer-navigation button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); background: transparent; font-size: .875rem; }
.viewer-navigation button:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.viewer-navigation button:disabled { opacity: .35; cursor: default; }
@media (min-width: 1700px) { .introduction { padding-block: 86px 100px; } }
@media (max-width: 900px) {
  .header-note { display: none; }
  .introduction { grid-template-columns: 1fr 3fr; padding: 50px 0 60px; }
  .edition { display: none; }
  .gallery { gap: 44px 18px; }
  .card-1, .card-3, .card-5 { grid-column: 1 / 7; }
  .card-2, .card-4, .card-6 { grid-column: 7 / 13; margin-top: 65px; }
  .card-caption { flex-wrap: wrap; gap: 8px; }
  .card-status { flex-basis: 100%; margin-left: 24px; }
  .viewer-body { grid-template-columns: minmax(0, 1fr); gap: 15px; padding: 22px; }
  .viewer-image { --viewer-max-height: 50dvh; }
  .viewer-notes { padding: 12px 0 0; }
  .viewer-notes h2 { margin: 14px 0; }
}
@media (max-width: 580px) {
  .site-header, main, .site-footer { padding-inline: 22px; }
  .site-header { min-height: 88px; height: auto; padding-block: 16px; flex-wrap: wrap; gap: 8px 14px; }
  .header-actions { gap: 12px; }
  .header-link { gap: 6px; }
  .viewer-toolbar { flex-wrap: wrap; gap: 8px 14px; }
  .viewer-actions { gap: 8px; margin-left: auto; }
  .wordmark { font-size: 1.9rem; }
  .introduction { grid-template-columns: 1fr; gap: 25px; padding: 38px 0 42px; }
  .intro-side { flex-direction: row; align-items: center; padding: 0; }
  h1 { font-size: 2.6rem; margin-bottom: 15px; }
  .section-heading { gap: 10px; }
  .section-heading h2 .section-subtitle { display: none; }
  .gallery { display: block; }
  .photo-card { margin: 0 0 38px; }
  .card-2, .card-3, .card-6 { width: 82%; margin-left: auto; }
  .card-3 { margin-left: 0; }
  .placeholder { padding: 19px; }
  .card-caption { flex-wrap: wrap; }
  .card-status { flex-basis: auto; margin-left: auto; }
  .closing-note { padding: 45px 0 65px; }
  .site-footer { flex-direction: column; padding-block: 28px; }
  .site-footer::before { left: 22px; right: 22px; }
  .footer-right { text-align: left; }
  dialog { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; }
  .viewer-toolbar { padding-inline: 20px; }
  .viewer-body { padding: 20px; }
  .viewer-bottom { padding: 15px 20px; }
  .viewer-bottom > span { display: none; }
  .viewer-navigation { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width:440px) {
  .site-header .wordmark { font-size: 1.25rem; }
  .site-header .header-actions { gap: 6px; }
  .site-header .language-switch button { min-width: 36px; padding-inline: 4px; font-size: .75rem; }
  .site-header [data-theme-control], .site-header .theme-button { width: 40px; flex-basis: 40px; }
}
@media (max-width:360px) { .site-header .wordmark { font-size: 1rem; } }
