/* 한장 인쇄문구 — N28 테두리 프레임 인쇄물(교정지). 책상(바탕) 위에 종이 한 장이 놓인 구조 */
:root {
  --desk: #c9c2b4;
  --paper: #fbf8f1;
  --ink: #1f2430;
  --ink-soft: #545866;
  --rule: #1f2430;
  --proof: #c4361f;
  --sky: #2f7fa6;
  --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --latin: 'Libre Bodoni', 'Gowun Batang', serif;
  --mono: 'Courier Prime', 'Gowun Batang', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.75 var(--serif);
  word-break: keep-all; overflow-wrap: break-word;
  background-color: var(--desk);
  /* 책상 위 해칭 — 종이 바깥만 */
  background-image: repeating-linear-gradient(135deg, rgba(31,36,48,.07) 0 1px, transparent 1px 7px);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.3px; }

/* ── 종이 한 장 ── */
.desk { padding: 48px 24px 64px; }
.sheet {
  position: relative; max-width: 1000px; margin: 0 auto; padding: 0 40px 28px;
  background: var(--paper); border: 1px solid var(--rule);
  outline: 1px solid var(--rule); outline-offset: -8px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 6px 8px 0 rgba(31,36,48,.12);
}
/* 재단선(크롭 마크) — 종이 바깥 모서리 */
.crop { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.crop::before, .crop::after { content: ''; position: absolute; background: var(--ink); }
.crop::before { width: 16px; height: 1px; }
.crop::after { width: 1px; height: 16px; }
.crop--tl { top: -26px; left: -26px; } .crop--tl::before { top: 22px; left: 0; } .crop--tl::after { left: 22px; top: 0; }
.crop--tr { top: -26px; right: -26px; } .crop--tr::before { top: 22px; right: 0; } .crop--tr::after { right: 22px; top: 0; }
.crop--bl { bottom: -26px; left: -26px; } .crop--bl::before { bottom: 22px; left: 0; } .crop--bl::after { left: 22px; bottom: 0; }
.crop--br { bottom: -26px; right: -26px; } .crop--br::before { bottom: 22px; right: 0; } .crop--br::after { right: 22px; bottom: 0; }

/* 맨 위 띠 */
.strip {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin: 0 -40px; padding: 16px 40px 12px; border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.strip p { margin: 0; }
.strip__where { color: var(--ink-soft); }
.strip__links { display: flex; gap: 6px; flex-shrink: 0; }
.strip__links a { padding: 3px 10px; border: 1px solid var(--rule); text-decoration: none; font-weight: 700; white-space: nowrap; }
.strip__links a:first-child { background: var(--ink); color: var(--paper); }
.strip__links a:hover { background: var(--proof); border-color: var(--proof); color: #fff; }
.open { display: inline-block; margin-right: 8px; padding: 0 7px; border: 1px solid currentColor; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.open.is-on { color: #2c7a43; }
.open.is-off { color: var(--proof); }

/* 로고·메뉴 */
.mast { padding: 34px 0 0; text-align: center; border-bottom: 3px double var(--rule); }
.mast__latin { margin: 0 0 6px; font: 500 12.5px/1 var(--latin); letter-spacing: 4px; }
.mast__name { display: inline-flex; align-items: baseline; gap: 10px; font-size: 60px; font-weight: 700; line-height: 1.1; letter-spacing: -2px; text-decoration: none; }
.mast__name span { font-size: 22px; letter-spacing: 0; }
.mast__nav { display: flex; justify-content: center; margin-top: 26px; border-top: 1px solid var(--rule); }
.mast__nav a { flex: 1; padding: 12px 6px 11px; text-decoration: none; font-size: 15px; line-height: 1.3; border-left: 1px solid var(--rule); }
.mast__nav a:first-child { border-left: 0; }
.mast__nav a:hover { background: var(--ink); color: var(--paper); }
.mast__nav i { display: block; font: 700 11px/1.4 var(--latin); font-style: normal; letter-spacing: 2.5px; color: var(--ink-soft); }
.mast__nav a:hover i { color: inherit; }

/* 머리글 */
.lead { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 40px 0 32px; align-items: start; }
.eyebrow { margin: 0 0 14px; font: 400 14px/1.4 var(--serif); letter-spacing: .5px; color: var(--ink-soft); }
.lead h1 { font-size: 38px; line-height: 1.38; letter-spacing: -1px; }
.lead__text > p:not(.eyebrow):not(.proof) { margin: 18px 0 0; max-width: 540px; color: var(--ink-soft); font-size: 17px; }
/* 교정 메모 — 빨간 펜 */
.proof { margin: 18px 0 0; font: 700 14.5px/1.5 var(--serif); color: var(--proof); }
.proof::before { content: '※ '; }

.card { border: 1px solid var(--rule); background: var(--paper); }
.card--today { padding: 20px 22px 22px; }
.card__h { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-size: 15px; letter-spacing: 1px; }
.card--today dl { margin: 0 0 16px; }
.card--today dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dotted var(--ink-soft); font-size: 15px; }
.card--today dt { color: var(--ink-soft); }
.card--today dd { margin: 0; text-align: right; }
.card--today .btn { width: 100%; margin-top: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
  font: 700 15px/1.3 var(--serif); text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--proof); border-color: var(--proof); }

/* 판(사진) — 테두리 안 사진 + 그림 번호 */
.plate { margin: 0; padding: 10px; border: 1px solid var(--rule); background: var(--paper); }
.plate img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.plate figcaption { padding: 10px 2px 0; font-size: 14px; color: var(--ink-soft); }
.plate figcaption span { margin-right: 10px; font: 700 12px/1 var(--latin); letter-spacing: 2px; color: var(--ink); }

/* 섹션 공통 — 상하 괘선 */
.sec { padding: 52px 0 8px; }
.sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 22px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.sec__head h2 { font-size: 26px; }
.sec__head p { margin: 0; font-size: 14px; color: var(--ink-soft); text-align: right; }

/* 인쇄 차림표 */
.menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.item { display: flex; flex-direction: column; padding: 18px 20px 16px; }
.item h3 { font-size: 20px; margin-bottom: 8px; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 15px; }
.rows li span { flex-shrink: 1; }
.rows li::after { content: ''; order: 1; flex: 1; min-width: 14px; border-bottom: 1px dotted var(--ink-soft); }
.rows li b { order: 2; font: 700 15px/1.4 var(--mono); white-space: nowrap; }
.item__note { margin: 10px 0 14px; font-size: 13.5px; color: var(--ink-soft); }
.item__ask { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.item__ask:hover { color: var(--proof); }

/* 문구 */
.sec--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.plate--small img { aspect-ratio: 4 / 3; }
.paper { padding: 24px 26px; }
.paper h2 { font-size: 26px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.paper > p:not(.proof) { margin: 0 0 14px; color: var(--ink-soft); }
.tick { margin: 0; padding: 0; list-style: none; }
.tick li { padding: 8px 0; border-bottom: 1px dotted var(--ink-soft); font-size: 15.5px; }
.tick li::before { content: '□ '; font-family: var(--mono); color: var(--ink-soft); }

/* 주문 순서 */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 24px; padding: 0; list-style: none; }
.steps li { position: relative; padding: 18px 18px 20px; margin-left: -1px; }
.steps li:first-child { margin-left: 0; }
.steps b { display: block; margin-bottom: 8px; font: 700 34px/1 var(--latin); }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.plate--wide img { aspect-ratio: 16 / 6; }

/* 소식 */
.news { margin: 0; padding: 4px 22px; list-style: none; }
.news li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px dotted var(--ink-soft); }
.news li:last-child { border-bottom: 0; }
.news time { font: 700 15px/1.75 var(--mono); color: var(--proof); }
.news p { margin: 0; }

/* 오시는 길 */
.visit { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours caption { padding: 12px 18px; text-align: left; font-weight: 700; border: 1px solid var(--rule); border-bottom: 0; background: var(--ink); color: var(--paper); }
.hours th, .hours td { padding: 10px 18px; border-top: 1px dotted var(--ink-soft); text-align: left; font-weight: 400; }
.hours th { color: var(--ink-soft); }
.hours td { text-align: right; }
.where { padding: 18px 22px 22px; }
.where p { margin: 0 0 10px; }
.where b { display: inline-block; min-width: 56px; margin-right: 6px; }
.where__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* 하단 3열 */
.colophon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 56px 0 0; border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); }
.colophon__col { padding: 24px 22px 26px; }
.colophon__col + .colophon__col { border-left: 1px solid var(--rule); }
.colophon h2 { margin-bottom: 10px; font: 700 13px/1.4 var(--latin); letter-spacing: 2px; }
.colophon p { margin: 0 0 12px; font-size: 15px; color: var(--ink-soft); }
.colophon p a { color: var(--ink); font-weight: 700; }
.colophon__col--mid { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.colophon__tel { font: 700 28px/1.3 var(--mono); text-decoration: none; }
.colophon__col--mid .btn { margin-top: 10px; }

/* 판권 */
.foot { padding: 18px 0 0; font-size: 13px; color: var(--ink-soft); }
.foot p { margin: 0 0 4px; }
.foot__ed { letter-spacing: .5px; }
.foot__bar { display: flex; gap: 0; margin-bottom: 12px; }
.foot__bar i { width: 18px; height: 10px; }
.foot__bar i:nth-child(1) { background: #2aa5d6; }
.foot__bar i:nth-child(2) { background: #d63c86; }
.foot__bar i:nth-child(3) { background: #f1cf2b; }
.foot__bar i:nth-child(4) { background: #1f2430; }

/* 퀵메뉴 — PC 오른쪽 세로 */
.quick { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; width: 92px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 4px 5px 0 rgba(31,36,48,.14); }
.quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; padding: 8px 4px; text-decoration: none; text-align: center; border-top: 1px solid var(--rule); }
.quick a:first-child { border-top: 0; background: var(--ink); color: var(--paper); }
.quick a:hover { background: var(--proof); color: #fff; }
.quick b { font-size: 14px; line-height: 1.3; }
.quick span { font: 400 11.5px/1.3 var(--serif); opacity: .8; }

@media (max-width: 1240px) {
  .desk { padding-left: 40px; }
  .sheet { margin-right: 110px; margin-left: auto; }
}

@media (max-width: 1023px) {
  .sheet { margin: 0 auto; }
  .quick { top: auto; bottom: 0; left: 0; right: 0; transform: none; flex-direction: row; width: auto; border: 0; border-top: 1px solid var(--rule); box-shadow: none; padding-bottom: env(safe-area-inset-bottom); }
  .quick a { flex: 1; min-height: 56px; border-top: 0; border-left: 1px solid var(--rule); }
  .quick a:first-child { border-left: 0; }
  .quick__top { display: none !important; }
  .desk { padding: 48px 36px 96px; }
  .lead { grid-template-columns: minmax(0, 1fr); }
  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(odd) { margin-left: 0; }
  .steps li:nth-child(n+3) { margin-top: -1px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .desk { padding: 14px 8px 88px; }
  .crop { display: none; }
  .sheet { padding: 0 16px 20px; outline-offset: -5px; box-shadow: 3px 4px 0 rgba(31,36,48,.12); }
  .strip { flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 -16px; padding: 14px 16px 12px; font-size: 13.5px; }
  .strip__links { flex-wrap: wrap; }
  .mast { padding-top: 26px; }
  .mast__name { font-size: 46px; }
  .mast__name span { font-size: 18px; }
  .mast__nav { flex-wrap: wrap; margin: 20px -16px 0; }
  .mast__nav a { flex: 1 1 33.33%; border-left: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 14px; padding: 9px 4px; }
  .mast__nav a:nth-child(3), .mast__nav a:last-child { border-right: 0; }
  .mast__nav a:nth-child(n+4) { flex-basis: 50%; border-bottom: 0; }
  .mast { border-bottom-width: 3px; }
  .lead { padding: 28px 0 24px; gap: 24px; }
  .lead h1 { font-size: 27px; }
  .lead__text > p:not(.eyebrow):not(.proof) { font-size: 16px; }
  .plate { padding: 6px; }
  .plate img, .plate--wide img { aspect-ratio: 4 / 3; }
  .sec { padding-top: 40px; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sec__head h2 { font-size: 23px; }
  .sec__head p { text-align: left; font-size: 13.5px; }
  .menu, .steps, .sec--split, .visit, .colophon { grid-template-columns: minmax(0, 1fr); }
  .steps li { margin-left: 0; }
  .steps li + li { margin-top: -1px; }
  .steps b { font-size: 28px; }
  .paper { padding: 20px 18px; }
  .where b { display: block; margin-bottom: 2px; }
  .news { padding: 4px 16px; }
  .news li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .colophon { margin-top: 40px; }
  .colophon__col + .colophon__col { border-left: 0; border-top: 1px solid var(--rule); }
  .colophon__col { padding: 20px 4px; }
  .colophon__col--mid { align-items: flex-start; text-align: left; }
}
.nw { white-space: nowrap; }
