/* OV Genre Agency link page + guides. Shared by index.html and guides/*.html. */
@font-face {
  font-family: 'Pretendard Variable';
  font-weight: 45 920;
  font-display: swap;
  src: url('pretendard-subset.woff2') format('woff2-variations'), url('pretendard-subset.woff2') format('woff2');
}
/* metric-matched fallback so the swap to Pretendard does not shift the layout */
@font-face {
  font-family: 'OVG Fallback';
  src: local('Apple SD Gothic Neo'), local('AppleSDGothicNeo-Regular'), local('Malgun Gothic'), local('Noto Sans KR'), local('NotoSansKR-Regular');
  ascent-override: 95.2%;
  descent-override: 24.1%;
  line-gap-override: 0%;
  size-adjust: 100%;
}
:root {
  color-scheme: light;
  --paper: #8FB1E3;
  --ink: #1B1A17;
  --cream: #FBF9F2;
  --red: #C0281F;
  --yellow: #F6D82B;
  --gutter: 1.25rem;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem;
  /* type: 4 steps */
  --t-meta: .9375rem; --t-body: 1.0625rem; --t-title: 1.25rem;
  --t-display: clamp(1.75rem, 8.6vw, 2.75rem);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--paper) url('paper.webp') 0 0 / 200px 200px repeat;
  color: var(--ink);
  font-family: 'Pretendard Variable', 'OVG Fallback', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: var(--t-body);
  font-weight: 600;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 30rem; margin: 0 auto; padding-inline: var(--gutter); }
a { color: inherit; -webkit-tap-highlight-color: rgba(27, 26, 23, .14); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: .5rem; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* identity */
.site-top { padding-top: var(--s4); }
.brand { display: flex; align-items: center; gap: .875rem; font-size: var(--t-title); font-weight: 800; line-height: 1.25; }
.mark { flex: none; width: 6.65rem; height: 2.75rem; display: block; }
.hero { margin-top: var(--s3); font-size: var(--t-display); font-weight: 900; letter-spacing: -.035em; line-height: 1.15; }
.hero > span { display: block; }
/* highlighter: same geometry as the grid tiles, a fixed .12em overhang each side */
.hl { background: linear-gradient(transparent 52%, var(--yellow) 52%, var(--yellow) 94%, transparent 94%); padding-inline: .12em; margin-inline: -.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { margin-top: var(--s2); font-size: var(--t-body); }

/* buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: .75rem 1.25rem; border-radius: .75rem;
  font-size: var(--t-body); font-weight: 800; line-height: 1.3; text-align: center; text-decoration: none;
  transition: transform .08s ease-out, box-shadow .08s ease-out, background-color .12s;
}
.btn-primary { background: var(--ink); color: var(--cream); box-shadow: 0 4px 0 #000; }
.btn-line { border: 2px solid var(--ink); color: var(--ink); background: var(--cream); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 transparent; }
.cta { margin-top: var(--s3); }
.channels { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.25rem; margin-top: var(--s1); font-size: var(--t-meta); }
.channels .lbl { font-weight: 600; }
.channels a { display: inline-flex; align-items: center; min-height: 3rem; font-weight: 800; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }

/* route line: the grid's signature, whole dashes only (width snapped to the 25px dash period) */
.route { display: block; height: 14px; margin-top: var(--s4); width: 100%; width: round(down, 100%, 25px); }
.route line { stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 14 11; }

/* sections */
main section { margin-top: var(--s4); }
h2 { font-size: var(--t-title); font-weight: 800; line-height: 1.3; margin-bottom: var(--s2); }
.list { list-style: none; display: grid; gap: var(--s2); }

/* one link-row component: same inset, same arrow everywhere; weight shows priority */
.card {
  position: relative; display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2); border-radius: .75rem;
  background: var(--cream); color: var(--ink); text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.card:active { transform: translateY(4px); box-shadow: 0 0 0 transparent; }
.card .txt { flex: 1; min-width: 0; }
.arr { flex: none; width: 1.25rem; height: 1.25rem; }
.arr path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chip {
  display: inline-block; font-size: var(--t-meta); font-weight: 800; line-height: 1.2;
  padding: .125rem .625rem .1875rem; border: 2px solid var(--ink); border-radius: 999px;
}
.tag { display: inline-block; font-size: var(--t-meta); font-weight: 800; line-height: 1.2; padding: .1875rem .5rem; background: var(--yellow); border-radius: .25rem; }
.title { display: block; margin-top: .375rem; font-size: var(--t-title); font-weight: 800; letter-spacing: -.02em; line-height: 1.35; text-wrap: balance; }
.meta { display: block; margin-top: .25rem; font-size: var(--t-meta); line-height: 1.5; }

.feature { display: block; padding: 0; overflow: hidden; }
.feature img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-bottom: 2px solid var(--ink); }
.feature .txt { display: flex; align-items: flex-end; gap: var(--s2); padding: var(--s2); }
.feature .txt > span { flex: 1; min-width: 0; }

.post img { flex: none; width: 4.5rem; height: 6rem; object-fit: cover; border-radius: .375rem; border: 2px solid var(--ink); }

/* business-type filter: pure anchors + :target, works without JS */
.types .card { padding-block: .875rem; }
.types .title { margin-top: 0; }
.panel { display: none; margin-top: var(--s2); padding: var(--s2); border: 2px dashed var(--ink); border-radius: .75rem; scroll-margin-top: 1rem; }
.panel:target { display: block; }
.panel p { font-size: var(--t-body); }
.panel a { display: inline-flex; align-items: center; min-height: 3rem; font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }

.kakao { padding: var(--s3) var(--s2) var(--s2); background: var(--cream); border-radius: .75rem; box-shadow: 0 4px 0 var(--ink); }
.kakao p { font-size: var(--t-title); font-weight: 800; line-height: 1.35; margin-bottom: var(--s2); }
.kakao .btn + .btn { margin-top: var(--s2); }

/* free-kit sign-up */
.kit { display: grid; gap: .75rem; padding: var(--s3) var(--s2) var(--s2); background: var(--cream); border-radius: .75rem; box-shadow: 0 4px 0 var(--ink); }
.kit .tag { justify-self: start; }
.kit .title { margin: 0; font-size: clamp(1.375rem, 6.4vw, 1.75rem); font-weight: 900; }
.kit .meta { margin: 0; font-size: var(--t-body); text-wrap: pretty; }
.kit input[type="email"] {
  width: 100%; min-height: 3.25rem; padding: .75rem 1rem; border: 2px solid var(--ink); border-radius: .75rem;
  background: #fff; color: var(--ink); font: inherit; font-size: 1.0625rem; font-weight: 600;
}
.kit input[type="email"]::placeholder { color: #5b5a55; }
.kit input[type="email"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.kit input[aria-invalid="true"] { border-color: var(--red); }
.kit .btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.kit .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.kit .msg { font-size: var(--t-meta); font-weight: 800; }
.kit .msg:empty { display: none; }
.kit .fine { font-size: .9375rem; line-height: 1.5; text-wrap: balance; }
.kit .fine a { text-decoration: underline; text-underline-offset: .2em; font-weight: 700; }

/* quiet last row: plain text links, lightest thing on the page */
.quiet { display: flex; flex-wrap: wrap; column-gap: 1.25rem; font-size: var(--t-meta); }
.quiet a, .site-foot a { display: inline-flex; align-items: center; min-height: 3rem; text-decoration: underline; text-underline-offset: .2em; }

.site-foot { margin-top: var(--s4); padding-bottom: var(--s4); font-size: var(--t-meta); line-height: 1.6; }
.site-foot nav { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }

/* guide article */
.back { display: inline-flex; align-items: center; gap: .375rem; min-height: 3rem; font-size: var(--t-meta); font-weight: 800; text-decoration: none; }
.back svg { transform: scaleX(-1); }
.sheet { margin-top: var(--s2); padding: var(--s3) var(--s2) var(--s4); background: var(--cream); border-radius: .75rem; box-shadow: 0 4px 0 var(--ink); }
.sheet h1 { margin-top: var(--s2); font-size: clamp(1.625rem, 7.6vw, 2.25rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.2; text-wrap: balance; }
.sheet .dek { margin-top: var(--s2); font-size: var(--t-title); font-weight: 600; line-height: 1.5; }
.sheet h2 { margin: var(--s4) 0 var(--s1); }
.sheet p + p { margin-top: var(--s2); }
.sheet ul, .sheet ol { margin-top: var(--s2); padding-left: 1.4em; }
.sheet li + li { margin-top: .375rem; }
.sheet .num { color: var(--red); font-weight: 900; }
.bars { list-style: none; padding: 0 !important; display: grid; gap: .625rem; }
.bars li { margin: 0 !important; }
.bars .row { display: flex; justify-content: space-between; gap: var(--s2); font-size: var(--t-meta); }
.bars .row b { font-weight: 900; white-space: nowrap; }
.bars .bar { display: block; height: .75rem; margin-top: .25rem; background: var(--ink); border-radius: 2px; }
.bars .top .bar { background: var(--red); }
.sources { font-size: var(--t-meta); }
.sources li { overflow-wrap: anywhere; }
.sources a { text-decoration: underline; text-underline-offset: .2em; }
.note { margin-top: var(--s2); font-size: var(--t-meta); }
.end { margin-top: var(--s4); display: grid; gap: var(--s2); }

@media (hover: hover) {
  .card:hover, .btn-line:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
  .btn-primary:hover { background: #33312c; }
  .channels a:hover, .quiet a:hover, .site-foot a:hover, .panel a:hover, .sources a:hover { text-decoration-thickness: 3px; }
}
@media (max-width: 22rem) { :root { --gutter: 1rem; } }
@media (prefers-reduced-motion: reduce) {
  .card, .btn { transition: none; }
  .card:hover, .btn-line:hover { transform: none; }
}

main > section:first-child { margin-top: var(--s3); }
.sheet ul + p, .sheet ol + p, .bars + p { margin-top: var(--s2); }
@media (max-width: 18rem) { .post img { display: none; } }
