/* 쿠폰노트 — 지면처럼 읽히는 노트. 명조 제목, 각진 모서리, 굵은 가로줄 */
:root {
  --ink: #1c211e;
  --ink-2: #39423c;
  --muted: #5b665f;
  --paper: #ffffff;
  --tint: #f2f5f2;
  --rule: #1c211e;
  --hair: #d5ddd7;
  --green: #1d5b3a;
  --green-dark: #143f29;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --page: 900px;
  --col: 844px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.85 var(--sans); word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--serif); font-weight: 900; letter-spacing: -0.02em; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.45; font-weight: 700; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
table { width: 100%; border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.visually_hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.glyph { display: none; }

.column { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 28px; }
.column.slim { max-width: calc(var(--col) + 56px); }

/* 버튼: 각진 사각형 */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 24px; font: 700 16px/1.3 var(--sans); text-decoration: none; text-align: center; border: 2px solid var(--green); cursor: pointer; }
.button_primary { background: var(--green); color: #fff; }
.button_primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.button_line { background: #fff; color: var(--green); }
.button_line:hover { background: var(--tint); }
.button_sm { min-height: 40px; padding: 7px 16px; font-size: 15px; }
.copy_ref { color: var(--green); font-weight: 700; }

/* 머리말 */
.mast { background: #fff; border-bottom: 2px solid var(--rule); }
.mast_inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 92px; }
.edition { font-size: 15px; color: var(--muted); }
.plate { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 30px/1 var(--serif); letter-spacing: -0.03em; white-space: nowrap; }
.plate_mark { width: 34px; height: 34px; flex-shrink: 0; }
.plate_mark .lm-page { fill: var(--green); }
.plate_mark .lm-line { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; fill: none; }
.mast_side { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.shop_link { font-weight: 700; color: var(--green); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.toc_button { display: none; min-height: 40px; padding: 6px 14px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: 700 15px var(--sans); cursor: pointer; }
.toc { border-top: 2px solid var(--hair); }
.toc_row { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 40px; padding-top: 10px; padding-bottom: 10px; }
.toc_row a { text-decoration: none; font-weight: 500; padding: 4px 0; }
.toc_row a:hover, .toc_row a[aria-current="page"] { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.toc_shop { display: none; }

/* 섹션: 굵은 줄로 시작 */
.chapter { padding: 56px 0 8px; }
.chapter > .column > h2, .passage > h2 { padding-top: 18px; border-top: 3px solid var(--rule); font-size: clamp(24px, 3vw, 30px); margin-bottom: 18px; }
.body_copy { margin-top: 14px; color: var(--ink-2); }
.trail { padding-top: 22px; font-size: 15px; color: var(--muted); }
.trail a { color: var(--muted); }

/* 첫 화면 */
.cover { padding: 64px 0 24px; }
.cover_center { text-align: center; }
.cover h1 { font-size: clamp(36px, 8vw, 72px); white-space: nowrap; line-height: 1.1; letter-spacing: -0.035em; }
.cover_facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 32px auto 0; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.cover_facts div { padding: 14px 10px; }
.cover_facts div + div { border-left: 2px solid var(--hair); }
.cover_facts dt { font-size: 14px; color: var(--muted); }
.cover_facts dd { font-weight: 700; }
.cover_lead { max-width: 34em; margin: 26px auto 0; font-size: 18px; color: var(--ink-2); }
.cover_actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* 쿠폰 목록: 작은 정사각 사진 + 글 */
.note_items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.note_item { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 2px solid var(--hair); }
.ni_photo img { width: 128px; height: 128px; object-fit: cover; }
.ni_body h3 { font-size: 18px; }
.ni_body h3 a { text-decoration: none; }
.ni_body h3 a:hover { text-decoration: underline; }
.ni_rate { font: 900 24px/1.3 var(--serif); color: var(--green); margin-top: 2px; }
.ni_brief { font-size: 15px; color: var(--muted); }
.ni_body .button { margin-top: 10px; min-height: 40px; padding: 6px 14px; font-size: 15px; }

.grid_scroll { overflow-x: auto; }
.note_grid th, .note_grid td { padding: 14px 10px; text-align: left; border-bottom: 2px solid var(--hair); }
.note_grid thead th { font-size: 14px; color: var(--muted); border-bottom-color: var(--rule); }
.ct_rate { font-weight: 700; color: var(--green); white-space: nowrap; }
.ct_go { text-align: right; white-space: nowrap; width: 1%; }
.note_numbered li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 2px solid var(--hair); }
.cn_no { font: 900 26px var(--serif); color: var(--green); }
.cn_brief { color: var(--muted); font-size: 15px; }

/* 글 */
.passage { margin-top: 48px; }
.home_extra .passage:first-child, .essay_copy .passage:first-child { margin-top: 0; }
.plain_ls { margin-top: 12px; }
.plain_ls li { padding: 8px 0 8px 20px; position: relative; color: var(--ink-2); }
.plain_ls li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 8px; height: 2px; background: var(--ink); }
.how_ls { margin-top: 12px; padding-left: 22px; list-style: decimal; }
.how_ls li { padding: 6px 0; color: var(--ink-2); }
.how_ls li::marker { font-weight: 700; color: var(--green); }
.fact_grid { margin-top: 14px; font-size: 16px; font-variant-numeric: tabular-nums; }
.fact_grid th, .fact_grid td { padding: 11px 8px; text-align: left; border-bottom: 2px solid var(--hair); overflow-wrap: normal; }
.fact_grid thead th { font-size: 14px; color: var(--muted); font-weight: 500; border-bottom-color: var(--rule); }
.sum_grid th, .sum_grid td:last-child { white-space: nowrap; }

.howto { counter-reset: st; }
.howto li { counter-increment: st; position: relative; padding: 16px 0 16px 52px; border-bottom: 2px solid var(--hair); }
.howto li::before { content: counter(st); position: absolute; left: 0; top: 10px; font: 900 30px/1.2 var(--serif); color: var(--green); }
.howto p { color: var(--ink-2); }
.checks li { padding: 16px 0; border-bottom: 2px solid var(--hair); }
.checks p { color: var(--ink-2); margin-top: 2px; }

/* 문답: 펼친 채로 */
.qa { padding: 18px 0; border-bottom: 2px solid var(--hair); }
.qa h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.qa p { margin-top: 6px; color: var(--ink-2); }

.trio_set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.trio_set h3 { font: 600 21px var(--serif); }
.trio_set p { margin-top: 8px; color: var(--ink-2); }
.ref_refs a { display: block; padding: 14px 0; border-bottom: 2px solid var(--hair); text-decoration: none; }
.ref_refs strong { font-family: var(--serif); font-size: 19px; display: block; }
.ref_refs span { color: var(--muted); font-size: 15px; }
.ref_refs a:hover strong { color: var(--green); text-decoration: underline; }

/* 메뉴 페이지 */
.leaf_head { padding: 40px 0 8px; text-align: center; }
.leaf_head h1 { font-size: clamp(30px, 5vw, 48px); }
.leaf_lead { max-width: 36em; margin: 14px auto 0; color: var(--ink-2); font-size: 18px; }
.leaf_actions { margin-top: 20px; }
.essay_copy { padding-top: 56px; }
.extra_copy { padding-top: 0; }
.shop_strip { padding: 56px 0 0; }
.shop_strip .column { text-align: center; }
.shop_strip p { font: 600 20px var(--serif); margin-bottom: 14px; }
.extra_toc { padding: 56px 0; }
.extra_toc h2 { font-size: 20px; padding-top: 14px; border-top: 3px solid var(--rule); margin-bottom: 10px; }
.extra_toc ul { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.extra_toc a { font-weight: 700; color: var(--green); }

/* 쿠폰 상세: 사진 위, 글 아래 */
.sheet_cover { padding: 28px 0 0; }
.sheet_cover_inner { display: flex; flex-direction: column; gap: 26px; max-width: calc(var(--col) + 56px); }
.sheet_cover_img { order: -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sheet_cover h1 { font-size: clamp(28px, 4.4vw, 42px); }
.sheet_amount { margin-top: 8px; font: 900 26px var(--serif); color: var(--green); }
.sheet_overview { margin: 10px 0 20px; color: var(--ink-2); font-size: 18px; }
.terms_grid th, .terms_grid td { padding: 12px 8px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--hair); }
.terms_grid th { width: 120px; color: var(--muted); font-weight: 500; }
.nearby_ls a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 2px solid var(--hair); text-decoration: none; }
.nearby_ls span { color: var(--green); font-weight: 700; white-space: nowrap; }
.nearby_ls a:hover strong { text-decoration: underline; }
.return_ref { margin-top: 28px; }
.return_ref a { color: var(--green); font-weight: 700; }

.fixed_leaf h1, .missing h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.fixed_part { margin-top: 40px; }
.missing { padding: 80px 0; text-align: center; }
.missing p { margin: 8px 0 22px; color: var(--ink-2); }
.reach_mail { font-size: 20px; font-weight: 700; margin: 18px 0; }

.contents li { padding: 12px 0; border-bottom: 2px solid var(--hair); }
.contents a { font: 600 19px var(--serif); color: var(--green); }
.contents p { color: var(--ink-2); }
.overview_grid a { color: var(--green); font-weight: 700; }
.roundup_item { padding: 18px 0; border-bottom: 2px solid var(--hair); }
.roundup_item h3 { font: 600 20px var(--serif); }
.roundup_item h3 span { color: var(--green); margin-left: 6px; }
.roundup_item p { margin-top: 4px; color: var(--ink-2); }
.roundup_item .roundup_meta { font-size: 15px; color: var(--muted); }

.code_code { font: 700 .95em/1 ui-monospace, Consolas, monospace; letter-spacing: .05em; color: var(--green); background: var(--tint); padding: 3px 6px; }
.won { color: var(--muted); font-size: .9em; font-weight: 400; }
.grid_note { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* 맺음말 */
.colophon { margin-top: 72px; padding: 56px 0 44px; background: var(--tint); border-top: 3px solid var(--rule); }
.colophon_center { text-align: center; }
.colophon_center .plate { font-size: 26px; }
.colophon_tag { margin-top: 10px; color: var(--ink-2); }
.colophon_line { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 24px; margin-top: 18px; font-size: 16px; }
.colophon_line a { text-decoration: none; }
.colophon_line a:hover { text-decoration: underline; }
.colophon_line a.bold { font-weight: 700; }
.colophon_sub { font-size: 15px; color: var(--ink-2); }
.fine_print { max-width: 62em; margin: 20px auto 0; font-size: 15px; color: var(--muted); }
.imprint { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* 복사 알림 */
.notice { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 14px 20px; background: var(--ink); color: #fff; font-size: 16px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.notice.visible { opacity: 1; }

@media (max-width: 1080px) {
  .mast_inner { display: flex; min-height: 64px; gap: 12px; }
  .edition { display: none; }
  .plate { font-size: 24px; }
  .plate_mark { width: 30px; height: 30px; }
  .mast_side { margin-left: auto; }
  .toc_button { display: inline-block; }
  .scripted .toc { display: none; }
  .scripted .toc_open .toc { display: block; }
  .toc_row { flex-direction: column; gap: 0; padding-top: 4px; padding-bottom: 12px; }
  .toc_row a { padding: 12px 0; border-bottom: 2px solid var(--hair); font-size: 17px; }
}
@media (max-width: 860px) {
  .cover_facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover_facts div:nth-child(3) { border-left: 0; }
  .cover_facts div:nth-child(n+3) { border-top: 2px solid var(--hair); }
  .note_items, .trio_set { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .trio_set > div { padding: 16px 0; border-bottom: 2px solid var(--hair); }
}
@media (max-width: 600px) {
  .column { padding: 0 18px; }
  .chapter { padding-top: 44px; }
  .note_item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .ni_photo img { width: 96px; height: 96px; }
  .note_numbered li { grid-template-columns: 36px minmax(0, 1fr); }
  .note_numbered .button { grid-column: 2; justify-self: start; }
  .note_grid thead { display: none; }
  .note_grid tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; border-bottom: 2px solid var(--hair); }
  .note_grid th, .note_grid td { padding: 0; border: 0; }
  .note_grid .ct_go { grid-column: 1 / -1; text-align: left; margin-top: 8px; }
  .fact_grid { font-size: 15px; }
  .sum_grid th, .sum_grid td { padding-left: 4px; padding-right: 4px; }
  .overview_grid thead { display: none; }
  .overview_grid, .overview_grid tbody, .overview_grid tr, .overview_grid th, .overview_grid td { display: block; }
  .overview_grid tr { padding: 12px 0; border-bottom: 2px solid var(--hair); }
  .overview_grid th, .overview_grid td { padding: 0; border: 0; }
  .overview_grid td:nth-child(3), .overview_grid td:nth-child(4) { display: inline; color: var(--muted); font-size: 15px; }
  .overview_grid td:nth-child(4)::before { content: " · "; }
  .cover_actions .button { width: 100%; }
  .cover_facts dd { font-size: 15px; }
  .cover_facts div { padding: 12px 6px; }
}
@media (max-width: 379px) {
  .shop_link { display: none; }
  .toc_row .toc_shop { display: block; color: var(--green); font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) { .notice { transition: none; } }

.extras-head { margin: 32px 0 4px; font: 600 20px var(--serif); }
