/* 아이랑 — mobile-first, no build step. Palette from the 2026-08-14 carousel. */
:root {
  --cream: #FBF3E4;
  --paper: #FFFDF8;
  --navy: #13235B;
  --blue: #1F4FD6;
  --blue-dark: #173DA8;
  --yellow: #F6C21C;
  --coral: #EF6A3F;
  --coral-dark: #C4491F;
  --green: #3FA97F;
  --green-dark: #2A7A5A;
  --ink: #1B2340;
  --muted: #4A5170;
  --line: #E7DCC6;
  --radius: 16px;
  --shadow: 0 2px 0 rgba(19, 35, 91, .08), 0 8px 24px rgba(19, 35, 91, .06);
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 1rem; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.3; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: .5rem; }
.staging-banner { background: var(--yellow); color: var(--navy); text-align: center; font-size: .85rem; font-weight: 700; padding: .25rem; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 56px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; font-weight: 900; font-size: 1.3rem; }
.brand:hover { color: var(--yellow); }
.brand-mark { color: var(--yellow); font-size: 1.4rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.main-nav a { color: #fff; text-decoration: none; padding: .45rem .6rem; border-radius: 999px; font-weight: 700; font-size: .95rem; display: inline-block; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; }
.main-nav .nav-cta { background: var(--yellow); color: var(--navy); }
.main-nav .nav-cta:hover { background: #ffd54a; color: var(--navy); }
@media (max-width: 520px) {
  .header-inner { padding-top: .4rem; padding-bottom: .4rem; }
  .main-nav { width: 100%; overflow-x: auto; }
  .main-nav ul { flex-wrap: nowrap; }
  .main-nav a { font-size: .9rem; white-space: nowrap; }
}

main { display: block; padding: 1.25rem 0 2.5rem; min-height: 60vh; }
main:focus { outline: none; }

/* Hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 1.5rem 0; margin-top: -1.25rem; margin-bottom: 1.5rem; }
.hero .eyebrow { display: inline-block; background: var(--blue); color: #fff; font-weight: 800; padding: .2rem .75rem; border-radius: 6px; transform: rotate(-1deg); margin-bottom: .5rem; }
.hero h1 .accent { color: var(--blue); }
.date-chip { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 800; padding: .15rem .7rem; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 800; text-decoration: none; border: 2px solid var(--blue); cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue-dark); }
.btn-ghost:hover { background: rgba(31, 79, 214, .08); color: var(--navy); }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #ffd54a; border-color: #ffd54a; color: var(--navy); }
.btn-small { min-height: 36px; padding: .3rem .8rem; font-size: .9rem; }

/* Cards */
.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .card-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-list.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; gap: .35rem; }
.card.tone-coral { border-color: var(--coral); }
.card.tone-yellow { border-color: var(--yellow); }
.card.tone-green { border-color: var(--green); }
.card.tone-blue { border-color: var(--blue); }
.card h3 { margin: 0; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card clickable */
.card .meta { color: var(--muted); font-size: .92rem; display: grid; gap: .1rem; margin: 0; }
.card .meta dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.card .meta dd { margin: 0; }
.card .summary { color: var(--ink); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .card-actions { position: relative; z-index: 1; margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.tag { display: inline-block; font-size: .8rem; font-weight: 800; padding: .1rem .55rem; border-radius: 6px; background: var(--cream); color: var(--navy); border: 1px solid var(--line); }
.tag-free { background: #E3F4EC; color: var(--green-dark); border-color: #BFE3D1; }
.tag-coral { background: #FDE6DD; color: var(--coral-dark); border-color: #F6C4B2; }
.tag-region { background: #E6ECFB; color: var(--blue-dark); border-color: #C5D2F5; }
.tags { display: flex; gap: .3rem; flex-wrap: wrap; }

/* Filters */
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; margin-bottom: 1rem; display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; } }
.field { display: grid; gap: .25rem; }
.field label, .field legend { font-weight: 700; font-size: .9rem; color: var(--navy); }
input[type="text"], input[type="search"], input[type="email"], select { width: 100%; min-height: 44px; padding: .5rem .75rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); }
input:focus, select:focus { border-color: var(--blue); }
.check { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--blue); }
.segmented { display: flex; gap: .3rem; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.segmented label { display: inline-flex; align-items: center; min-height: 40px; padding: .3rem .8rem; border: 2px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 700; font-size: .92rem; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented input:checked + span { color: #fff; }
.segmented label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }

.result-count { color: var(--muted); font-size: .92rem; margin: .25rem 0 .75rem; }
.empty { background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; color: var(--muted); }
.pagination { display: flex; gap: .5rem; justify-content: center; align-items: center; margin: 1.25rem 0 0; flex-wrap: wrap; }
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }

/* Section heading */
.section { margin: 2rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }

/* Detail */
.detail { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.detail dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 1rem 0; }
.detail dt { font-weight: 800; color: var(--navy); }
.detail dd { margin: 0; white-space: pre-line; }
.callout { background: #FFF6D6; border-left: 6px solid var(--yellow); padding: .75rem 1rem; border-radius: 8px; margin: 1rem 0; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }
.breadcrumb a { color: var(--muted); }

/* Tabs (links) */
.tabs { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1rem; list-style: none; padding-left: 0; }
.tabs a { display: inline-flex; align-items: center; min-height: 40px; white-space: nowrap; padding: .3rem .9rem; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 700; }
.tabs a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Subscribe */
.subscribe-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.25rem; }
.subscribe-box h2 { color: #fff; }
.subscribe-box a { color: #fff; }
.subscribe-box .field label, .subscribe-box legend { color: #fff; }
.subscribe-box .hint { color: #D6DCF3; font-size: .88rem; }
.subscribe-box fieldset { border: 0; padding: 0; margin: 0 0 .5rem; }
.subscribe-box .segmented label { color: var(--navy); }
.subscribe-box .segmented label:has(input:checked) { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.form-grid { display: grid; gap: .75rem; }
.errorlist { color: #FFD1C2; list-style: none; padding: 0; margin: .25rem 0 0; font-weight: 700; font-size: .9rem; }
.form-success { background: #E3F4EC; color: var(--green-dark); border-radius: 12px; padding: 1rem; font-weight: 700; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Pick */
.pick-list { counter-reset: pick; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pick-list > li { counter-increment: pick; }
.pick-list .card::before { content: counter(pick); position: absolute; top: -12px; left: -8px; background: var(--coral); color: #fff; font-weight: 900; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); }
.pick-comment { background: var(--cream); border-radius: 10px; padding: .5rem .75rem; font-weight: 600; }

/* Page message / prose */
.page-message { text-align: center; padding: 3rem 1rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.5rem; }
.prose table { border-collapse: collapse; width: 100%; margin: .75rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem; text-align: left; vertical-align: top; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 1.5rem 0; font-size: .9rem; color: var(--muted); }
.site-footer .notice { color: var(--navy); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
