/*
Theme Name: Easy Digital Life
Theme URI: https://blog.testpang.com
Author: Codex
Description: 어르신 스마트폰 사용법을 위한 큰 글씨 중심 반응형 테마
Version: 2.0.2
Text Domain: issue-blog
*/

:root {
  --ink: #172033;
  --muted: #687386;
  --line: #e4e9f1;
  --paper: #ffffff;
  --canvas: #f3f6fb;
  --accent: #13705f;
  --accent-dark: #0b5648;
  --accent-soft: #e9f7f2;
  --highlight: #fff3b8;
  --success: #087f5b;
  --shadow: 0 18px 48px rgba(24, 39, 75, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.86;
  letter-spacing: -0.018em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(228, 233, 241, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.04em;
}
.brand > span:last-child { white-space: nowrap; }

.brand-mark {
  width: 48px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #13705f, #2d8f7c);
  box-shadow: 0 8px 18px rgba(19, 112, 95, 0.22);
  font-size: 14px;
  font-weight: 900;
}

.site-nav { display: flex; min-width: 0; align-items: center; gap: 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: #4d586b; font-size: 15px; font-weight: 700; text-decoration: none; }
.font-toggle { flex: 0 0 auto; width: auto; height: 42px; min-height: 42px; padding: 0 14px; border: 2px solid var(--accent); border-radius: 12px; color: var(--accent-dark); background: #fff; font: inherit; font-size: 14px; font-weight: 850; line-height: 1; cursor: pointer; }
.font-toggle:hover, .font-toggle[aria-pressed="true"] { color: #fff; background: var(--accent); }

.page-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.hero { max-width: 780px; margin-bottom: 42px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; }
.hero h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.16; letter-spacing: -0.055em; }
.hero p { margin: 18px 0 0; color: var(--muted); font-size: 19px; }
.hero-search { max-width: 640px; margin-top: 28px; padding: 22px; border: 1px solid #cfe4de; border-radius: 20px; background: #fff; box-shadow: 0 12px 34px rgba(24,39,75,.06); }
.hero-search label { display: block; margin-bottom: 9px; color: #26364b; font-size: 16px; font-weight: 850; }
.hero-search div { display: flex; gap: 9px; }
.hero-search input { min-width: 0; flex: 1; height: 56px; padding: 0 17px; border: 2px solid #b9cbc6; border-radius: 13px; color: var(--ink); background: #fff; font: inherit; font-size: 17px; }
.hero-search input:focus { border-color: var(--accent); outline: 4px solid rgba(19,112,95,.12); }
.hero-search button { min-width: 108px; border: 0; border-radius: 13px; color: #fff; background: var(--accent); font: inherit; font-size: 16px; font-weight: 850; cursor: pointer; }
.topic-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 48px; }
.topic-links a { display: flex; min-height: 92px; padding: 20px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: #fff; font-size: 19px; font-weight: 850; text-decoration: none; }
.topic-links a:hover { border-color: #9bcabd; background: #f4fbf8; }
.topic-links span { color: var(--accent); font-size: 13px; white-space: nowrap; }
.section-heading { margin-bottom: 20px; }
.section-heading span { color: var(--accent); font-size: 14px; font-weight: 850; }
.section-heading h2 { margin: 4px 0 0; font-size: 30px; line-height: 1.35; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(24, 39, 75, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.post-card-image { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #e7ebf2; }
.post-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.post-card:hover .post-card-image img { transform: scale(1.025); }
.post-card-content { display: flex; flex: 1; flex-direction: column; padding: 27px 30px 30px; }

.post-card:hover { transform: translateY(-3px); border-color: #cfd9ff; box-shadow: var(--shadow); }
.post-card .meta, .article-meta { color: var(--muted); font-size: 14px; font-weight: 650; }
.post-card .meta a { color: inherit; text-decoration: none; }
.post-card .meta a:hover { color: var(--accent); }
.post-card h2 { margin: 14px 0 13px; font-size: 25px; line-height: 1.38; letter-spacing: -0.042em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card p { margin: 0 0 24px; color: #566174; font-size: 16px; line-height: 1.72; }
.read-more { margin-top: auto; font-size: 15px; font-weight: 800; text-decoration: none; }

.article-shell { max-width: 920px; margin: 0 auto; }
.article-hero { position: relative; display: flex; min-height: clamp(390px, 52vw, 520px); margin-bottom: 26px; overflow: hidden; align-items: flex-end; border-radius: 26px; background: linear-gradient(135deg, #21345d, #172033); box-shadow: var(--shadow); }
.article-hero-image, .article-hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-hero-image img { display: block; object-fit: cover; }
.article-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,31,.05) 15%, rgba(8,16,31,.84) 100%); }
.article-hero-content { position: relative; z-index: 1; width: 100%; padding: clamp(30px, 6vw, 58px); color: #fff; }
.article-hero h1 { max-width: 820px; margin: 16px 0 18px; color: #fff; font-size: clamp(34px, 5.2vw, 54px); line-height: 1.2; letter-spacing: -0.055em; text-wrap: balance; }
.article-hero .article-meta { color: rgba(255,255,255,.82); }
.category-pill { display: inline-flex; padding: 7px 12px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: 13px; font-weight: 800; }
.article-hero .category-pill { color: #fff; background: rgba(49,94,251,.88); backdrop-filter: blur(8px); }

.article-card {
  padding: clamp(32px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.reading-help { display: grid; gap: 4px; margin: 0 0 34px; padding: 20px 22px; border-left: 6px solid var(--accent); border-radius: 0 15px 15px 0; color: #294139; background: var(--accent-soft); font-size: 16px; }
.entry-content { font-size: 20px; line-height: 1.9; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.55em; }
.entry-content .article-lead, .entry-content > p:first-child { color: #344056; font-size: 20px; line-height: 1.82; }

.entry-content h2 {
  margin: 2.6em 0 0.85em;
  padding-top: 0.15em;
  color: #101828;
  font-size: 31px;
  line-height: 1.38;
  letter-spacing: -0.045em;
}

.entry-content h2::before {
  content: "";
  display: block;
  width: 38px;
  height: 5px;
  margin-bottom: 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), #8f6bff);
}

.entry-content h3 { margin: 2em 0 0.7em; font-size: 24px; line-height: 1.45; letter-spacing: -0.035em; }
.entry-content strong { color: #183e9f; font-weight: 800; background: linear-gradient(transparent 62%, var(--highlight) 62%); }
.entry-content ul, .entry-content ol { margin: 0 0 1.65em; padding-left: 1.3em; }
.entry-content li { margin: 0.55em 0; padding-left: 0.2em; }
.entry-content blockquote { margin: 2em 0; padding: 22px 25px; border-left: 5px solid var(--accent); border-radius: 0 16px 16px 0; background: #f7f9ff; color: #3e4a60; }

.entry-content .key-summary,
.entry-content .highlight-box {
  margin: 2.1em 0;
  padding: 25px 27px;
  border-radius: 18px;
}

.entry-content .key-summary { border: 1px solid #cfd9ff; background: linear-gradient(145deg, #f7f9ff, #eef3ff); }
.entry-content .highlight-box { border: 1px solid #ccecdf; background: #f0fbf7; }
.entry-content .source-box { margin: 2.4em 0 0; padding: 24px 26px; border: 1px solid #d7dee6; border-radius: 18px; background: #f7f9fb; font-size: 16px; }
.entry-content .source-box h2 { margin-top: 0; font-size: 22px; }
.entry-content .source-box h2::before { display: none; }
.entry-content .step-list { margin: 1.5em 0 2em; padding: 0; list-style: none; counter-reset: easy-step; }
.entry-content .step-list li { position: relative; min-height: 74px; margin: 13px 0; padding: 20px 20px 20px 76px; border: 1px solid #d7e6e2; border-radius: 16px; background: #fbfefd; }
.entry-content .step-list li::before { counter-increment: easy-step; content: counter(easy-step); position: absolute; top: 17px; left: 18px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-weight: 900; }
.large-reading .entry-content { font-size: 24px; line-height: 2; }
.large-reading .entry-content .article-lead, .large-reading .entry-content > p:first-child { font-size: 25px; }
.entry-content .key-summary h2, .entry-content .highlight-box h2,
.entry-content .key-summary h3, .entry-content .highlight-box h3 { margin-top: 0; font-size: 23px; }
.entry-content .key-summary h2::before, .entry-content .highlight-box h2::before { display: none; }
.entry-content .key-summary > *:last-child, .entry-content .highlight-box > *:last-child { margin-bottom: 0; }

.entry-content table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: #f5f7fb; font-weight: 800; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; padding-top: 25px; border-top: 1px solid var(--line); }
.post-tags a { padding: 6px 11px; border-radius: 999px; color: #556176; background: #f1f4f8; font-size: 13px; font-weight: 700; text-decoration: none; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 25px; font-size: 15px; font-weight: 750; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 10px; }
.footer-links a { color: #4d586b; font-weight: 700; text-decoration: none; }

.pagination { margin-top: 34px; text-align: center; }
.pagination .page-numbers { display: inline-grid; min-width: 38px; height: 38px; margin: 3px; place-items: center; border-radius: 10px; background: #fff; text-decoration: none; }
.pagination .current { color: #fff; background: var(--accent); }

@media (max-width: 760px) {
  body { font-size: 19px; line-height: 1.88; word-break: normal; }
  .header-inner, .page-wrap, .footer-inner { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 64px; }
  .brand { flex: 0 0 auto; font-size: 17px; }
  .brand-mark { width: 44px; }
  .font-toggle { min-width: 40px; width: 40px; padding: 0; overflow: hidden; color: transparent; font-size: 0; }
  .font-toggle::after { content: "가+"; display: block; color: var(--accent-dark); font-size: 14px; line-height: 1; }
  .font-toggle[aria-pressed="true"]::after { color: #fff; }
  .site-nav { gap: 13px; }
  .site-nav a { font-size: 14px; }
  .page-wrap { padding: 38px 0 64px; }
  .hero { margin-bottom: 28px; }
  .hero p { font-size: 17px; }
  .hero-search { padding: 17px; }
  .hero-search div { display: grid; }
  .hero-search button { min-height: 52px; }
  .topic-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 36px; }
  .topic-links a { min-height: 78px; padding: 16px; font-size: 17px; }
  .topic-links span { display: none; }
  .post-grid { grid-template-columns: 1fr; gap: 15px; }
  .post-card { min-height: 0; padding: 0; border-radius: 18px; }
  .post-card-content { padding: 22px 22px 24px; }
  .post-card h2 { font-size: 22px; }
  .article-hero { min-height: 410px; margin: 0 -2px 18px; border-radius: 20px; }
  .article-hero-content { padding: 28px 24px; }
  .article-hero h1 { font-size: 32px; line-height: 1.28; }
  .article-card { margin: 0 -4px; padding: 27px 22px 38px; border-radius: 21px; }
  .entry-content { font-size: 19px; line-height: 1.9; }
  .entry-content .article-lead, .entry-content > p:first-child { font-size: 20px; }
  .entry-content h2 { margin-top: 2.25em; font-size: 26px; }
  .entry-content h3 { font-size: 21px; }
  .entry-content .key-summary, .entry-content .highlight-box { margin: 1.7em -5px; padding: 21px 19px; }
  .entry-content .step-list li { padding: 18px 17px 18px 68px; }
  .large-reading .entry-content { font-size: 22px; }
  .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .article-nav { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card { transition: none; }
}
