/* Yirun shared CI v4.7 — applied to all 6 pages */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background-color: #FAFAF7; overflow-x: hidden; color: #00285C; font-family: 'Noto Sans KR', sans-serif; }
::selection { background: rgba(135,169,107,0.2); color: #00285C; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Backdrop atmosphere */
.backdrop-container { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #E0E7E3 0%, #FAFAF7 100%); }
.sun-glow { position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 80vw; height: 80vw; border-radius: 50%; background: radial-gradient(circle, rgba(212,168,83,0.10) 0%, rgba(255,255,255,0) 70%); filter: blur(60px); }

/* Glass surface */
.glass { background: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.5); box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.nav-glass { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

/* Top nav */
.topnav { position: fixed; top: 32px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 999px; }
.topnav .logo { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; font-family: 'Noto Serif KR', serif; font-weight: 900; color: #00285C; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; flex-shrink: 0; }
.topnav .logo span:not(.mark) { white-space: nowrap; }
.topnav .logo .mark { width: 22px; height: 22px; border-radius: 999px; background: linear-gradient(135deg,#87A96B 0%,#00285C 100%); display:inline-block; }
.topnav .logo .mark-img { width: 26px; height: 26px; display:inline-block; object-fit: contain; border-radius: 6px; }
.topnav ul { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0 14px; margin: 0; }
.topnav a.tab { font-size: 13px; font-weight: 500; color: #636E72; white-space: nowrap; transition: color .2s; }
.topnav a.tab:hover { color: #00285C; }
.topnav a.tab.active { font-weight: 500; color: #00285C; }
.topnav .nav-cta { background: #00285C; color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.topnav .nav-cta:hover { background: #001E48; }
.topnav .menu-btn { display: none; background: none; border: 0; padding: 8px; color: #00285C; cursor: pointer; }

@media (max-width: 900px) {
  .topnav { padding: 8px 12px; }
  .topnav ul { display: none; position: absolute; top: 56px; left: 0; right: 0; background: rgba(255,255,255,0.95); border-radius: 20px; flex-direction: column; gap: 0; padding: 12px; backdrop-filter: blur(20px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
  .topnav ul.open { display: flex; }
  .topnav ul li { width: 100%; }
  .topnav ul a.tab { display: block; padding: 12px 14px; font-size: 14px; }
  .topnav .nav-cta { padding: 8px 12px; font-size: 12px; }
  .topnav .menu-btn { display: inline-flex; }
}

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: #87A96B; text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 600; }
.eyebrow::before, .eyebrow::after { content: ""; display: block; width: 22px; height: 1px; background: #87A96B; opacity: 0.5; }
h1, h2, h3, h4 { font-family: 'Noto Serif KR', serif; color: #00285C; letter-spacing: -0.02em; margin: 0; line-height: 1.25; }
/* Korean italic synthesis is broken in Noto Serif KR — render as upright lighter weight instead.
   Only roman/latin runs (wrapped in .en) get true italic. */
.italic-sub { font-family: 'Noto Serif KR', serif; font-weight: 400; font-style: normal; color: #4A4A5A; }
.italic-sub .en, .ital .en { font-family: 'Cormorant Garamond', 'Noto Serif KR', serif; font-style: italic; }
h1 .ital, h2 .ital, h3 .ital, h4 .ital { font-style: normal !important; font-weight: 400; color: #4A4A5A; }
.hero h1 .ital { font-style: normal; }
p { color: #4A4A5A; line-height: 1.8; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; border: 0; transition: all .2s cubic-bezier(.4,0,.2,1); text-decoration: none; }
.btn-primary { background: #87A96B; color: #fff; box-shadow: 0 12px 28px rgba(135,169,107,0.32); }
.btn-primary:hover { background: #789660; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(135,169,107,0.42); }
.btn-secondary { background: rgba(255,255,255,0.7); border: 1px solid rgba(0,40,92,0.18); color: #00285C; backdrop-filter: blur(10px); }
.btn-secondary:hover { background: #fff; border-color: #87A96B; }

/* Footer */
footer.site-footer { background: #001B3D; color: rgba(255,255,255,0.7); padding: 80px 24px 40px; margin-top: 80px; position: relative; z-index: 1; }
footer .row1 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
footer h4.brand { color: #fff; font-family: 'Noto Serif KR', serif; font-size: 20px; font-weight: 700; margin: 0; }
footer .channels { display: flex; flex-wrap: wrap; gap: 10px; }
footer .channels a, footer .channels span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500; transition: background .2s; }
footer .channels a:hover { background: rgba(255,255,255,0.20); }
footer .channels img { width: 16px; height: 16px; opacity: 0.85; }
footer .channels .disabled { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.4); cursor: not-allowed; }
footer .channels .disabled img { opacity: 0.4; }
footer .grid2 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; margin-bottom: 56px; }
@media (max-width: 800px) { footer .grid2 { grid-template-columns: 1fr; gap: 32px; } }
footer .infoA p { color: rgba(255,255,255,0.7); font-size: 13.5px; line-height: 1.9; margin: 0 0 4px; }
footer .ad-resp { color: #87A96B; font-weight: 600; font-size: 14px; margin: 0 0 16px; }
footer .legal p { color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.9; margin: 0 0 12px; }
footer .legal-disclosure { margin-top: 24px; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,0.08); }
footer .legal-disclosure p { font-size: 11.5px; color: rgba(255,255,255,0.45); line-height: 1.75; margin: 0 0 6px; }
footer .legal-disclosure p:last-child { margin-bottom: 0; }
footer .copyline { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.10); text-align: center; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); font-family: 'Cormorant Garamond', serif; font-style: italic; }

/* Skip link (WCAG 2.4.1) */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 9999; }
.skip-link:focus { left: 50%; top: 16px; width: auto; height: auto; transform: translateX(-50%); padding: 12px 24px; background: #00285C; color: #fff; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,0.18); outline: 2px solid #87A96B; outline-offset: 2px; }

/* Floating CTA (KakaoTalk) */
.floating-cta { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: #FEE500; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,40,92,0.18); z-index: 50; transition: transform .25s, opacity .25s; outline: none; }
.floating-cta:hover { transform: scale(1.08); }
.floating-cta:focus-visible { box-shadow: 0 0 0 3px rgba(0,40,92,0.5); }
.floating-cta svg { width: 28px; height: 28px; fill: #3C1E1E; }
.floating-cta[data-focus-defer="true"] { opacity: 0; visibility: hidden; pointer-events: none; }

/* Reveal */
.reveal-item { opacity: 0; transform: translateY(20px); animation: fluidReveal .7s cubic-bezier(.165,.84,.44,1) forwards; }
.delay-100 { animation-delay: 100ms; } .delay-200 { animation-delay: 200ms; } .delay-300 { animation-delay: 300ms; } .delay-400 { animation-delay: 400ms; }
@keyframes fluidReveal { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .reveal-item { animation: none; opacity: 1; transform: none; } }

/* Page header pattern */
.page-header { position: relative; padding: 200px 24px 80px; text-align: center; max-width: 1100px; margin: 0 auto; isolation: isolate; }
.page-header::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); background-image: var(--hero-bg, none); background-size: cover; background-position: var(--hero-bg-pos, center 35%); opacity: var(--hero-bg-opacity, 0.32); z-index: 0; pointer-events: none; }
.page-header::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); background: linear-gradient(180deg, rgba(248,246,242,0.45) 0%, rgba(248,246,242,0.30) 35%, rgba(248,246,242,0.65) 75%, rgba(248,246,242,1) 100%); z-index: 1; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .page-header::before { transition: opacity 1.2s ease; } }
.page-header > * { position: relative; z-index: 2; }
.page-header h1 { font-size: clamp(2.2rem,4.6vw,3.6rem); line-height: 1.18; }
.page-header h1 .black { font-weight: 900; display: block; }
.page-header .lead { color: #636E72; font-size: 17px; line-height: 1.85; max-width: 640px; margin: 24px auto 0; white-space: pre-line; }
