:root {
  --color-primary: #1E3A8A;
  --color-secondary: #3B82F6;
  --color-accent: #CA8A04;
  --color-neutral-dark: #1E40AF;
  --color-neutral-light: #F8FAFC;
  --color-ink: #0F172A;
  --color-muted: #475569;
  --color-border: rgba(30, 58, 138, 0.14);
  --font-heading: 'Gowun Batang', 'Noto Serif KR', serif;
  --font-body: 'Pretendard', 'Noto Sans KR', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 6px 20px -12px rgba(15, 23, 42, 0.25);
  --shadow-md: 0 20px 40px -24px rgba(15, 23, 42, 0.35);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-neutral-light);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-secondary); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.25; margin: 0 0 1rem; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 720px; }
.section { padding-block: 3rem; }
.section.alt { background: rgba(59, 130, 246, 0.04); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-sub { color: var(--color-muted); font-size: 1.05rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--color-secondary); margin: 0 0 1rem; }

/* === Header === */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 250, 252, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { background: none; border: none; color: var(--color-primary); padding: .4rem; display: inline-flex; }
.primary-nav { display: none; gap: 1.75rem; }
.primary-nav a { color: var(--color-ink); font-weight: 500; font-size: .98rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--color-accent); }
.primary-nav.is-open { display: flex; flex-direction: column; gap: 1rem; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1.25rem; border-bottom: 1px solid var(--color-border); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
}

/* === Hero (stacked) === */
.hero-stacked { padding-block: 3rem 2rem; }
.hero-stacked .container { max-width: 780px; }
.hero-stacked h1 { text-align: left; }
.hero-figure { margin: 2rem 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-sub { font-size: 1.15rem; color: var(--color-muted); max-width: 60ch; margin-bottom: 1.75rem; }

@media (min-width: 768px) {
  .hero-stacked { padding-block: 5rem 3rem; }
}

/* === Buttons === */
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 1rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; border: 1px solid transparent; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-neutral-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #a86f03; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* === Intro sections === */
.section-intro h2 { text-align: left; }
.section-intro p { font-size: 1.05rem; color: #1f2937; }

/* === Highlights grid === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .5rem; }
.card h3 { margin-top: .25rem; }
.card p { color: var(--color-muted); font-size: .97rem; margin-bottom: 0; }
.card-icon { width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(59, 130, 246, 0.1); color: var(--color-primary); }
.card-link { text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.card-link h3 { color: var(--color-primary); }
.read-more { display: inline-block; margin-top: .75rem; color: var(--color-accent); font-weight: 600; font-size: .95rem; }

/* === Quote === */
.section-quote { padding-block: 3.5rem; }
.quote { margin: 0; text-align: center; }
.quote p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2.5vw, 1.5rem); line-height: 1.55; color: var(--color-primary); }
.quote cite { display: block; margin-top: 1rem; font-style: normal; color: var(--color-muted); font-size: .95rem; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; padding-block: 3.5rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 55ch; margin-inline: auto; }
.cta-band a { color: #fff; }
.cta-band a:hover { color: var(--color-accent); }
.contact-lines { font-size: 1rem; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; color: var(--color-primary); font-size: .95rem; }
.field input, .field textarea { font: inherit; padding: .75rem .9rem; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-neutral-light); color: var(--color-ink); transition: border-color .2s ease, background .2s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-secondary); background: #fff; }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--color-muted); line-height: 1.5; }
.form-consent input { margin-top: .25rem; }
.form-success { background: rgba(202, 138, 4, 0.12); color: var(--color-primary); padding: 1rem 1.25rem; border-radius: 8px; margin-top: 1rem; }

/* === FAQ === */
.faq { display: flex; flex-direction: column; gap: .75rem; max-width: 780px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.faq summary { font-weight: 600; color: var(--color-primary); cursor: pointer; font-family: var(--font-heading); font-size: 1.05rem; list-style: none; position: relative; padding-right: 1.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.4rem; color: var(--color-accent); transition: transform .2s ease; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: .75rem; color: var(--color-muted); }

/* === Article detail === */
.article-detail { max-width: 68ch; margin-inline: auto; padding: 2.5rem 1.25rem 4rem; }
.article-detail header { margin-bottom: 1.5rem; }
.article-detail h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.article-sub { font-size: 1.2rem; color: var(--color-muted); line-height: 1.5; margin-bottom: 0; }
.article-hero { margin: 2rem 0; border-radius: var(--radius); overflow: hidden; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-detail p { font-size: 1.125rem; line-height: 1.8; margin-block: 1.25rem; color: #1f2937; }
.article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.back-link { font-weight: 600; color: var(--color-primary); }
.back-link:hover { color: var(--color-accent); }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(248, 250, 252, 0.85); padding-top: 3rem; margin-top: 3rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; letter-spacing: .02em; }
.site-footer a { color: rgba(248, 250, 252, 0.85); }
.site-footer a:hover { color: var(--color-accent); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.footer-tag { color: rgba(248, 250, 252, 0.7); font-size: .95rem; margin-top: .75rem; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { padding: .15rem 0; }
.footer-contact p { font-size: .95rem; line-height: 1.6; }
.footer-legal { font-size: .85rem; margin-top: 1rem; color: rgba(248, 250, 252, 0.7); }
.footer-copy { border-top: 1px solid rgba(248, 250, 252, 0.15); padding-block: 1.25rem; text-align: center; font-size: .85rem; color: rgba(248, 250, 252, 0.6); }
.logo-footer img { height: 56px; }

/* === Cookie banner === */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; display: none; z-index: 9999; background: var(--color-neutral-dark); color: var(--color-neutral-light); padding: 1.1rem 1.25rem; border-radius: var(--radius); box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.45); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; font-size: .92rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button { padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(248,250,252,0.3); background: transparent; color: var(--color-neutral-light); font-size: .88rem; font-weight: 500; }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner__actions button:hover { background: rgba(248,250,252,0.12); }
.cookie-banner__actions button[data-cookie-accept]:hover { background: #a86f03; }
.cookie-banner__prefs { margin-top: .9rem; display: flex; flex-direction: column; gap: .5rem; padding-top: .9rem; border-top: 1px solid rgba(248,250,252,0.2); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs button { align-self: flex-start; padding: .5rem 1rem; border-radius: 999px; border: none; background: var(--color-accent); color: #fff; font-weight: 600; font-size: .85rem; margin-top: .3rem; }
