@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=IBM+Plex+Sans+KR:wght@400;500;700&display=swap');

:root { --font-gowun: 'Gowun Batang'; --font-plex: 'IBM Plex Sans KR'; }

:root {
  --paper: #fbfdf8;
  --white: #ffffff;
  --ink: #1f2a22;
  --ink-soft: #4c5a4f;
  --muted: #828f82;
  --line: #e3ecdb;
  --line-soft: #eef4e7;
  --spring: #5b9e6b;
  --spring-bright: #6fb87f;
  --spring-deep: #36603f;
  --spring-soft: #eaf3e1;
  --tint: #f1f7e8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 44px rgba(54, 96, 63, 0.13);
  --shadow-soft: 0 8px 22px rgba(54, 96, 63, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 90% -6%, rgba(111, 184, 127, 0.16), transparent 26rem),
    linear-gradient(180deg, var(--tint), var(--paper) 22%);
  color: var(--ink);
  font-family: var(--font-plex), ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--spring-deep);
  color: var(--white);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-gowun), Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--spring-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

main {
  width: min(1100px, calc(100% - 44px));
  margin: 0 auto;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
}

.section-head p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Pillar masthead (left wordmark + bright green rule + pillar nav) ---------- */
.pillar-masthead {
  width: min(1100px, calc(100% - 44px));
  margin: 0 auto;
  padding-top: 26px;
}

.pillar-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--spring-bright), var(--spring-deep));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.wordmark-text strong {
  display: block;
  font-family: var(--font-gowun), Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wordmark-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.pillar-kicker {
  margin: 0;
  color: var(--spring-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 시그니처: 밝은 초록 룰 */
.pillar-nav {
  display: flex;
  gap: 0;
  border-top: 3px solid var(--spring);
  border-bottom: 1px solid var(--line);
}

.pillar-nav a {
  flex: 1;
  text-align: center;
  padding: 14px 6px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink-soft);
  border-right: 1px solid var(--line-soft);
  transition: background 0.16s ease, color 0.16s ease;
}

.pillar-nav a:last-child {
  border-right: 0;
}

.pillar-nav a:hover {
  background: var(--spring-soft);
  color: var(--spring-deep);
}

/* ---------- Lead (asymmetric split, left text + image panel) ---------- */
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  padding: 58px 0 50px;
}

.lead h1 {
  font-size: clamp(1.95rem, 3.6vw, 3.1rem);
  line-height: 1.32;
}

.lead-lede {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.82;
}

.lead-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.lead-tags span {
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--spring-deep);
  font-size: 0.85rem;
  font-weight: 600;
}

.lead-visual {
  height: clamp(280px, 38vw, 420px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(31, 42, 34, 0.04), rgba(31, 42, 34, 0.2)),
    url("/images/vernalguide-lead.jpg") center / cover no-repeat,
    linear-gradient(150deg, #d7ead0, #b4d6b0 55%, #7cb487);
  box-shadow: var(--shadow);
}

/* ---------- Pillar guide cards (signature) ---------- */
.pillars {
  padding: 18px 0 56px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--spring);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.pillar-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pillar-index {
  font-family: var(--font-gowun), Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--spring);
  letter-spacing: 0.02em;
}

.pillar-area {
  background: var(--spring-soft);
  color: var(--spring-deep);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.pillar-card h3 {
  font-size: 1.18rem;
  line-height: 1.4;
}

.pillar-card > p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  line-height: 1.62;
  font-size: 0.94rem;
}

.pillar-points {
  list-style: none;
  margin: 16px 0 16px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.pillar-points li,
.article-content ul li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.92rem;
}

.pillar-points li::before,
.article-content ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--spring);
  box-shadow: 0 0 0 3px var(--spring-soft);
}

.pillar-count {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Featured answer block (bright signature) ---------- */
.featured {
  margin: 8px 0;
  padding: 44px clamp(28px, 5vw, 52px);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--spring-bright), var(--spring-deep));
  color: var(--white);
  box-shadow: var(--shadow);
}

.featured-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.featured-area {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.featured-kicker {
  color: #e7f4dd;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.featured-question {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.34;
  max-width: 760px;
}

.featured-answer {
  margin: 18px 0 0;
  max-width: 720px;
  color: #eef6e7;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  line-height: 1.82;
}

.featured-basis {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 860px;
}

.featured-basis li {
  position: relative;
  padding: 14px 16px 14px 38px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  color: #f3f9ee;
  font-size: 0.92rem;
  line-height: 1.55;
}

.featured-basis li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 1.15em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
}

.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--spring-deep);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.16s ease;
}

.featured-link::after {
  content: "→";
}

.featured-link:hover {
  transform: translateX(2px);
}

/* ---------- Method (numbered) ---------- */
.method {
  padding: 60px 0 44px;
}

.method-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: none;
}

.method-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}

.method-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--spring-soft);
  color: var(--spring-deep);
  font-family: var(--font-gowun), Georgia, serif;
  font-weight: 700;
}

.method-list li p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

/* ---------- Recent (list rows, not cards) ---------- */
.recent {
  padding: 16px 0 56px;
}

.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.recent-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 26px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s ease;
}

.recent-row:hover {
  background: var(--line-soft);
}

.recent-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-chip {
  align-self: flex-start;
  color: var(--spring-deep);
  background: var(--spring-soft);
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.recent-meta time {
  color: var(--muted);
  font-size: 0.84rem;
}

.recent-body strong {
  display: block;
  font-family: var(--font-gowun), Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.recent-desc {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  line-height: 1.66;
  font-size: 0.96rem;
}

/* ---------- About ---------- */
.about {
  padding: 12px 0 50px;
  max-width: 760px;
}

.about h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 14px;
}

.about p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.84;
  font-size: 1.04rem;
}

/* ---------- Footer ---------- */
.site-footer {
  width: min(1100px, calc(100% - 44px));
  margin: 30px auto 0;
  padding: 30px 0 56px;
  border-top: 3px solid var(--spring);
  color: var(--muted);
}

.footer-mark {
  font-family: var(--font-gowun), Georgia, serif;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
}

.footer-desc {
  margin: 9px 0 18px;
  max-width: 480px;
  line-height: 1.66;
  font-size: 0.92rem;
}

.footer-disclosure {
  display: inline-block;
  margin: 0;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--spring-soft);
  color: var(--spring-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---------- Article (single column, answer-first) ---------- */
.article-shell {
  max-width: 780px;
  padding: 30px 0 80px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--spring-deep);
}

.article-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(26px, 5vw, 54px);
  box-shadow: var(--shadow-soft);
}

.article-area {
  display: inline-block;
  color: var(--spring-deep);
  background: var(--spring-soft);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.article-head h1 {
  margin: 16px 0 0;
  font-size: clamp(1.75rem, 3.3vw, 2.55rem);
  line-height: 1.32;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 답변 우선 인트로 블록 (시그니처, laurel의 summary-box와 다른 구성) */
.answer-first {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 30px 0 8px;
  padding: 24px 26px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 5px solid var(--spring);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.answer-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--spring);
  color: var(--white);
  font-family: var(--font-gowun), Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
}

.answer-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--spring-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.answer-text p {
  margin: 0;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.78;
}

.article-content {
  margin-top: 30px;
  color: #283226;
  font-size: 1.05rem;
  line-height: 1.88;
}

.article-content h2 {
  margin: 44px 0 14px;
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  padding-left: 14px;
  border-left: 4px solid var(--spring);
}

.article-content p {
  margin: 0 0 18px;
}

.article-content a {
  color: var(--spring-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--spring-bright);
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.article-content ol {
  counter-reset: oli;
}

.article-content ol li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.article-content ol li::before {
  counter-increment: oli;
  content: counter(oli);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--spring-soft);
  color: var(--spring-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.article-content blockquote {
  margin: 26px 0;
  padding: 22px 28px;
  background: var(--spring-soft);
  border-radius: var(--radius-sm);
  color: var(--spring-deep);
  font-family: var(--font-gowun), Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.7;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.96rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
}

.article-content th:last-child,
.article-content td:last-child {
  border-right: 0;
}

.article-content tbody tr:last-child td {
  border-bottom: 0;
}

.article-content th {
  background: var(--spring-deep);
  color: var(--white);
  font-weight: 700;
}

.article-content tbody tr:nth-child(even) td {
  background: var(--line-soft);
}

.faq-section,
.evidence-note {
  margin-top: 42px;
}

.faq-section h2,
.evidence-note h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.62rem);
  margin-bottom: 8px;
}

.faq-section details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  gap: 0.6em;
  align-items: baseline;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::before {
  content: "Q";
  font-family: var(--font-gowun), Georgia, serif;
  color: var(--spring);
  font-weight: 700;
}

.faq-section details[open] summary::before {
  color: var(--spring-deep);
}

.faq-section details p,
.evidence-note p {
  color: var(--ink-soft);
  line-height: 1.76;
}

.faq-section details p {
  margin: 10px 0 0 1.4em;
}

.evidence-note {
  padding: 22px 24px;
  background: var(--tint);
  border: 1px dashed var(--spring-bright);
  border-radius: var(--radius);
}

.article-foot {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--spring-deep);
  font-weight: 700;
}

.back-link::before {
  content: "←";
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .lead {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 36px;
  }

  .lead-visual {
    order: -1;
    height: clamp(200px, 48vw, 280px);
  }

  .recent-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .recent-meta {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .pillar-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .pillar-nav a {
    font-size: 0.88rem;
    padding: 12px 4px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
