/* =========================================================
   A-Preview 디자인
   고칠 필요 없는 파일이에요. 색과 글꼴은 맨 위 :root에 모여 있어요.
   ---------------------------------------------------------
   레이아웃: 잡지 표지 같은 아이보리 첫 화면 → 아이보리와 블랙 띠가
   번갈아 나오는 1200px 한 단 구성. 좌우 여백 32px (폰에서는 18px).
   ========================================================= */

:root {
  --ground: #F4EFE6;      /* 아이보리 바탕 */
  --paper: #FFFFFF;       /* 카드 */
  --ink: #111111;         /* 글자·테두리 */
  --ink-2: #4A4540;       /* 보조 글자 */
  --ink-3: #6A635C;       /* 캡션 */
  --night: #111111;       /* 블랙 띠 */
  --night-2: #1E1E1E;     /* 블랙 띠 위 카드 */
  --night-3: #2C2C2C;     /* 블랙 띠 위 단어 표지 */
  --on-night: #FFFFFF;
  --on-night-2: #CFCAC4;
  --accent: #FFD60A;      /* 노랑 포인트 */
  --accent-2: #2B3BFF;    /* 코발트 포인트 */

  --display-ko: "Black Han Sans", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display-en: "Bricolage Grotesque", "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
  --body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --wrap: 1200px;
  --gutter: 32px;
  --radius: 20px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 { text-wrap: balance; }

/* ---------- 공통 조각 ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--display-en);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow .ko { font-family: var(--body); font-weight: 700; letter-spacing: 0.04em; text-transform: none; }

.pill {
  display: inline-flex; align-items: center;
  border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.2;
  padding: 6px 12px;
  white-space: nowrap;
}
.pill-accent { background: var(--accent); color: var(--ink); }
.pill-cobalt { background: var(--accent-2); color: var(--paper); }
.pill-ink { background: var(--ink); color: var(--paper); }
.pill-soon { background: transparent; color: var(--ink-3); border: 1.5px dashed currentColor; }
.on-night .pill-soon { color: var(--on-night-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 16px; font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.more { font-weight: 700; font-size: 16px; padding-block: 10px; text-underline-offset: 4px; }

.section { padding-block: 96px; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 40px;
}
.section-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 680px; min-width: 0; }
.section-title {
  margin: 0;
  font-family: var(--display-ko);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.12;
}
.section-desc { margin: 0; font-size: 17px; color: var(--ink-2); }

.on-night { background: var(--night); color: var(--on-night); }
.on-night .section-desc { color: var(--on-night-2); }
.on-night .eyebrow { color: var(--accent); }
.on-night a { color: var(--on-night); }

/* ---------- 머리글 ---------- */
.site-header { background: var(--ground); border-bottom: 2px solid var(--ink); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 32px;
  padding-block: 16px;
}
.logo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; text-decoration: none; color: var(--ink); }
.logo-mark { font-family: var(--display-en); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; line-height: 1.2; }
.logo-slogan { font-size: 13px; font-weight: 500; color: var(--ink-2); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding-block: 10px; }
.nav a .ko { font-size: 12px; color: var(--ink-3); margin-left: 3px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.nav .nav-cta { background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-weight: 700; }

/* ---------- 첫 화면 ---------- */
.hero { border-bottom: 3px solid var(--ink); }
.hero .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 56px;
  padding-block: 56px 88px;
}
.hero-text { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-badge { align-self: flex-start; transform: rotate(-3deg); font-family: var(--display-en); font-weight: 800; letter-spacing: 0.08em; font-size: 14px; padding: 8px 16px; }
.hero-title {
  margin: 0;
  font-family: var(--display-ko);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 116px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.hero-sub { margin: 0; max-width: 34em; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.word-card {
  flex: 1 1 340px; min-width: 0;
  background: var(--night); color: var(--on-night);
  border-radius: 24px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transform: rotate(1.5deg);
}
.word-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.word-card-label { font-family: var(--display-en); font-weight: 800; font-size: 13px; letter-spacing: 0.1em; color: var(--accent); }
.word-card-label-ko { font-size: 13px; color: var(--on-night-2); }
.word-card-word { font-family: var(--display-en); font-weight: 800; font-size: clamp(56px, 7vw, 72px); line-height: 1; letter-spacing: -0.03em; }
.word-card-meaning { margin: 0; font-size: 15px; color: var(--on-night-2); }
.word-card-example { border-top: 1px solid #3A3A3A; padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.word-card-example strong { font-size: 17px; }
.word-card-example span { font-size: 15px; color: var(--on-night-2); }
.word-card .btn { align-self: flex-start; min-height: 44px; padding: 10px 18px; font-size: 14px; border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) { .word-card, .hero-badge, .name-sample { transform: none; } }

/* ---------- 인사말 띠 ---------- */
.greetings { background: var(--night); color: var(--on-night); padding-block: 22px; }
.greetings ul {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px 0;
  font-family: var(--display-en); font-weight: 800; font-size: clamp(22px, 3vw, 28px);
}
.greetings li { display: flex; align-items: center; }
.greetings li + li::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); margin: 0 24px;
}

/* ---------- Word 카드 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none;
  min-width: 0;
}
a.card:hover { box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-label { font-family: var(--display-en); font-weight: 800; font-size: 15px; letter-spacing: 0.06em; }
.card-title { margin: 0; font-size: 21px; line-height: 1.38; font-weight: 700; }
.card-summary { margin: 0; font-size: 15px; color: var(--ink-2); }
.card-meta { margin-top: auto; font-size: 13px; color: var(--ink-3); }
.card-big { font-family: var(--display-en); font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; }
.card-cobalt { background: var(--accent-2); color: var(--paper); }
.card-cobalt .card-summary, .card-cobalt .card-meta { color: #E3E6FF; }

/* ---------- Vibe 카드 ---------- */
.vibe-layout { display: flex; flex-wrap: wrap; gap: 24px; }
.vibe-main { flex: 2 1 560px; min-width: 0; }
.vibe-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.story {
  background: var(--night-2); color: var(--on-night);
  border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; height: 100%;
}
.story-cover {
  background: var(--night-3);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; min-height: 180px;
  font-family: var(--display-en); font-weight: 800;
  font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; line-height: 1;
  color: var(--accent);
  text-align: center;
}
.vibe-main .story-cover { min-height: 320px; font-size: clamp(56px, 9vw, 120px); }
.story-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.story-title { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700; }
.vibe-main .story-title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; }
.story-summary { margin: 0; font-size: 15px; color: var(--on-night-2); }
.story-word { align-self: flex-start; background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 10px; }
a.story:hover .story-title { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- 이름 찾기 띠 ---------- */
.name-band { background: var(--accent-2); color: var(--paper); }
.name-band .eyebrow { color: var(--paper); }
.name-band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.name-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.name-text p { margin: 0; max-width: 32em; font-size: 17px; }
.name-text .btn { align-self: flex-start; }
.name-samples { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.name-samples-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; margin: 0; }
.name-sample {
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 20px 26px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.name-sample:nth-child(2) { transform: rotate(-3deg); }
.name-sample:nth-child(3) { transform: rotate(2deg); background: var(--accent); }
.name-sample:nth-child(4) { transform: rotate(-1deg); }
.name-sample b { font-family: var(--display-en); font-weight: 800; font-size: 38px; line-height: 1; }
.name-sample span { font-size: 18px; font-weight: 700; }

/* ---------- Insight 목록 ---------- */
.insight-layout { display: flex; flex-wrap: wrap; gap: 40px; }
.insight-list { flex: 2 1 560px; min-width: 0; list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.insight-item { border-top: 2px solid var(--ink); }
.insight-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px 24px; padding-block: 26px; text-decoration: none;
}
.insight-row > div { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.insight-row .pill { align-self: flex-start; }
.insight-title { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; font-weight: 700; margin: 0; }
.insight-go { font-weight: 700; }
a.insight-row:hover .insight-title { text-decoration: underline; text-underline-offset: 5px; }

.editor-box {
  flex: 1 1 300px; min-width: 0;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; align-self: flex-start;
}
.editor-box h3 { margin: 0; font-size: 20px; }
.editor-box p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- 뉴스레터 ---------- */
.letter { background: var(--accent); border-block: 3px solid var(--ink); }
.letter .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-block: 88px; }
.letter-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.letter-title { margin: 0; font-family: var(--display-en); font-weight: 800; font-size: clamp(42px, 5.5vw, 80px); line-height: 1.05; letter-spacing: -0.03em; }
.letter-title .ko { font-family: var(--display-ko); font-weight: 400; letter-spacing: 0; }
.letter-text p { margin: 0; max-width: 32em; font-size: 18px; }
.letter-form { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.letter-form label { font-weight: 700; font-size: 15px; }
.letter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.letter-row input {
  flex: 1 1 220px; min-width: 0; height: 56px;
  border: 2px solid var(--ink); border-radius: 999px; padding: 0 22px;
  font: inherit; font-size: 16px; background: var(--paper); color: var(--ink);
}
.letter-row .btn { height: 56px; }
.letter-note { margin: 0; font-size: 14px; color: #2B2B2B; min-height: 1.4em; }

/* ---------- 바닥글 ---------- */
.site-footer { background: var(--night); color: var(--on-night); }
.site-footer .wrap { padding-block: 48px; display: flex; flex-direction: column; gap: 20px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand b { font-family: var(--display-en); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.footer-brand span, .footer-note { font-size: 14px; color: var(--on-night-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 2px 24px; }
.footer-links a { color: var(--on-night); padding-block: 10px; font-size: 15px; }
.footer-note { margin: 0; }

/* ---------- 섹션 페이지 ---------- */
.page-head { border-bottom: 3px solid var(--ink); }
.page-head .wrap { padding-block: 56px 64px; display: flex; flex-direction: column; gap: 16px; }
.page-title { margin: 0; font-family: var(--display-ko); font-weight: 400; font-size: clamp(44px, 6.5vw, 88px); line-height: 1.05; }
.page-title .en { font-family: var(--display-en); font-weight: 800; letter-spacing: -0.03em; }
.page-lead { margin: 0; max-width: 36em; font-size: 18px; color: var(--ink-2); }

.corner { padding-block: 56px; border-bottom: 2px solid var(--ink); }
.corner:last-of-type { border-bottom: 0; }
.corner-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; max-width: 680px; }
.corner-title { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; }
.corner-desc { margin: 0; color: var(--ink-2); }

.empty { margin: 0; padding: 24px; border: 2px dashed var(--ink-3); border-radius: var(--radius); color: var(--ink-2); }

/* ---------- 소개 ---------- */
.prose { max-width: 40em; display: flex; flex-direction: column; gap: 18px; font-size: 17px; }
.prose p { margin: 0; }
.prose h2 { margin: 24px 0 0; font-size: 26px; line-height: 1.35; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.contact-list b { min-width: 6em; }

/* ---------- 이름 찾기 페이지 ---------- */
.name-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.name-grid .name-sample { transform: none; }
.name-grid .name-sample:nth-child(3n+2) { background: var(--accent); }

/* ---------- 글 페이지 ---------- */
.article-head { border-bottom: 3px solid var(--ink); }
.article-head .wrap { padding-block: 48px 56px; display: flex; flex-direction: column; gap: 18px; max-width: 880px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.crumbs a { font-weight: 700; }
.article-title { margin: 0; font-family: var(--display-ko); font-weight: 400; font-size: clamp(34px, 5vw, 60px); line-height: 1.15; }
.article-meta { margin: 0; font-size: 14px; color: var(--ink-2); }

.article { max-width: 880px; padding-block: 48px 96px; display: flex; flex-direction: column; gap: 28px; font-size: 17px; }
.article > * { margin: 0; }
.article h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; margin-top: 20px; }
.article p, .article li { max-width: 40em; }
.article ul, .article ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

.summary-box { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.summary-box h2 { margin: 0; font-size: 16px; font-family: var(--display-en); font-weight: 800; letter-spacing: 0.08em; }
.summary-box ul { margin: 0; }

.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #DDD5C8; vertical-align: top; }
.table-wrap th { background: var(--ink); color: var(--paper); font-weight: 700; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 700; }

.note-box { background: var(--night); color: var(--on-night); border-radius: var(--radius); padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.note-box h2 { margin: 0; font-size: 16px; color: var(--accent); font-family: var(--display-en); font-weight: 800; letter-spacing: 0.08em; }
.note-box p { margin: 0; color: var(--on-night-2); }

.word-box { align-self: flex-start; background: var(--accent); border: 2px solid var(--ink); border-radius: 16px; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.word-box b { font-family: var(--display-en); font-weight: 800; font-size: 28px; line-height: 1.1; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 16px 20px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; }

.author-box { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--ink); padding-top: 24px; }
.author-box b { font-size: 18px; }
.author-box p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 폰 ---------- */
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .section { padding-block: 64px; }
  .hero .wrap { padding-block: 36px 64px; gap: 40px; }
  .word-card { padding: 26px; transform: none; }
  .greetings li + li::before { margin: 0 14px; width: 8px; height: 8px; }
  .letter .wrap { padding-block: 64px; }
  .card { padding: 24px; }
}
