/*
Theme Name: DAALDA
Theme URI: https://daalda.com
Author: DAALDA
Description: 다알다 생활정보 블로그 전용 테마
Version: 1.0.0
Text Domain: daalda
*/

:root {
  --ink: #17211b;
  --muted: #627067;
  --line: #dfe7e1;
  --paper: #fbfcf9;
  --surface: #ffffff;
  --green: #176b4d;
  --green-dark: #0e4d37;
  --mint: #dff4e8;
  --lime: #d7f36a;
  --warm: #f6efe2;
  --radius: 22px;
  --shadow: 0 16px 50px rgba(23, 61, 43, .09);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223, 231, 225, .8);
  background: rgba(251, 252, 249, .9);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.25rem; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--green); color: white; font-size: 1.05rem; box-shadow: 0 8px 22px rgba(23,107,77,.22); }
.brand small { display: block; margin-top: -4px; color: var(--muted); font-size: .63rem; font-weight: 700; letter-spacing: .08em; }
.site-nav { display: flex; align-items: center; gap: 26px; color: #34433a; font-size: .94rem; font-weight: 700; }
.site-nav a:hover, .site-nav a:focus { color: var(--green); }

.hero { padding: 82px 0 58px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 54px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: .82rem; font-weight: 800; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { max-width: 720px; margin: 20px 0 18px; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.08; letter-spacing: -.065em; }
.hero h1 span { color: var(--green); }
.hero-copy { max-width: 640px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 800; }
.button-primary { background: var(--green); color: white; box-shadow: 0 12px 28px rgba(23,107,77,.2); }
.button-secondary { border: 1px solid var(--line); background: white; }
.hero-card { position: relative; min-height: 360px; padding: 32px; border-radius: 34px; background: var(--green-dark); color: white; box-shadow: var(--shadow); }
.hero-card::after { content: "DAALDA"; position: absolute; right: -16px; bottom: -28px; color: rgba(255,255,255,.07); font-size: 5rem; font-weight: 950; letter-spacing: -.07em; }
.hero-card-label { color: var(--lime); font-size: .8rem; font-weight: 900; letter-spacing: .1em; }
.hero-card h2 { margin: 45px 0 14px; font-size: 2rem; line-height: 1.28; letter-spacing: -.04em; }
.hero-card p { color: rgba(255,255,255,.72); }
.hero-list { position: absolute; left: 32px; right: 32px; bottom: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-list span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.84); font-size: .78rem; }

.section { padding: 62px 0; }
.section-soft { background: #f2f6f1; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.55rem); line-height: 1.2; letter-spacing: -.045em; }
.section-head p { max-width: 530px; margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card { min-height: 174px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--mint); color: var(--green); font-weight: 900; }
.category-card h3 { margin: 20px 0 5px; font-size: 1.16rem; }
.category-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; min-height: 310px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-top { height: 9px; background: var(--green); }
.post-card:nth-child(3n+2) .post-card-top { background: #e6b64c; }
.post-card:nth-child(3n+3) .post-card-top { background: #6a78d1; }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.post-meta { color: var(--green); font-size: .78rem; font-weight: 850; }
.post-card h3 { margin: 14px 0 12px; font-size: 1.28rem; line-height: 1.42; letter-spacing: -.025em; }
.post-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.post-link { margin-top: auto; padding-top: 22px; color: var(--green); font-weight: 850; font-size: .88rem; }
.empty-state { grid-column: 1 / -1; padding: 48px; border: 1px dashed #b8c8bd; border-radius: var(--radius); text-align: center; color: var(--muted); }

.principles { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: stretch; }
.principle-title { padding: 34px; border-radius: 28px; background: var(--warm); }
.principle-title h2 { margin: 8px 0 14px; font-size: 2.25rem; line-height: 1.2; letter-spacing: -.05em; }
.principle-title p { color: #716855; }
.principle-list { display: grid; gap: 12px; }
.principle-item { display: grid; grid-template-columns: 42px 1fr; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.principle-item b { display: grid; place-items: center; height: 42px; border-radius: 12px; background: var(--ink); color: white; }
.principle-item h3 { margin: 0 0 4px; font-size: 1rem; }
.principle-item p { margin: 0; color: var(--muted); font-size: .88rem; }

.content-wrap { width: min(800px, calc(100% - 40px)); margin: 0 auto; }
.page-hero { padding: 70px 0 36px; }
.page-hero h1 { margin: 12px 0; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.18; letter-spacing: -.055em; }
.article { padding: 0 0 80px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 30px; color: var(--muted); font-size: .87rem; }
.article-content { padding: 36px clamp(22px, 5vw, 54px); border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: 0 12px 45px rgba(23,61,43,.05); }
.article-content h2 { margin: 2.2em 0 .7em; font-size: 1.65rem; line-height: 1.35; letter-spacing: -.035em; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin-top: 1.8em; }
.article-content p, .article-content li { color: #334039; }
.article-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--green); background: var(--mint); }
.article-content ul, .article-content ol { padding-left: 1.25em; }
.article-content li + li { margin-top: .5em; }
.article-content table { width: 100%; border-collapse: collapse; }
.article-content th, .article-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.article-content th { background: #f2f6f1; }
.article-content img { display: block; width: 100%; height: auto; margin: 26px auto 10px; border: 1px solid var(--line); border-radius: 16px; }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs a { color: var(--green); }
.breadcrumbs span { margin: 0 5px; }
.editor-note, .related-posts { margin-top: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.editor-note p { margin: 8px 0 0; color: var(--muted); }
.related-posts h2 { margin: 0 0 12px; font-size: 1.25rem; }
.related-posts ul { margin: 0; padding-left: 1.2em; }
.related-posts a { color: var(--green); font-weight: 750; }

.site-footer { padding: 48px 0; border-top: 1px solid var(--line); background: #eef3ed; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.footer-brand { font-size: 1.35rem; font-weight: 950; }
.footer-copy { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .86rem; font-weight: 700; }

@media (max-width: 850px) {
  .site-nav { display: none; }
  .hero { padding-top: 52px; }
  .hero-grid, .principles { grid-template-columns: 1fr; }
  .hero-card { min-height: 330px; }
  .category-grid, .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap, .content-wrap { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 66px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-card { padding: 25px; }
  .hero-list { left: 25px; right: 25px; }
  .section { padding: 45px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .category-grid, .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-content { padding: 26px 20px; }
}
