:root {
  --color-primary: #15803D;
  --color-secondary: #22C55E;
  --color-accent: #0369A1;
  --color-neutral-dark: #14532D;
  --color-neutral-light: #F0FDF4;
  --font-heading: 'Gowun Batang', serif;
  --font-body: 'Pretendard', 'Noto Sans KR', system-ui, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }

/* === Header === */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(240, 253, 244, 0.95);
  border-bottom: 1px solid rgba(20, 83, 45, 0.08);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}
.logo img { height: 72px; width: auto; }
.primary-nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
.primary-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500;
  font-size: .98rem;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-toggle {
  background: none; border: none; padding: .4rem; color: var(--color-neutral-dark); cursor: pointer;
}
.primary-nav.is-open {
  display: flex;
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column;
  background: var(--color-neutral-light);
  padding: 1rem 1.25rem;
  gap: 1rem;
  border-bottom: 1px solid rgba(20, 83, 45, 0.08);
}
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .primary-nav { display: flex; position: static; flex-direction: row; padding: 0; background: none; border: none; }
  .nav-toggle { display: none; }
}

/* === Hero (fullscreen archetype) === */
.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neutral-light);
  overflow: hidden;
  padding: 5rem 1.25rem;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(20,83,45,0.45), rgba(20,83,45,0.65));
}
.hero-inner {
  position: relative;
  max-width: 780px;
  text-align: center;
}
.hero-inner h1 { color: var(--color-neutral-light); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--color-neutral-light);
  opacity: .85;
  margin: 0 0 1rem;
}
.hero-sub {
  font-size: 1.15rem;
  max-width: 56ch;
  margin: 0 auto 2rem;
  color: var(--color-neutral-light);
  opacity: .95;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .9rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: var(--color-neutral-light); }
.btn-primary:hover { background: var(--color-neutral-dark); }
.btn-accent { background: var(--color-accent); color: var(--color-neutral-light); }
.btn-accent:hover { background: #024e78; }

/* === Sections === */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.section-narrow {
  max-width: 720px;
  text-align: left;
}
.section-narrow h2 { text-align: left; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-sub { color: rgba(20, 83, 45, 0.75); font-size: 1.05rem; }

/* === Grids === */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { 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-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* === Cards === */
.card {
  background: #ffffff;
  border: 1px solid rgba(20, 83, 45, 0.08);
  border-radius: 8px;
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s;
}
.card-icon { color: var(--color-primary); margin-bottom: 1rem; }
.card-link {
  display: block; color: inherit;
}
.card-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -14px rgba(20,83,45,0.25);
}
.card-link h3 { color: var(--color-primary); }

/* === Quote === */
.section-quote {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  max-width: none;
  padding: 5rem 1.25rem;
  margin: 0;
  text-align: center;
}
.section-quote blockquote {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.6;
}
.section-quote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .95rem;
  opacity: .85;
}

/* === CTA band === */
.cta-band {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  text-align: center;
  padding: 4rem 1.25rem;
}
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { max-width: 560px; margin: 0 auto 2rem; opacity: .9; }

/* === Contact form === */
.contact-form {
  display: grid;
  gap: 1.25rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(20, 83, 45, 0.08);
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 500; font-size: .95rem; }
.field input, .field textarea {
  font: inherit;
  padding: .75rem .9rem;
  border: 1px solid rgba(20, 83, 45, 0.2);
  border-radius: 4px;
  background: var(--color-neutral-light);
  color: var(--color-neutral-dark);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-consent {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .9rem;
  line-height: 1.5;
}
.form-consent input { margin-top: .25rem; flex-shrink: 0; }

/* === Contact band === */
.contact-band { text-align: center; }
.contact-band p { line-height: 1.9; }

/* === Article detail === */
.article-detail {
  max-width: 65ch;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
}
.article-detail h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.article-sub {
  font-size: 1.2rem;
  color: rgba(20, 83, 45, 0.75);
  line-height: 1.5;
  margin-bottom: 2rem;
}
.article-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 2rem 0;
  border-radius: 8px;
}
.article-detail > p {
  font-size: 1.125rem;
  line-height: 1.85;
  margin-block: 1.25rem;
}
.back-link { margin-top: 3rem; font-size: 1rem; }
.back-link a { color: var(--color-primary); font-weight: 500; }

/* === Thank-you === */
.thank-you { text-align: center; padding-top: 5rem; padding-bottom: 3rem; }
.thank-you .lead { font-size: 1.2rem; margin-bottom: 1.5rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 3.5rem 1.25rem 1.5rem;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
.site-footer .logo img { height: 64px; }
.site-footer h3 {
  color: var(--color-neutral-light);
  font-family: var(--font-body);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1rem;
}
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.site-footer a { color: var(--color-neutral-light); opacity: .85; }
.site-footer a:hover { opacity: 1; }
.site-footer address { font-style: normal; line-height: 1.9; margin-bottom: 1rem; }
.footer-legal { font-size: .88rem; opacity: .8; }
.copyright {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(240, 253, 244, 0.15);
  font-size: .85rem;
  opacity: .75;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* === 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.25rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
  max-width: 640px;
  margin-left: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-banner__actions button {
  padding: .55rem 1rem;
  border: 1px solid rgba(240,253,244,0.35);
  background: transparent;
  color: var(--color-neutral-light);
  border-radius: 4px;
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
}
.cookie-banner__actions [data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-banner__prefs {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(240,253,244,0.15);
  display: grid;
  gap: .5rem;
  font-size: .9rem;
}
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; }
.cookie-banner__prefs [data-cookie-save] {
  margin-top: .5rem;
  align-self: start;
  padding: .5rem .9rem;
  background: var(--color-accent);
  border: none;
  color: var(--color-neutral-light);
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
}
