:root {
  color-scheme: light;
  --paper: #f4f2ed;
  --ink: #171815;
  --muted: #6e716b;
  --line: #d8d6cf;
  --red: #d84b3f;
  --green: #395f4a;
  --white: #fff;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244,242,237,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.site-header .shell { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: Georgia, serif; font-size: 22px; font-weight: 700; letter-spacing: 0; }
.brand small { margin-left: 9px; color: var(--muted); font: 500 11px/1 sans-serif; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }
.platform-hero { min-height: 50vh; padding: 72px 0 56px; display: grid; align-items: end; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 16px; color: var(--red); font-size: 12px; font-weight: 700; text-transform: uppercase; }
h1,h2,h3,p { overflow-wrap: anywhere; }
h1 { max-width: 820px; margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(42px, 6vw, 78px); line-height: 1.04; letter-spacing: 0; }
.hero-copy { max-width: 660px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.section { padding: 64px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 34px; letter-spacing: 0; }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.65; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line); }
.project { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.project:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.project-visual { aspect-ratio: 16/10; overflow: hidden; background: #20211f; }
.project-visual img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.project:hover img { transform: scale(1.025); }
.project-placeholder { height: 100%; display: grid; place-items: center; color: #dfe5dd; background: #223229; font: 700 12px/1 sans-serif; text-transform: uppercase; }
.project-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.project h2 { margin: 10px 0 8px; font-family: Georgia, serif; font-size: 28px; }
.project p { margin: 0; color: var(--muted); line-height: 1.65; }
.archive-hero { padding: 64px 0 42px; border-bottom: 1px solid var(--line); }
.archive-hero h1 { font-size: clamp(40px,6vw,70px); }
.archive-stats { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 20px; }
.card { min-width: 0; }
.card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #ddd; }
.card-media.landscape { aspect-ratio: 4/3; }
.card-media img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.025); }
.card-index { position: absolute; left: 10px; bottom: 10px; padding: 5px 7px; background: rgba(20,20,18,.82); color: #fff; font-size: 11px; }
.card h2,.card h3 { margin: 13px 0 5px; font-family: Georgia,"Noto Serif KR",serif; font-size: 22px; letter-spacing: 0; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; }
.card .meta { margin-top: 8px; color: var(--green); font-size: 12px; font-weight: 700; }
.issue-head { padding: 54px 0 34px; }
.issue-head h1 { font-size: clamp(38px,5vw,68px); }
.issue-head .subtitle { margin: 14px 0 0; color: var(--red); font-weight: 700; }
.issue-head .description { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.story-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 44px 20px; padding-bottom: 72px; }
.story:nth-child(3n+1) { grid-column: 1/-1; }
.story figure { margin: 0; }
.story img { max-height: 82vh; object-fit: cover; background: #ddd; }
.story h2 { margin: 14px 0 6px; font-family: Georgia,"Noto Serif KR",serif; font-size: 25px; }
.story p { margin: 0; max-width: 720px; color: var(--muted); line-height: 1.65; white-space: pre-line; }
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.button.secondary { background: transparent; color: var(--ink); }
.preview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.preview-grid figure { margin: 0; }
.preview-grid img { aspect-ratio: 4/5; object-fit: cover; background: #ddd; }
.preview-grid figcaption { padding-top: 8px; color: var(--muted); font-size: 12px; }
.locked-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 28px; }
.locked-grid figure { position: relative; margin: 0; }
.locked-grid img { aspect-ratio: 4/5; object-fit: cover; }
.locked-grid span { position: absolute; left: 8px; bottom: 8px; padding: 4px 6px; color: white; background: rgba(0,0,0,.72); font-size: 10px; }
.notice { margin: 26px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.65; }
.site-footer { padding: 32px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 24px; }
dialog { width: min(520px,calc(100% - 32px)); padding: 0; border: 0; background: var(--white); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(20,20,18,.62); }
.dialog-inner { padding: 28px; }
.dialog-close { float: right; border: 0; background: transparent; font-size: 25px; cursor: pointer; }
.dialog-inner h2 { margin: 8px 0 10px; font-family: Georgia,"Noto Serif KR",serif; font-size: 28px; }
.dialog-inner p { color: var(--muted); line-height: 1.65; }
.email-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.email-row button { border: 0; background: transparent; color: var(--green); cursor: pointer; }
.empty { padding: 70px 0; color: var(--muted); }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header .shell { min-height: 58px; }
  .brand small { display: none; }
  .nav { gap: 14px; font-size: 12px; overflow-x: auto; }
  .platform-hero { min-height: 44vh; padding: 46px 0 36px; }
  h1 { font-size: 42px; }
  .hero-copy { font-size: 15px; }
  .section { padding: 42px 0; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 28px; }
  .section-heading p { margin-top: 10px; }
  .project-grid { grid-template-columns: 1fr; }
  .project,.project:nth-child(even) { padding: 22px 0 28px; border-left: 0; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 10px; }
  .card h2,.card h3 { font-size: 18px; }
  .story-grid { grid-template-columns: 1fr; gap: 34px; }
  .story:nth-child(3n+1) { grid-column: auto; }
  .story img { max-height: none; }
  .preview-grid { grid-template-columns: 1fr; }
  .locked-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-footer .shell { display: block; }
}
