/*
Theme Name: 차근차근 가이드
Description: 생활 정보와 사용법을 읽기 쉽게 정리하는 한국어 블로그 테마
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: everyday-guide
*/

:root {
  color-scheme: light;
  --ink: #212c29;
  --muted: #52625d;
  --paper: #f7f8f3;
  --green: #234a3d;
  --line: #d6dfd7;
  --white: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 system-ui, "Malgun Gothic", sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--green); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #996300; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.32; letter-spacing: -.045em; }
.wrap { width: min(100% - 2.5rem, 69rem); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: var(--white); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: .6rem 2rem; flex-wrap: wrap; padding-block: 1rem; }
.brand { color: var(--ink); font-size: 1.15rem; font-weight: 800; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.15rem; list-style: none; padding: 0; margin: 0; }
.nav a { font-size: .94rem; font-weight: 650; color: inherit; text-decoration: none; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; }
.hero { margin-block: 2.15rem 2.8rem; background: var(--green); color: var(--white); border-radius: 1.3rem; padding: clamp(1.55rem, 5.4vw, 4.25rem); display: grid; align-items: center; grid-template-columns: 1.6fr 1fr; gap: 2rem; }
.hero h1 { font-size: clamp(2.15rem, 5.6vw, 3.85rem); margin-bottom: .85rem; }
.hero p { max-width: 31rem; color: #edf4ed; margin-bottom: 0; }
.quick { border-radius: .85rem; padding: 1.1rem 1.2rem; background: #315d4e; }
.quick h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.quick ul { margin: 0; padding: 0; list-style: none; }
.quick li + li { border-top: 1px solid #66897c; }
.quick a { display: block; padding-block: .52rem; color: var(--white); }
.listing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem); gap: 2rem; align-items: start; padding-bottom: 3rem; }
.listing.inside { padding-top: 2.35rem; }
.section-title { font-size: 1.55rem; margin-bottom: .95rem; }
.cards { display: grid; gap: .8rem; }
.card, .side, .article-box, .empty { background: var(--white); border: 1px solid var(--line); border-radius: .85rem; }
.card { padding: 1.18rem 1.35rem; }
.card :is(h2, h3) { font-size: 1.27rem; margin: .4rem 0 .35rem; }
.card :is(h2, h3) a { text-decoration: none; color: inherit; }
.card :is(h2, h3) a:hover { text-decoration: underline; }
.card p, .side p { margin: 0; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; color: var(--muted); font-size: .85rem; }
.tag { display: inline-block; background: #e9f0ea; border-radius: .3rem; padding: .1rem .44rem; color: #244c3e; font-weight: 700; text-decoration: none; }
.side { padding: 1.1rem 1.2rem; margin-bottom: .85rem; }
.side h2 { font-size: 1.07rem; margin-bottom: .65rem; }
.side ul, .related ul { padding-left: 1.15rem; margin: 0; }
.side li + li, .related li + li { margin-top: .35rem; }
.category-list .children { margin-top: .3rem; }
.category-list .current-cat > a { font-weight: 750; }
.search-form { display: flex; flex-wrap: wrap; gap: .4rem; }
.search-form input { min-width: 0; flex: 1 1 8rem; width: 100%; border: 1px solid #84988d; border-radius: .45rem; padding: .5rem .63rem; color: var(--ink); background: var(--white); font: inherit; }
.search-form button { border: 0; border-radius: .45rem; padding: .5rem .7rem; background: var(--green); color: var(--white); font: inherit; cursor: pointer; }
.pagination { margin-top: 1.4rem; }
.page-numbers { display: inline-block; margin: 0 .16rem .3rem 0; padding: .32rem .65rem; border-radius: .35rem; }
.page-numbers.current { background: var(--green); color: var(--white); }
.crumb { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .8rem; font-size: .9rem; color: var(--muted); }
.article-box, .empty { padding: clamp(1.15rem, 4vw, 2.65rem); }
.article-box h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .75rem; }
.prose { margin-top: 1.55rem; line-height: 1.82; }
.prose h2 { margin: 1.75rem 0 .65rem; font-size: 1.42rem; }
.prose h3 { margin: 1.5rem 0 .55rem; font-size: 1.15rem; }
.prose ul, .prose ol { padding-inline-start: 1.45rem; }
.prose li + li { margin-top: .38rem; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: .5rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: #e9f0ea; }
.related { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.2rem; margin-bottom: .55rem; }
.footer { padding-block: 1.25rem 1.75rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; gap: .55rem 1.5rem; justify-content: space-between; flex-wrap: wrap; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 100; position: fixed; top: .75rem; left: .75rem; width: auto; height: auto; padding: .55rem 1rem; clip-path: none; background: white; }
@media (max-width: 49rem) {
  .listing, .hero { grid-template-columns: 1fr; }
  .listing { gap: 1.1rem; }
  .hero { gap: 1.25rem; margin-block: 1.3rem 1.65rem; }
}
@media (max-width: 32rem) {
  .wrap { width: calc(100% - 1.4rem); }
  .nav { gap: .35rem .85rem; }
  .masthead-inner { align-items: flex-start; flex-direction: column; }
}
