/*
Theme Name: Pay0-DIY Keyword Hub
Theme URI: https://pay0-diy.com/
Author: Pay0-DIY
Description: 키워드로 바로 이동하는 DIY 기록형 워드프레스 테마. 제목·키워드는 Paperlogy, 본문은 Pretendard를 사용합니다.
Version: 1.0.0
Text Domain: pay0-keyword-hub
License: GPL-2.0-or-later
*/

:root {
  --ink: #171915;
  --ink-2: #242621;
  --paper: #fffaf0;
  --shell: #f3ecdf;
  --orange: #eb642b;
  --orange-deep: #c94e1e;
  --yellow: #ffd85a;
  --mint: #c9ecdc;
  --peach: #ffd8c5;
  --line: #221f1a;
  --muted: #65635c;
  --soft-line: #ded4c2;
  --radius: 18px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", sans-serif;
  --display: "Paperlogy", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--shell); font-family: var(--font); font-size: 16px; line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.p0-site { min-height: 100vh; overflow: hidden; background: var(--paper); }
.p0-main { width: min(100% - 40px, 1160px); margin: 0 auto; }
.p0-kicker { margin: 0 0 9px; color: var(--orange); font: 700 11px/1.1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.p0-button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 17px; border: 2px solid var(--line); background: var(--yellow); box-shadow: 4px 4px 0 var(--line); font-family: var(--display); font-size: 14px; font-weight: 700; line-height: 1; transition: transform .18s ease, box-shadow .18s ease; }
.p0-button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.p0-text-link { color: var(--orange-deep); font-weight: 700; white-space: nowrap; }

/* Header */
.p0-header { position: relative; z-index: 2; background: var(--ink); color: #fffdf6; }
.p0-header__inner { display: flex; align-items: center; justify-content: space-between; width: min(100% - 40px, 1160px); min-height: 76px; margin: 0 auto; gap: 28px; }
.p0-brand { flex: 0 0 auto; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.p0-brand span { color: var(--orange); }
.p0-brand small { margin-left: 2px; color: #cfcac0; font-size: .45em; letter-spacing: -.02em; }
.p0-nav { flex: 1 1 auto; }
.p0-nav__list { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 2vw, 30px); padding: 0; margin: 0; list-style: none; }
.p0-nav__list a { position: relative; display: block; padding: 8px 0; color: #cbc7bd; font-size: 14px; font-weight: 700; white-space: nowrap; }
.p0-nav__list a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; content: ""; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.p0-nav__list a:hover, .p0-nav__list .current-menu-item > a { color: #fffdf6; }
.p0-nav__list a:hover::after, .p0-nav__list .current-menu-item > a::after { transform: scaleX(1); }
.p0-header__guide { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Home */
.p0-home-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .58fr); gap: 22px; padding: 72px 0 52px; }
.p0-home-hero__copy { padding: 46px 48px 50px; border: 2px solid var(--line); background: var(--ink); color: #fffdf6; border-radius: 28px; }
.p0-home-hero h1 { max-width: 740px; margin: 0; font-family: var(--display); font-size: clamp(42px, 5.2vw, 72px); font-weight: 800; letter-spacing: -.08em; line-height: 1.07; word-break: keep-all; }
.p0-home-hero h1 mark { padding: 0; color: var(--yellow); background: transparent; text-decoration: underline 4px var(--orange); text-underline-offset: 8px; }
.p0-home-hero h1 span { color: var(--orange); }
.p0-home-hero__text { max-width: 620px; margin: 26px 0 0; color: #d8d5cb; font-size: 16px; word-break: keep-all; }
.p0-home-hero__note { align-self: end; padding: 29px 27px; border: 2px solid var(--line); background: var(--yellow); border-radius: 24px; box-shadow: 7px 7px 0 var(--line); }
.p0-home-hero__note b { font-family: var(--display); font-size: 23px; font-weight: 700; line-height: 1.35; }
.p0-home-hero__note p { margin: 14px 0 0; font-size: 14px; line-height: 1.65; word-break: keep-all; }
.p0-section { margin: 0 0 67px; }
.p0-section--last { margin-bottom: 46px; }
.p0-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.p0-section__head h2 { margin: 0; font-family: var(--display); font-size: clamp(30px, 3.3vw, 44px); font-weight: 700; letter-spacing: -.065em; line-height: 1.15; }
.p0-section__head > p { max-width: 320px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.p0-keyword-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.p0-keyword-group { min-height: 250px; padding: 22px; border: 2px solid var(--line); box-shadow: 5px 5px 0 var(--line); }
.p0-keyword-group--mint { background: var(--mint); }
.p0-keyword-group--peach { background: var(--peach); }
.p0-keyword-group--yellow { background: var(--yellow); }
.p0-keyword-group--paper { background: #eeebe4; }
.p0-keyword-group__code { margin: 0 0 9px; color: var(--orange-deep); font: 700 10px/1.15 ui-monospace, monospace; letter-spacing: .08em; }
.p0-keyword-group h3 { margin: 0 0 17px; font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.05em; word-break: keep-all; }
.p0-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.p0-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 9px; border: 1.5px solid var(--line); background: rgba(255,255,255,.62); font-family: var(--display); font-size: 13px; font-weight: 600; line-height: 1.15; transition: background .15s ease, color .15s ease, transform .15s ease; }
.p0-pill span { margin-left: 7px; color: var(--orange); font-family: var(--font); }
.p0-pill:hover { color: #fff; background: var(--ink); transform: translateY(-2px); }
.p0-featured { border: 2px solid var(--line); background: var(--ink); color: #fffdf6; }
.p0-featured__link { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 332px; }
.p0-featured__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 42px; }
.p0-featured__copy h3 { max-width: 600px; margin: 6px 0 15px; font-family: var(--display); font-size: clamp(27px, 3vw, 42px); font-weight: 700; letter-spacing: -.07em; line-height: 1.18; word-break: keep-all; }
.p0-featured__copy > p { max-width: 570px; margin: 0 0 24px; color: #d7d2c8; font-size: 15px; word-break: keep-all; }
.p0-featured__copy .p0-button { background: transparent; color: #fff; border-color: #fff; box-shadow: none; }
.p0-featured__copy .p0-button:hover { background: var(--orange); border-color: var(--orange); transform: none; }
.p0-featured__image { min-height: 250px; background: #3e3d37; }
.p0-featured__image img { width: 100%; height: 100%; object-fit: cover; }
.p0-featured__image--empty, .p0-card__media--empty { display: grid; place-items: center; background: #ddd3bf; color: #947f5c; font-family: var(--display); font-weight: 700; }
.p0-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.p0-card { overflow: hidden; border: 1.5px solid var(--line); background: #fffdf7; box-shadow: 0 3px 0 rgba(23,25,21,.08); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.p0-card:hover { border-color: var(--orange); box-shadow: 5px 5px 0 rgba(235,100,43,.22); transform: translate(-2px,-2px); }
.p0-card__link { display: flex; height: 100%; }
.p0-card--compact .p0-card__link { flex-direction: column; }
.p0-card__media { position: relative; flex: 0 0 150px; width: 150px; min-height: 150px; background: #ddd3bf; overflow: hidden; }
.p0-card--compact .p0-card__media { width: 100%; height: 146px; min-height: 0; }
.p0-card__media img { width: 100%; height: 100%; object-fit: cover; }
.p0-badge { position: absolute; bottom: 8px; left: 8px; padding: 4px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 1; }
.p0-badge--save { color: #fff; background: var(--orange); }
.p0-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 17px; min-width: 0; }
.p0-card--compact .p0-card__body { padding: 14px; }
.p0-card__category { margin: 0 0 5px; color: var(--orange-deep); font-size: 11px; font-weight: 700; }
.p0-card h3 { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 650; letter-spacing: -.05em; line-height: 1.34; word-break: keep-all; }
.p0-card--compact h3 { font-size: 16px; }
.p0-card__excerpt { display: -webkit-box; margin: 8px 0 0; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.p0-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 11px; color: #77736a; font-size: 12px; }
.p0-card__meta span:last-child { color: var(--orange); font-size: 18px; }
.p0-safety { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin: 0 0 60px; padding: 20px 23px; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); background: #ede7dd; }
.p0-safety b { display: inline-flex; padding: 7px; color: #fff; background: var(--orange); font: 700 11px/1 ui-monospace, monospace; letter-spacing: .05em; }
.p0-safety p { margin: 0; font-size: 13px; word-break: keep-all; }

/* Article */
.p0-article-wrap { width: calc(100% + 40px); margin-left: -20px; }
.p0-article-hero { position: relative; min-height: 410px; background-color: #3c3b35; background-position: center; background-size: cover; }
.p0-article-hero--plain { background: linear-gradient(145deg, #343831, #121411); }
.p0-article-hero__veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,9,.72), rgba(10,11,9,.08) 64%, rgba(10,11,9,.37)); }
.p0-article-hero__top { position: absolute; top: 20px; right: max(20px, calc((100vw - 1160px)/2)); left: max(20px, calc((100vw - 1160px)/2)); display: flex; align-items: center; justify-content: space-between; }
.p0-article-hero__top a { display: grid; place-items: center; min-width: 42px; min-height: 38px; padding: 0 10px; border: 1px solid rgba(255,255,255,.36); border-radius: 10px; color: #fff; background: rgba(0,0,0,.24); font-family: var(--display); font-size: 13px; }
.p0-article-hero__category { position: absolute; bottom: 26px; left: max(20px, calc((100vw - 1160px)/2)); padding: 6px 10px; color: var(--ink); background: var(--orange); border-radius: 7px; font-size: 12px; font-weight: 700; }
.p0-article { position: relative; width: min(100% - 40px, 760px); margin: -56px auto 60px; padding: 38px 44px 50px; border-top: 3px solid var(--orange); border-radius: 25px 25px 0 0; background: #fffaf0; box-shadow: 0 -10px 28px rgba(30,25,18,.1); }
.p0-article__intro h1 { margin: 0; font-family: var(--display); font-size: clamp(31px, 4vw, 46px); font-weight: 800; letter-spacing: -.075em; line-height: 1.2; word-break: keep-all; }
.p0-article__lead { margin: 15px 0 0; color: #5e574d; font-size: 16px; line-height: 1.72; word-break: keep-all; }
.p0-stat-grid { display: grid; grid-template-columns: repeat(3,1fr); margin: 23px 0 0; overflow: hidden; border: 1px solid #e2d2b8; border-radius: 14px; background: #fff; box-shadow: 0 2px 0 rgba(23,25,21,.04); }
.p0-stat-grid > div { padding: 14px 8px; border-right: 1px solid #ece1cf; text-align: center; }
.p0-stat-grid > div:last-child { border-right: 0; }
.p0-stat-grid span { display: block; color: #777065; font-size: 11px; }
.p0-stat-grid b { display: block; margin-top: 3px; font-family: var(--display); font-size: 13px; font-weight: 700; word-break: keep-all; }
.p0-save-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 13px; padding: 17px 18px; border: 1px solid rgba(133,211,170,.3); border-radius: 14px; color: #a9d6b9; background: #214133; }
.p0-save-banner span { font-size: 12px; font-weight: 700; }
.p0-save-banner strong { color: #73dda5; font-family: var(--display); font-size: 28px; font-weight: 700; }
.p0-article__content { max-width: 66ch; margin-top: 28px; color: #3d3932; font-size: 16px; line-height: 1.9; word-break: keep-all; overflow-wrap: break-word; }
.p0-article__content > *:first-child { margin-top: 0; }
.p0-article__content p, .p0-page__content p { margin: 0 0 1.25em; }
.p0-article__content h2, .p0-article__content h3, .p0-page__content h2, .p0-page__content h3 { margin: 2.1em 0 .7em; padding-left: 12px; border-left: 4px solid var(--orange); font-family: var(--display); font-weight: 700; letter-spacing: -.045em; line-height: 1.34; }
.p0-article__content h2 { font-size: 24px; }
.p0-article__content h3 { font-size: 20px; }
.p0-article__content a, .p0-page__content a { color: var(--orange-deep); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(235,100,43,.45); text-underline-offset: 3px; }
.p0-article__content img { height: auto; margin: 22px auto; border-radius: 10px; }
.p0-article__content blockquote { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--orange); background: #f5ede0; color: #5b5145; }
.p0-article__content ul, .p0-article__content ol { padding-left: 1.35em; }
.p0-article__notice { margin: 34px 0 0; padding: 18px 20px; border: 1px solid #ead9c4; border-radius: 14px; background: #fff; }
.p0-article__notice b { font-family: var(--display); font-size: 15px; }
.p0-article__notice p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.p0-related { margin-top: 43px; }
.p0-related .p0-section__head { margin-bottom: 13px; }
.p0-related .p0-section__head h2 { font-size: 28px; }
.p0-related .p0-card-grid { grid-template-columns: 1fr; gap: 10px; }
.p0-related .p0-card--compact .p0-card__link { flex-direction: row; }
.p0-related .p0-card--compact .p0-card__media { flex: 0 0 105px; width: 105px; height: auto; min-height: 105px; }

/* Archive and pages */
.p0-archive-hero { margin: 48px 0 22px; padding: 34px 37px; background: var(--ink); color: #fffdf6; }
.p0-archive-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(34px, 4vw, 48px); font-weight: 700; letter-spacing: -.07em; line-height: 1.18; word-break: keep-all; }
.p0-archive-hero p, .p0-archive-hero__desc { max-width: 670px; margin: 13px 0 0; color: #d1cbc0; font-size: 14px; line-height: 1.7; word-break: keep-all; }
.p0-archive-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 30px; }
.p0-archive-list .p0-card { min-height: 177px; }
.p0-pagination { margin: 0 0 60px; text-align: center; }
.p0-pagination .nav-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.p0-pagination .page-numbers { min-width: 36px; padding: 6px 9px; border: 1px solid var(--line); font-size: 13px; }
.p0-pagination .current { color: #fff; background: var(--ink); }
.p0-empty { grid-column: 1 / -1; padding: 42px; border: 1px solid var(--soft-line); background: #fff; color: var(--muted); text-align: center; }
.p0-page { width: min(100%, 760px); margin: 56px auto 70px; }
.p0-page__head { padding: 33px 36px; background: var(--ink); color: #fff; }
.p0-page__head h1 { margin: 0; font-family: var(--display); font-size: 40px; letter-spacing: -.07em; line-height: 1.2; }
.p0-page__content { padding: 38px 42px; background: #fffaf0; font-size: 16px; line-height: 1.9; word-break: keep-all; }
.p0-not-found { max-width: 760px; margin: 80px auto; padding: 50px; border: 2px solid var(--line); background: var(--yellow); box-shadow: 7px 7px 0 var(--line); }
.p0-not-found h1 { margin: 0; font-family: var(--display); font-size: 42px; letter-spacing: -.07em; line-height: 1.18; word-break: keep-all; }
.p0-not-found p { max-width: 500px; margin: 17px 0 24px; }

/* Footer */
.p0-footer { margin-top: 20px; background: var(--ink); color: #e8e1d5; }
.p0-footer__inner { display: flex; align-items: end; justify-content: space-between; width: min(100% - 40px, 1160px); margin: 0 auto; padding: 37px 0 44px; gap: 24px; }
.p0-brand--footer { display: inline-block; color: #fff; }
.p0-footer p { max-width: 410px; margin: 13px 0 0; color: #aaa49a; font-size: 13px; }
.p0-footer__nav { display: flex; gap: 20px; font-size: 13px; font-weight: 700; }
.p0-footer__nav a:hover { color: var(--yellow); }

/* Responsive */
@media (max-width: 900px) {
  .p0-keyword-grid { grid-template-columns: repeat(2, 1fr); }
  .p0-card-grid { grid-template-columns: repeat(2, 1fr); }
  .p0-header__guide { display: none; }
  .p0-nav__list { justify-content: flex-end; gap: 15px; overflow-x: auto; }
  .p0-nav__list li:nth-child(n+5) { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .p0-main, .p0-header__inner, .p0-footer__inner { width: min(100% - 28px, 1160px); }
  .p0-header__inner { min-height: 61px; gap: 12px; }
  .p0-brand { font-size: 23px; }
  .p0-nav { min-width: 0; }
  .p0-nav__list { gap: 13px; justify-content: flex-start; }
  .p0-nav__list a { font-size: 12px; }
  .p0-nav__list li:nth-child(n+4) { display: none; }
  .p0-home-hero { grid-template-columns: 1fr; gap: 14px; padding: 25px 0 37px; }
  .p0-home-hero__copy { padding: 31px 23px 34px; border-radius: 19px; }
  .p0-home-hero h1 { font-size: clamp(38px, 11.3vw, 48px); line-height: 1.1; }
  .p0-home-hero h1 mark { text-underline-offset: 6px; }
  .p0-home-hero__text { margin-top: 20px; font-size: 14px; }
  .p0-home-hero__note { padding: 21px; border-radius: 16px; box-shadow: 4px 4px 0 var(--line); }
  .p0-home-hero__note b { font-size: 20px; }
  .p0-section { margin-bottom: 42px; }
  .p0-section__head { display: block; margin-bottom: 15px; }
  .p0-section__head h2 { font-size: 30px; }
  .p0-section__head > p { margin-top: 8px; font-size: 13px; text-align: left; }
  .p0-keyword-grid { grid-template-columns: 1fr; gap: 10px; }
  .p0-keyword-group { min-height: 0; padding: 20px; box-shadow: 3px 3px 0 var(--line); }
  .p0-keyword-group h3 { font-size: 21px; }
  .p0-pill { min-height: 40px; padding: 9px 10px; font-size: 14px; }
  .p0-featured__link { grid-template-columns: 1fr; }
  .p0-featured__copy { min-height: 280px; padding: 28px 23px; }
  .p0-featured__copy h3 { font-size: 30px; }
  .p0-featured__image { min-height: 210px; }
  .p0-card-grid { grid-template-columns: 1fr; gap: 10px; }
  .p0-card--compact .p0-card__link { flex-direction: row; }
  .p0-card--compact .p0-card__media { flex: 0 0 112px; width: 112px; height: auto; min-height: 112px; }
  .p0-card--compact h3 { font-size: 16px; }
  .p0-safety { grid-template-columns: 1fr; gap: 10px; margin-bottom: 40px; padding: 18px; }
  .p0-article-wrap { width: calc(100% + 28px); margin-left: -14px; }
  .p0-article-hero { min-height: 215px; }
  .p0-article-hero__top { top: 12px; right: 14px; left: 14px; }
  .p0-article-hero__category { bottom: 12px; left: 14px; font-size: 11px; }
  .p0-article { width: calc(100% - 28px); margin-top: -18px; margin-bottom: 42px; padding: 24px 17px 35px; border-radius: 18px 18px 0 0; }
  .p0-article__intro h1 { font-size: 29px; }
  .p0-article__lead { font-size: 14px; }
  .p0-stat-grid > div { padding: 10px 4px; }
  .p0-stat-grid span { font-size: 10px; }
  .p0-stat-grid b { font-size: 11px; }
  .p0-save-banner { padding: 14px; }
  .p0-save-banner strong { font-size: 24px; }
  .p0-article__content { font-size: 15px; line-height: 1.85; }
  .p0-article__content h2 { font-size: 20px; }
  .p0-article__content h3 { font-size: 18px; }
  .p0-related .p0-card--compact .p0-card__media { flex-basis: 94px; width: 94px; min-height: 94px; }
  .p0-archive-hero { margin: 25px 0 14px; padding: 25px 20px; }
  .p0-archive-hero h1 { font-size: 31px; }
  .p0-archive-list { grid-template-columns: 1fr; gap: 9px; }
  .p0-archive-list .p0-card { min-height: 112px; }
  .p0-card__media { flex-basis: 112px; width: 112px; min-height: 112px; }
  .p0-card__body { padding: 13px; }
  .p0-card h3 { font-size: 16px; }
  .p0-card__excerpt { display: none; }
  .p0-page { margin: 28px auto 42px; }
  .p0-page__head { padding: 26px 20px; }
  .p0-page__head h1 { font-size: 31px; }
  .p0-page__content { padding: 26px 20px; font-size: 15px; }
  .p0-not-found { margin: 45px auto; padding: 31px 22px; box-shadow: 4px 4px 0 var(--line); }
  .p0-not-found h1 { font-size: 31px; }
  .p0-footer__inner { display: block; padding: 30px 0 35px; }
  .p0-footer__nav { margin-top: 18px; gap: 15px; }
}

.p0-site a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
