/*
Theme Name: Practical Guide
Theme URI: https://example.invalid/practical-guide
Author: Site operator
Description: Lightweight Korean information site theme focused on readable, trustworthy guides.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: practical-guide
*/

:root {
  --ink: #17202a;
  --muted: #5f6b76;
  --line: #dfe5e9;
  --paper: #ffffff;
  --soft: #f5f8fa;
  --brand: #116466;
  --brand-dark: #0b4547;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
}
a { color: var(--brand-dark); text-underline-offset: .18em; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 1000; padding: 10px 14px; background: #fff; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 28px; }
.site-branding { min-width: max-content; }
.site-title { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; }
.site-title a { color: var(--ink); text-decoration: none; }
.site-description { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.main-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--ink); font-size: .9rem; font-weight: 650; text-decoration: none; }
.main-nav .current-menu-item > a { color: var(--brand); }

.hero { padding: 72px 0 64px; background: linear-gradient(135deg, #eef8f7 0%, #f8fafb 72%); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-weight: 800; font-size: .86rem; letter-spacing: .05em; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.22; letter-spacing: -.055em; }
.hero-copy { max-width: 690px; margin: 20px 0 0; color: #42505c; font-size: 1.08rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-row span { padding: 7px 12px; border: 1px solid #c9dfdc; border-radius: 999px; background: rgba(255,255,255,.72); color: #245557; font-size: .82rem; font-weight: 700; }

.site-main { min-height: 58vh; padding: 52px 0 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.post-card { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.post-card:hover { border-color: #b9cdca; box-shadow: 0 10px 30px rgba(21,54,55,.07); }
.post-card h2 { margin: 8px 0 9px; font-size: 1.28rem; line-height: 1.42; letter-spacing: -.03em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.post-meta { color: var(--muted); font-size: .79rem; }
.post-meta a { color: inherit; }
.empty-state { padding: 34px; border: 1px dashed #bdcbd0; border-radius: 14px; background: var(--soft); }
.empty-state h2 { margin-top: 0; }

.content-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(200px, 1fr); gap: 58px; align-items: start; }
.content-layout.no-sidebar { display: block; max-width: 800px; margin-inline: auto; }
.entry-header { margin-bottom: 30px; }
.entry-title { margin: 0 0 14px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.25; letter-spacing: -.05em; }
.entry-content h2 { margin-top: 2.2em; font-size: 1.55rem; line-height: 1.4; letter-spacing: -.035em; }
.entry-content h3 { margin-top: 1.8em; font-size: 1.22rem; }
.entry-content p, .entry-content li { max-width: 72ch; }
.entry-content blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--brand); background: var(--soft); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.entry-content th, .entry-content td { padding: 11px; border: 1px solid var(--line); text-align: left; }
.entry-content code { padding: .15em .35em; border-radius: 4px; background: #edf1f3; font-size: .9em; }
.author-box { margin-top: 48px; padding: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.author-box strong { display: block; margin-bottom: 4px; }
.side-note { position: sticky; top: 28px; padding: 20px; border-left: 3px solid #c9d8dc; color: var(--muted); font-size: .86rem; }
.side-note h2 { margin: 0 0 8px; color: var(--ink); font-size: 1rem; }
.pagination { margin-top: 36px; }

.site-footer { padding: 38px 0; border-top: 1px solid var(--line); background: #f7f9fa; color: var(--muted); font-size: .84rem; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--muted); }

@media (max-width: 820px) {
  body { font-size: 16px; word-break: normal; }
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 18px; }
  .main-nav ul { gap: 10px 16px; }
  .hero { padding: 52px 0 48px; }
  .post-grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; gap: 30px; }
  .side-note { position: static; }
}
