/*
Theme Name: 주소가자 링크 가이드
Theme URI: https://주소가자주소.com/
Author: 주소가자
Description: 주소가자의 링크모음·주소모음 안내를 위한 3페이지 워드프레스 테마입니다.
Version: 1.0.1
Text Domain: jusogaja-guide
*/

:root {
  --ink: #17263a;
  --muted: #607185;
  --line: #d8e0e8;
  --paper: #ffffff;
  --soft: #f3f7f8;
  --navy: #173a5e;
  --teal: #168777;
  --teal-dark: #0d665b;
  --coral: #e66f5c;
  --yellow: #f3c85b;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--navy); }
.skip-link:focus { top: 12px; }
.wrap { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 176px; height: 50px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.menu-list { margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; list-style: none; }
.main-nav a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; text-decoration: none; font-size: 14px; font-weight: 750; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav .current-menu-item > a { color: var(--teal-dark); border-color: var(--teal); outline: none; }
.menu-button { display: none; width: 42px; height: 42px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 23px; }

.hero { border-bottom: 1px solid var(--line); background: var(--soft); }
.hero-grid { min-height: 510px; padding: 76px 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 14px; color: var(--teal-dark); font-size: 13px; font-weight: 850; }
.hero h1 { max-width: 760px; margin: 0; font-size: 48px; line-height: 1.3; }
.hero h1 span { color: var(--teal); }
.hero-copy { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 48px; padding: 0 20px; align-items: center; justify-content: center; color: #fff; background: var(--teal); border: 1px solid var(--teal); border-radius: 5px; text-decoration: none; font-weight: 800; }
.button:hover { background: var(--teal-dark); }
.button.secondary { color: var(--navy); background: #fff; border-color: #b9c6d2; }
.hero-panel { padding: 28px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--coral); border-radius: 6px; box-shadow: 0 18px 42px rgba(23,58,94,.08); }
.hero-panel > img { width: 66px; height: 66px; margin-bottom: 22px; }
.hero-panel h2 { margin: 0 0 8px; font-size: 21px; }
.hero-panel p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.route-list { margin: 0; padding: 0; list-style: none; }
.route-list li { padding: 13px 0; display: grid; grid-template-columns: 34px 1fr; gap: 12px; border-top: 1px solid var(--line); }
.route-list b { color: var(--teal); font-size: 13px; }
.route-list span { font-weight: 750; }

.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section.soft { background: var(--soft); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading small { display: block; margin-bottom: 6px; color: var(--teal-dark); font-weight: 850; }
.section-heading h2 { margin: 0; font-size: 35px; line-height: 1.4; }
.section-heading p { margin: 12px 0 0; color: var(--muted); }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.feature-row article { min-height: 190px; padding: 30px; border-right: 1px solid var(--line); }
.feature-row article:last-child { border-right: 0; }
.feature-row strong { display: block; margin-bottom: 10px; color: var(--teal-dark); font-size: 18px; }
.feature-row p { margin: 0; color: var(--muted); font-size: 14px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
.prose h2 { margin: 62px 0 14px; font-size: 30px; line-height: 1.45; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 34px 0 10px; font-size: 21px; }
.prose p { margin: 0 0 18px; color: #33475d; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 22px; }
.prose li { margin-bottom: 8px; color: #33475d; }
.prose blockquote { margin: 30px 0; padding: 20px 24px; color: var(--navy); background: #eef7f5; border-left: 4px solid var(--teal); }
.side-index { align-self: start; position: sticky; top: 102px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.side-index strong { display: block; margin-bottom: 10px; }
.side-index a { display: block; padding: 10px 0; color: var(--muted); border-top: 1px solid var(--line); text-decoration: none; font-size: 13px; }
.side-index a:hover { color: var(--teal-dark); }

.directory-list { border: 1px solid var(--line); background: #fff; }
.directory-item { padding: 24px; display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.directory-item:last-child { border-bottom: 0; }
.directory-item .number { color: var(--coral); font-size: 13px; font-weight: 900; }
.directory-item h3 { margin: 0 0 4px; font-size: 19px; }
.directory-item p { margin: 0; color: var(--muted); font-size: 14px; }
.directory-item a { color: var(--teal-dark); text-decoration: none; font-size: 13px; font-weight: 850; }
.notice { margin-top: 28px; padding: 22px; background: #fff7df; border: 1px solid #ead58f; border-radius: 5px; color: #59460d; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 0; cursor: pointer; font-weight: 800; }
.faq p { margin: 0; padding: 0 0 20px; color: var(--muted); }

.page-hero { padding: 72px 0; background: var(--navy); color: #fff; }
.page-hero .eyebrow { color: #8fe2d6; }
.page-hero h1 { max-width: 820px; margin: 0; font-size: 44px; line-height: 1.35; }
.page-hero p { max-width: 720px; margin: 18px 0 0; color: #d8e2eb; font-size: 17px; }
.site-footer { padding: 38px 0; color: #d9e2ea; background: #112b45; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-row img { width: 150px; height: 42px; object-fit: contain; object-position: left center; }
.footer-row p { margin: 0; font-size: 13px; }

@media (max-width: 820px) {
  .admin-bar .site-header { top: 46px; }
  .header-row { min-height: 64px; }
  .brand img { width: 148px; height: 42px; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 65px; padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 38px rgba(23,58,94,.14); }
  .main-nav.is-open { display: grid; }
  .menu-list { display: grid; }
  .main-nav a { text-align: left; }
  .hero-grid { min-height: auto; padding: 58px 0; grid-template-columns: 1fr; gap: 38px; }
  .hero h1 { font-size: 37px; }
  .hero-copy { font-size: 16px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row article { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-row article:last-child { border-bottom: 0; }
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .side-index { position: static; order: -1; }
  .directory-item { grid-template-columns: 46px 1fr; }
  .directory-item a { grid-column: 2; }
  .page-hero h1 { font-size: 34px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 28px, var(--content)); }
  .hero h1 { font-size: 32px; }
  .hero-actions .button { width: 100%; }
  .section { padding: 64px 0; }
  .section-heading h2 { font-size: 29px; }
  .directory-item { padding: 20px 16px; }
}
