:root {
  --black: #101010;
  --charcoal: #272727;
  --gray: #707070;
  --line: #e3e3e3;
  --soft: #f5f5f5;
  --white: #fff;
  --max: 926px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--black); font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; font-size: 15px; line-height: 1.9; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip { position: absolute; top: -48px; left: 12px; z-index: 10; padding: 8px 12px; background: var(--white); border: 1px solid var(--black); }
.skip:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .98); border-bottom: 1px solid #f1f1f1; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 48px; max-width: var(--max); min-height: 66px; margin: auto; padding: 0 14px; }
.brand { flex: 0 0 auto; }
.wordmark { position: relative; display: inline-block; padding-bottom: 9px; font-size: 22px; font-weight: 900; line-height: 1; letter-spacing: .4px; }
.wordmark span { color: var(--black); }
.wordmark b { color: #727272; }
.wordmark small { position: absolute; bottom: 0; left: 1px; color: #747474; font-size: 6px; font-weight: 800; letter-spacing: 1.4px; white-space: nowrap; }
.brand:not(.wordmark) { position: relative; display: inline-block; min-width: 101px; min-height: 28px; padding-bottom: 9px; font-size: 0; line-height: 1; }
.brand:not(.wordmark) .brand-mark { display: none; }
.brand:not(.wordmark) > span:last-child { font-size: 0; }
.brand:not(.wordmark) > span:last-child::before { content: "툰코"; color: var(--black); font-size: 22px; font-weight: 900; letter-spacing: .4px; }
.brand:not(.wordmark) > span:last-child small { position: absolute; bottom: 0; left: 1px; display: block; color: #747474; font-size: 6px; font-weight: 800; letter-spacing: 1.4px; white-space: nowrap; }
.links { display: flex; align-items: center; justify-content: flex-end; gap: 52px; font-size: 14px; }
.links > a, .menu-group summary { display: inline-block; color: #4f4f4f; cursor: pointer; list-style: none; }
.links > a:hover, .links > a[aria-current="page"], .menu-group summary:hover { color: var(--black); font-weight: 700; }
.menu-group { position: relative; }
.menu-group summary::-webkit-details-marker { display: none; }
.menu-group summary::after { content: "⌄"; padding-left: 6px; font-size: 11px; }
.drop { position: absolute; top: 32px; left: 50%; width: 176px; padding: 9px 0; transform: translateX(-50%); background: var(--white); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(0, 0, 0, .1); }
.drop a { display: block; padding: 6px 16px; font-size: 13px; }
.drop a:hover { background: var(--soft); }

.cta-hero { display: grid; min-height: 286px; place-items: center; padding: 36px 20px; background: var(--black); }
.cta-panel { width: min(570px, 100%); padding: 34px 66px 28px; background: var(--white); text-align: center; }
.cta-panel h1 { margin: 0 0 17px; font-size: 23px; line-height: 1.3; letter-spacing: 0; }
.hero-cta { display: block; min-height: 27px; margin: 7px 0; padding: 2px 14px; background: var(--black); color: var(--white); font-size: 13px; font-weight: 700; line-height: 27px; }
.hero-cta:hover { background: #555; }

.reference-body { max-width: var(--max); margin: 0 auto; padding: 40px 14px 48px; }
.reference-body h2 { margin: 0 0 36px; font-size: 19px; line-height: 1.45; text-align: center; letter-spacing: 0; }
.reference-body h3 { margin: 37px 0 14px; font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.reference-body p { margin: 0 0 14px; color: #464646; font-size: 14px; line-height: 2; }
.reference-body p a { color: var(--black); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.content-visual { width: min(660px, 100%); margin: 30px auto 34px; }
.content-visual img { width: 100%; max-height: 330px; object-fit: cover; }
.content-visual figcaption { margin-top: 9px; color: var(--gray); font-size: 12px; line-height: 1.6; text-align: center; }
.reading-note { display: grid; gap: 7px; margin: 31px 0 4px; padding: 20px 24px; background: var(--soft); border-left: 4px solid var(--black); }
.reading-note strong { font-size: 15px; }
.reading-note span { color: #4e4e4e; font-size: 14px; line-height: 1.8; }

.faq-section { background: #f6f6f6; }
.faq-section .reference-body { padding-top: 46px; padding-bottom: 46px; }
.faq-list { border-top: 1px solid #cfcfcf; }
.faq-list details { padding: 17px 0; border-bottom: 1px solid #d7d7d7; }
.faq-list summary { cursor: pointer; font-size: 15px; font-weight: 700; }
.faq-list summary::marker { color: #777; }
.faq-list p { margin: 10px 0 0; }

.blog-section { background: var(--white); }
.blog-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-gallery article { overflow: hidden; border: 1px solid var(--line); }
.blog-gallery img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.blog-gallery article:nth-child(2) img { object-position: 45% 30%; }
.blog-gallery article:nth-child(3) img { object-position: 70% 40%; }
.blog-gallery article div { padding: 16px; }
.blog-gallery h3 { min-height: 48px; margin: 0 0 8px; font-size: 15px; }
.blog-gallery p { min-height: 76px; font-size: 13px; line-height: 1.75; }
.blog-gallery a { color: var(--black); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.site-footer { background: var(--black); color: #d6d6d6; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px; max-width: var(--max); min-height: 95px; margin: auto; padding: 20px 14px; }
.footer-logo { color: var(--white); font-size: 17px; font-weight: 900; letter-spacing: .7px; }
.footer-inner p { margin: 0; font-size: 12px; line-height: 1.6; }
.footer-links { display: flex; gap: 14px; font-size: 12px; white-space: nowrap; }
.footer-inner small { color: #8b8b8b; font-size: 10px; white-space: nowrap; }

/* Shared subpage layout */
.article { max-width: 760px; margin: 0 auto; padding: 60px 14px; }
.article h1 { margin: 0 0 19px; font-size: 30px; line-height: 1.35; letter-spacing: 0; }
.article .lead { color: #5a5a5a; font-size: 16px; }
.article-visual { width: 100%; margin: 28px 0 36px; }
.article-visual img { width: 100%; max-height: 360px; object-fit: cover; }
.article-visual figcaption { margin-top: 8px; color: var(--gray); font-size: 12px; line-height: 1.65; }
.article h2 { margin: 42px 0 14px; font-size: 21px; line-height: 1.45; }
.article h3 { margin: 28px 0 8px; font-size: 17px; }
.article p { color: #494949; font-size: 14px; }
.article li { margin: 8px 0; }
.article-callout { margin: 28px 0; padding: 18px 20px; background: var(--soft); border-left: 4px solid var(--black); }
.article .cta { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; margin-top: 24px; padding: 0 20px; background: var(--black); color: var(--white); font-size: 13px; font-weight: 700; }
.article .cta:hover { background: #555; }
.article .faq { border-top: 1px solid #d7d7d7; }
.article .faq details { padding: 15px 0; border-bottom: 1px solid #d7d7d7; }
.article .faq summary { cursor: pointer; font-weight: 700; }

@media (max-width: 800px) {
  .nav { display: block; min-height: 0; padding: 13px 18px 0; }
  .wordmark { font-size: 20px; }
  .links { width: 100%; justify-content: flex-start; gap: 25px; padding: 12px 0; overflow-x: auto; white-space: nowrap; font-size: 13px; }
  .links > a, .links > .menu-group { flex: 0 0 auto; }
  .cta-hero { min-height: 260px; padding: 30px 20px; }
  .cta-panel { padding: 28px 26px 23px; }
  .reference-body { padding: 36px 20px 42px; }
  .reference-body h2 { margin-bottom: 28px; font-size: 18px; }
  .reference-body h3 { margin-top: 31px; }
  .reference-body p { font-size: 14px; line-height: 1.95; }
  .blog-gallery { grid-template-columns: 1fr; }
  .blog-gallery p { min-height: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 10px; padding: 25px 20px; }
  .footer-links { margin-top: 4px; }
  .article { padding: 48px 20px; }
  .article h1 { font-size: 27px; }
}
