/* 큰글씨 마당 — 화면은 크고 또렷하게, 인쇄는 활동지만 */
:root { --bg: #fffdf7; --card: #ffffff; --ink: #161616; --muted: #4a4a4a; --line: #d9d3c4; --pri: #0d5c4a; --pri-ink: #ffffff; --pri-soft: #e5f1ec; --acc: #9c3d21; --focus: #ffbf47; color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 19px/1.65 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--pri); text-underline-offset: 3px; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 14px; z-index: 9; } .skip:focus { left: 8px; }
header.top { background: var(--card); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 25px; color: var(--ink); text-decoration: none; letter-spacing: -0.5px; }
.logo svg { width: 38px; height: 38px; flex: none; }
nav.main { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; font-size: 18px; }
nav.main a { color: var(--ink); text-decoration: none; padding: 6px 2px; font-weight: 600; } nav.main a:hover, nav.main a[aria-current] { color: var(--pri); text-decoration: underline; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.3; margin: 26px 0 8px; letter-spacing: -0.8px; }
h2 { font-size: 26px; margin: 36px 0 10px; letter-spacing: -0.4px; } h3 { font-size: 21px; margin: 22px 0 6px; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 22px; border-radius: 12px; border: 2px solid var(--pri); background: var(--card); color: var(--pri); font-weight: 700; font-size: 19px; line-height: 1.2; font-family: inherit; text-decoration: none; cursor: pointer; }
.btn.pri { background: var(--pri); color: var(--pri-ink); } .btn.pri:hover { filter: brightness(1.1); } .btn:hover { background: var(--pri-soft); } .btn.pri:hover { background: var(--pri); }
.btn.big { min-height: 66px; font-size: 22px; padding: 12px 28px; }
.btn small { font-weight: 500; font-size: 15px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* 홈 */
.hero { padding: 8px 0 8px; } .hero .row { margin: 18px 0 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 14px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--pri); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.card img { width: 100%; height: auto; aspect-ratio: 210/170; object-fit: cover; object-position: top; background: #f2efe6; border-bottom: 1px solid var(--line); display: block; }
.card b { display: block; font-size: 21px; padding: 12px 14px 2px; } .card span { display: block; padding: 0 14px 14px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.who { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.who div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; } .who h3 { margin: 0 0 6px; } .who p { margin: 0 0 8px; color: var(--muted); font-size: 17px; }
.note { background: var(--pri-soft); border-radius: 12px; padding: 14px 18px; font-size: 17px; }
/* 만들기 쪽 */
.maker { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; margin: 10px 0 30px; }
.panel { position: sticky; top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; max-height: calc(100vh - 20px); overflow: auto; }
.panel .actions { display: grid; gap: 10px; margin-bottom: 12px; }
.panel .actions .btn { width: 100%; }
.check { display: flex; align-items: center; gap: 10px; font-size: 18px; padding: 6px 2px; cursor: pointer; } .check input { width: 26px; height: 26px; accent-color: var(--pri); }
fieldset.seg { border: 0; padding: 0; margin: 14px 0 0; } fieldset.seg legend { font-weight: 800; font-size: 18px; margin-bottom: 6px; padding: 0; }
.seg-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg-row button { min-height: 54px; border: 2px solid var(--line); background: #fff; border-radius: 10px; font-weight: 700; font-size: 17px; line-height: 1.2; font-family: inherit; color: var(--ink); cursor: pointer; padding: 6px 4px; }
.seg-row button small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 3px; }
.seg-row button[aria-pressed="true"] { border-color: var(--pri); background: var(--pri); color: #fff; } .seg-row button[aria-pressed="true"] small { color: #e6f2ee; }
select, textarea, input[type=text] { width: 100%; min-height: 52px; font-weight: 400; font-size: 18px; line-height: 1.4; font-family: inherit; border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; color: var(--ink); }
.day-row { display: flex; gap: 6px; } .day-row button { min-width: 52px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font-size: 18px; cursor: pointer; } .day-row select { flex: 1; }
.hint { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.code { font-size: 16px; color: var(--muted); margin: 14px 0 6px; }
.num-form { display: flex; gap: 6px; margin-top: 6px; } .num-form input { flex: 1; } .num-form .btn { min-height: 52px; padding: 6px 14px; font-size: 17px; }
.sheets { display: grid; gap: 18px; }
.sheet { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 22px rgba(0,0,0,.08); border-radius: 4px; overflow: hidden; }
.sheet svg { display: block; width: 100%; height: auto; }
.sheet.answer { outline: 3px dashed #999; outline-offset: -3px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; } .share-row .btn { min-height: 50px; font-size: 16px; padding: 6px 8px; }
.guide { max-width: 760px; } .guide p, .guide li { font-size: 19px; } .guide table { border-collapse: collapse; width: 100%; font-size: 17px; } .guide th, .guide td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; } .guide th { background: #f3efe4; }
.faq dt { font-weight: 800; margin-top: 14px; } .faq dd { margin: 4px 0 0; }
.crumb { font-size: 16px; color: var(--muted); margin-top: 14px; } .crumb a { color: var(--muted); }
.plan-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .plan-list a { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; } .plan-list a small { display: block; color: var(--muted); font-weight: 400; }
.ad-slot { margin: 30px 0; min-height: 0; } .ad-slot[hidden] { display: none; }
footer.bottom { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 40px; font-size: 16px; color: var(--muted); background: var(--card); }
footer.bottom a { color: var(--muted); margin-right: 14px; }
#print-area { display: none; }
@media (max-width: 860px) {
  .maker { grid-template-columns: 1fr; } .panel { position: static; max-height: none; }
  body { font-size: 18px; } nav.main { margin-left: 0; font-size: 17px; }
}
/* ---------- 인쇄: 활동지만, A4 한 장에 한 쪽 ---------- */
@page { size: A4 portrait; margin: 0; }
@media print {
  html, body { background: #fff !important; margin: 0; padding: 0; }
  body > *:not(main):not(#print-area) { display: none !important; }
  main > *:not(.maker) { display: none !important; } .maker { display: block; margin: 0; } .panel, .crumb, h1, .lead { display: none !important; }
  .sheets { display: block; gap: 0; }
  .sheet { width: 210mm; height: 296.5mm; box-shadow: none; border-radius: 0; break-after: page; page-break-after: always; break-inside: avoid; outline: 0 !important; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  .sheet svg { width: 210mm; height: 296.5mm; }
  body.printing main { display: none !important; } body.printing #print-area { display: block !important; }
  .ad-slot { display: none !important; }
}
