/* Fluttering Penguins: the live site. Sizes and colours are measured from the design (1214 px wide):
   1050 px content column, 55 px nav, 477 px hero, 1160 px impact banner. Fluid below that. */
@font-face { font-family: Pretendard; font-weight: 400; src: url(/fonts/Pretendard-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Pretendard; font-weight: 500; src: url(/fonts/Pretendard-Medium.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Pretendard; font-weight: 600; src: url(/fonts/Pretendard-SemiBold.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Pretendard; font-weight: 700; src: url(/fonts/Pretendard-Bold.woff2) format("woff2"); font-display: swap; }
:root {
  --ink: #152f5e; --text: #5f6b82; --muted: #7d889c; --blue: #255397; --blue-d: #1d4580; --eyebrow: #4a7fc4;
  --line: #eef0f4; --bg: #ffffff; --soft: #f3f7fd;
  --c-blue: #d2e8fd; --c-green: #d3f4e5; --c-violet: #e4e3fd; --c-peach: #feebc7; --c-pink: #fbe1fc;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1082px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 45px; padding: 0 26px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.btn svg { width: auto; height: 14px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 35px; padding: 0 18px; font-size: 13px; }
.btn-sm svg { height: 12px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-white { background: #fff; color: #2f5a9c; }
.btn-white:hover { box-shadow: 0 6px 18px rgba(10, 40, 90, .25); }
.btn-glass { color: #fff; border-color: rgba(255,255,255,.93); background: rgba(35, 75, 130, .3); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(35, 75, 130, .45); }
.btn-outline { height: 37px; padding: 0 20px; font-size: 12.5px; color: #3a5f9c; border-color: #6381b1; background: #fff; }
.btn-outline:hover { background: var(--soft); }
.btn-outline svg { height: 9px; transition: transform .2s; }
.btn-outline[aria-expanded="true"] svg { transform: rotate(90deg); }
.wide { width: 100%; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; height: 55px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16.5px; color: #172d58; letter-spacing: -.01em; }
.brand svg { width: 27px; height: auto; }
.menu { display: flex; gap: 40px; margin: 0 auto; padding-left: 92px; height: 100%; }
.menu a { position: relative; display: flex; align-items: center; font-size: 13px; font-weight: 500; color: #4a5873; }
.menu a:hover { color: var(--blue); }
.menu a.on { color: var(--blue); }
.menu a.on::after { content: ""; position: absolute; left: -9px; right: -9px; bottom: -1px; height: 2px; background: var(--blue); border-radius: 2px; }
.nav-end { display: flex; align-items: center; gap: 22px; }
.lang { position: relative; display: flex; align-items: center; }
.lang select { appearance: none; border: 0; background: none; font-size: 12.5px; color: #5d6a82; padding: 6px 16px 6px 2px; cursor: pointer; }
.lang svg { position: absolute; right: 2px; width: 8px; pointer-events: none; }
.burger { display: none; }

/* hero */
.hero { position: relative; height: 477px; color: #fff; overflow: hidden; background: #7fa3c9; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-in { position: relative; padding-top: 78px; padding-left: 24px; }
.hero-eyebrow { font-size: 15px; color: #d4e8f2; }
.hero h1 { font-size: 40px; line-height: 1.13; font-weight: 700; letter-spacing: -.01em; margin: 10px 0 18px; text-shadow: 0 1px 12px rgba(20, 50, 100, .12); }
.hero-lead { font-size: 15px; line-height: 1.6; color: #e3edf7; }
.hero-ctas { display: flex; gap: 15px; margin-top: 22px; flex-wrap: wrap; }
.hero-ctas .btn-white { width: 150px; padding: 0; }
.hero-ctas .btn-glass { width: 141px; padding: 0; }

/* sections */
.eyebrow { font-size: 11px; font-weight: 600; color: var(--eyebrow); letter-spacing: .02em; }
h2 { font-size: 25px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; margin: 5px 0 12px; }
.lead { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.mission { padding: 28px 0 40px; text-align: center; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 33px; }
.cols article { padding: 0 8px; }
.cols article + article { border-left: 1px solid #f2f3f7; }
.circ { display: grid; place-items: center; width: 59px; height: 59px; border-radius: 50%; margin: 0 auto 14px; }
.circ svg { width: 54%; height: auto; }
.c-blue { background: var(--c-blue); } .c-green { background: var(--c-green); } .c-violet { background: var(--c-violet); }
.c-peach { background: var(--c-peach); } .c-pink { background: var(--c-pink); }
h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #1d3561; }
.cols p { font-size: 13px; line-height: 1.65; color: var(--text); }

.impact-wrap { padding: 0 27px; max-width: 1214px; margin: 0 auto; }
.impact { position: relative; min-height: 198px; border-radius: 12px; overflow: hidden; border: 1px solid #e9f0fa; background: linear-gradient(90deg, #eff5fd, #f4f8fe 55%, #e8f1fb); }
.impact-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.impact-in { position: relative; padding: 27px 55px 30px; }
.impact h2 { font-size: 22px; margin: 4px 0 8px; }
.impact .lead { font-size: 13px; }
.stats { display: flex; gap: 0; margin-top: 25px; }
.stats > div { display: grid; grid-template-columns: 46px auto; column-gap: 11px; align-items: center; width: 180px; }
.stats .circ { grid-row: span 2; width: 46px; height: 46px; margin: 0; }
.num { font-size: 20px; font-weight: 700; line-height: 1.1; color: #1b3769; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.story { padding: 34px 0 60px; }
.story-in { display: grid; grid-template-columns: 467px 1fr; gap: 58px; align-items: start; }
.story-photo img { width: 100%; height: auto; border-radius: 12px; }
.story-text { padding-top: 10px; }
.story h2 { font-size: 23px; }
.story .lead { font-size: 14px; line-height: 1.45; }
.story .btn-outline { margin-top: 20px; }
.promise { margin-top: 20px; padding: 18px 20px; background: var(--soft); border-radius: 12px; }
.promise ul { margin: 0 0 16px 18px; color: var(--text); font-size: 14px; line-height: 1.8; }

.news { padding: 44px 0; background: var(--soft); }
.news-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sub { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.sub input { height: 45px; width: 280px; border: 1px solid #d7e0ee; border-radius: 999px; padding: 0 20px; background: #fff; }
.msg { width: 100%; font-size: 13px; min-height: 1em; color: var(--blue); }
.msg.err { color: #c0392b; }

.foot { padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot nav { display: flex; gap: 18px; margin-left: auto; }
.foot nav a:hover { color: var(--blue); }
.copy { width: 100%; }

/* donate dialog */
.modal { margin: auto; width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 0; border-radius: 18px; padding: 28px 26px 24px; color: var(--ink);
  box-shadow: 0 24px 60px rgba(10, 30, 70, .25); }
.modal::backdrop { background: rgba(14, 30, 60, .45); backdrop-filter: blur(2px); }
.modal h2 { margin-top: 0; }
.x { position: absolute; right: 12px; top: 10px; }
.x button { border: 0; background: none; font-size: 26px; line-height: 1; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--muted); }
.x button:hover { background: var(--soft); }
#donateForm { display: grid; gap: 12px; margin-top: 16px; }
fieldset { border: 0; }
legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 999px; padding: 4px; }
.seg label, .amounts label { position: relative; cursor: pointer; }
.seg input, .amounts input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 8px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); }
.seg input:checked + span { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amounts legend { grid-column: 1 / -1; }
.amounts span { display: block; text-align: center; padding: 10px 4px; border: 1px solid #d7e0ee; border-radius: 10px; font-size: 13px; font-weight: 600; }
.amounts input:checked + span { border-color: var(--blue); background: #eaf1fb; color: var(--blue); }
.seg input:focus-visible + span, .amounts input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.field input, .field textarea { border: 1px solid #d7e0ee; border-radius: 10px; padding: 10px 12px; font-weight: 400; font-size: 15px; }
.field input:focus, .field textarea:focus, .sub input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 8px; font-size: 12.5px; color: var(--text); align-items: flex-start; }
.check input { margin-top: 3px; }
.d-done { text-align: center; padding: 10px 0; }
.big { width: 72px; height: 72px; }
.ref { font-size: 12px; color: var(--muted); margin: 8px 0 18px; }

/* tablets and phones */
@media (max-width: 1000px) {
  .menu { padding-left: 0; gap: 26px; }
  .stats { flex-wrap: wrap; row-gap: 18px; }
  .stats > div { width: 50%; }
}
@media (max-width: 800px) {
  .burger { display: grid; gap: 4px; margin-left: auto; margin-right: 6px; width: 40px; height: 40px; place-content: center; border: 0; background: none; cursor: pointer; order: 2; }
  .burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-end { order: 1; margin-left: auto; gap: 8px; }
  .nav-end .btn-sm span { display: none; }
  .nav-end .btn-sm { padding: 0 12px; }
  .nav-end .btn-sm svg { height: 13px; }
  .burger { order: 3; margin-right: -8px; }
  .menu { position: absolute; left: 0; right: 0; top: 55px; flex-direction: column; gap: 0; height: auto; padding: 8px 16px 16px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(10,30,70,.08); display: none; }
  .menu.open { display: flex; }
  .menu a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .menu a.on::after { display: none; }
  .hero { height: auto; min-height: 560px; }
  .hero-bg img { object-position: 72% 50%; }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,62,112,.72), rgba(30,62,112,.35) 55%, rgba(30,62,112,0) 75%); z-index: 1; }
  .hero-in { z-index: 2; padding: 40px 16px 260px; }
  .hero h1 { font-size: 30px; }
  .hero h1 br, .hero-lead br, .lead br, .cols p br { display: none; }
  .cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .cols article + article { border: 0; }
  .impact-wrap { padding: 0 16px; }
  .impact { display: flex; flex-direction: column; }
  .impact-in { padding: 24px 20px 8px; }
  .impact-bg { order: 2; }
  .impact-bg img { position: static; height: 150px; opacity: 1; object-position: 88% 60%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
  .story-in { grid-template-columns: 1fr; gap: 24px; }
  .news-in { flex-direction: column; align-items: stretch; }
  .sub input { flex: 1; width: auto; min-width: 0; }
  .foot nav { margin-left: 0; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .cols { grid-template-columns: 1fr; }
  .stats > div { width: 100%; }
  .amounts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
