/* 아이고 — 누구나 읽는 아침 AI 소식.
   흰 지면 위의 잡지·진(zine) 그리드. 화면 밖으로 넘치는 큰 워드마크, 원색 다섯 가지, 꼬리표 스티커.
   일러스트와 인포그래픽이 색을 담당하고, 글자는 검정과 회색만 씁니다.
   의도적으로 밝은 지면 하나로만 디자인했습니다(다크 모드 없음). */
:root {
  --ground: #EDEEF0;   /* 페이지 바깥 바닥 */
  --paper: #FFFFFF;    /* 지면 */
  --ink: #000000;      /* 글자, 선 */
  --grey: #8A8A8A;     /* 보조 글자 */
  --rule: #DADADA;     /* 얇은 구분선 */
  --red: #FF3D14;      /* 워드마크, 강조 하나 */
  --blue: #1F3DFF;
  --yellow: #FFD21F;
  --green: #12A150;
  --pink: #FF8FC8;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;  /* 라틴·숫자 */
  --font-ko: "Gothic A1", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --page: 75rem;
  --measure: 36rem;
  color-scheme: light;
}

/* 글자 크기: 기본 17px, 크게 20px */
html { font-size: 106.25%; }
html.large-text { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-ko);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; font-weight: 800; letter-spacing: -0.03em; }
p { margin: 0; text-wrap: pretty; }
/* 구절 묶음: 한국어 의미 단위 사이에서만 줄이 바뀌도록. 화면보다 길면 안에서 다시 줄바꿈됩니다. */
.ph { display: inline-block; }
.nw { white-space: nowrap; }

/* 지면: 데스크톱에서는 회색 바닥 위 흰 종이, 휴대폰에서는 전체가 흰 종이 */
.page {
  max-width: var(--page);
  margin-inline: auto;
  background: var(--paper);
  overflow: hidden;
  min-height: 100vh;
}
.gutter { padding-inline: clamp(16px, 4vw, 56px); }

/* 대괄호 라벨: 레퍼런스의 [Featured Collections] 방식 */
.bracket { font-size: 0.78rem; font-weight: 500; color: var(--ink); }
.bracket::before { content: "["; margin-right: 0.15em; }
.bracket::after { content: "]"; margin-left: 0.15em; }

/* 상단 내비게이션 */
.nav { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; letter-spacing: -0.01em; }
.logo { font-family: var(--font-ko); font-size: 1.15rem; letter-spacing: -0.04em; gap: 0.35rem; }
/* 로고: 외치는 까치 + 손글씨 '아이고!'(assets/brand/lockup.png) 한 장 */
.logo-lockup { height: 3.1rem; width: auto; flex: none; }
/* 이름 뜻(AI + go)을 함께 보여 주는 작은 영문 표기. 좁은 화면에서는 숨겨요 */
.logo-en { font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; letter-spacing: 0; color: var(--grey); align-self: flex-end; margin-bottom: 0.55rem; }
.nav-links { display: flex; gap: 1.2rem; margin-left: auto; font-size: 0.82rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.text-toggle { margin-left: auto;
  font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 999px; padding: 0.25rem 0.9rem; cursor: pointer;
}
.text-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* 둥근 버튼 */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none;
  font-size: 0.85rem; font-weight: 700; border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.4rem 1.1rem; background: var(--paper);
}
.pill:hover { background: var(--ink); color: var(--paper); }

/* ---------- 홈 ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 1rem; padding-block: 2.2rem 0; align-items: end; }
.hero-tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ground); }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { display: grid; gap: 0.9rem; align-content: end; padding-bottom: 0.2rem; min-width: 0; container-type: inline-size; }
/* 첫 화면 제목: 두 줄 고정. 한 줄씩 줄바꿈 없이 두고, 글자 크기를 칸 너비에 맞춰 키웁니다. */
.hero-text h1 { font-size: min(4.6rem, 12.4cqi); font-weight: 900; line-height: 1.04; letter-spacing: -0.05em; }
.hero-text h1 .line { display: block; white-space: nowrap; }
.hero-text .hero-sub { font-size: 1rem; line-height: 1.6; max-width: 26rem; }
.hero-text .pill { justify-self: start; }

/* 마스코트 띠: 외치는 까치가 말풍선으로 소식을 알려요(큰 글자 워드마크 대신) */
.mascot-band { display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.4rem); padding-block: 2.6rem 1.8rem; }
.mascot-band .mascot { height: clamp(5.5rem, 13vw, 9rem); width: auto; flex: none; }
.mascot-bubble {
  position: relative; background: var(--yellow); border: 2px solid var(--ink); border-radius: 1.4rem;
  padding: 0.8rem 1.2rem; font-weight: 800; font-size: clamp(1rem, 2.1vw, 1.35rem); line-height: 1.45; letter-spacing: -0.03em;
}
/* 말풍선 첫 줄: 이름 뜻을 크게 */
.bubble-big { display: block; font-size: 1.35em; font-weight: 900; letter-spacing: -0.02em; }
/* 말풍선 꼬리: 까치 쪽(왼쪽)을 가리켜요 */
.mascot-bubble::before {
  content: ""; position: absolute; left: -0.62rem; top: 50%; width: 1rem; height: 1rem; background: var(--yellow);
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg);
}
/* 분야 띠: 천천히 흐르는 큰 글자 */
.ticker { border-block: 2px solid var(--ink); overflow: hidden; padding-block: 0.6rem; }
.ticker-track { display: flex; gap: 2.4rem; width: max-content; font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 2.6rem); letter-spacing: -0.04em; line-height: 1.3; }
.ticker-track span:nth-child(even) { color: var(--grey); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 38s linear infinite; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}

/* 오늘의 소식: 큰 기사 하나 + 오른쪽 두 개 */
.section { padding-block: 3.6rem 0; display: grid; gap: 1.2rem; }
.features { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.6rem; }
.feature { position: relative; display: grid; gap: 0.9rem; text-decoration: none; align-content: start; }
.feature-art { position: relative; overflow: hidden; background: var(--ground); }
.feature-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms ease; }
.feature:hover .feature-art img { transform: scale(1.03); }
/* 그림 위 날짜·분야 태그: 검은 바탕 흰 글자의 각진 태그. 글자는 가로 한 줄로 또렷하게 */
.side-label {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-family: var(--font-ko); font-weight: 800; font-size: 0.8rem; line-height: 1; letter-spacing: 0;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  background: var(--ink); color: var(--paper); padding: 0.42rem 0.6rem 0.38rem;
}
.feature-tag { font-size: 0.8rem; font-weight: 700; }
.feature h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; }
.feature:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.feature.lead h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.18; }
.feature-dek { font-size: 0.95rem; color: var(--ink); }
.feature-stack { display: grid; gap: 1.6rem; align-content: start; }
.feature-stack .feature { grid-template-columns: minmax(0, 1fr); }

/* 선언문: 들쭉날쭉 정렬된 큰 글 */
.manifesto { padding-block: 4.4rem 1rem; display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem 2rem; }
.manifesto-lines { font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.22; letter-spacing: -0.045em; display: grid; }
.manifesto-lines span:nth-child(2) { padding-left: 18%; }
.manifesto-lines span:nth-child(3) { padding-left: 6%; }
.manifesto-lines span:nth-child(4) { padding-left: 32%; }
.manifesto-sign { grid-column: 2; font-size: 0.8rem; color: var(--grey); padding-left: 32%; }

/* 꼬리표 스티커 (오늘의 말) */
.tags { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.6rem 1.2rem; padding-block: 0.6rem 0.4rem; }
.ticket {
  position: relative; padding: 2rem 1.1rem 1.1rem; border: 2.5px solid var(--ink);
  border-radius: 2.6rem 2.6rem 1rem 1rem; display: grid; gap: 0.3rem; align-content: start;
}
.ticket::before {
  content: ""; position: absolute; top: 0.75rem; left: 50%; width: 0.75rem; height: 0.75rem; margin-left: -0.375rem;
  border-radius: 50%; background: var(--paper); border: 2.5px solid var(--ink);
}
.ticket b { font-size: 1.15rem; font-weight: 900; letter-spacing: -0.03em; }
.ticket span { font-size: 0.85rem; line-height: 1.55; }
.ticket.c-blue { background: var(--blue); color: var(--paper); }
.ticket.c-yellow { background: var(--yellow); }
.ticket.c-green { background: var(--green); color: var(--paper); }
.ticket.c-pink { background: var(--pink); }
.ticket.c-red { background: var(--red); color: var(--paper); }
.ticket:nth-child(odd) { transform: rotate(-2.5deg); }
.ticket:nth-child(3n) { transform: rotate(2deg); }

/* 지난 소식 */
.archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.6rem 1rem; }
.archive-item { display: grid; gap: 0.5rem; text-decoration: none; }
.archive-item img { aspect-ratio: 1; object-fit: cover; background: var(--ground); }
.archive-date { font-family: var(--font-display); font-weight: 800; font-size: 0.78rem; }
.archive-title { font-weight: 700; line-height: 1.45; }
.archive-item:hover .archive-title { text-decoration: underline; }
.empty { border: 2px dashed var(--rule); padding: 1.6rem; font-size: 0.95rem; color: var(--grey); }

/* 아래 띠 */
.footer { margin-top: 4.5rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--ink); color: var(--paper); }
.footer-main { padding: 1.4rem clamp(16px, 4vw, 56px); display: grid; gap: 0.35rem; font-size: 0.8rem; }
.footer-en { font-family: var(--font-display); font-weight: 800; color: var(--grey); margin-left: 0.25rem; letter-spacing: 0; }
.footer-main strong { font-family: var(--font-ko); font-weight: 900; font-size: 1.1rem; letter-spacing: -0.04em; }
.footer-cta { background: var(--blue); color: var(--paper); padding: 1.4rem 2rem; font-weight: 900; font-size: 1rem; display: flex; align-items: center; letter-spacing: -0.02em; }

/* ---------- 글 페이지 ---------- */
.post-hero { padding-block: 2.6rem 2.4rem; display: grid; gap: 1.2rem; border-bottom: 2px solid var(--ink); }
.post-hero h1 { font-size: min(4.6rem, max(2rem, 9vw)); font-weight: 900; line-height: 1.05; letter-spacing: -0.055em; max-width: 18ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: baseline; }
.post-meta .num { font-family: var(--font-display); font-weight: 900; font-size: 0.9rem; }
.post-meta .muted { font-size: 0.8rem; color: var(--grey); }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  text-decoration: none; display: inline-flex; gap: 0.5rem; align-items: baseline; border: 2px solid var(--ink);
  border-radius: 999px; padding: 0.35rem 1rem; font-size: 0.88rem; font-weight: 700; line-height: 1.4;
}
.chip em { font-style: normal; font-weight: 900; }
.chip.c-blue { background: var(--blue); color: var(--paper); }
.chip.c-yellow { background: var(--yellow); }
.chip.c-pink { background: var(--pink); }
.chip.c-green { background: var(--green); color: var(--paper); }
.chip.c-red { background: var(--red); color: var(--paper); }
.chip:hover { text-decoration: underline; }

.story { padding-block: 3.4rem 3rem; border-bottom: 2px solid var(--ink); display: grid; gap: 2.2rem; scroll-margin-top: 1rem; }
.story-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.story-art { position: relative; overflow: hidden; background: var(--ground); }
.story-art img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.story-head { display: grid; gap: 1rem; align-content: end; min-width: 0; }
.story-kicker { display: flex; gap: 0.8rem; align-items: center; }
.story-kicker .pill-tag { border: 2px solid var(--ink); border-radius: 999px; padding: 0.1rem 0.8rem; font-size: 0.8rem; font-weight: 900; }
.pill-tag.c-blue { background: var(--blue); color: var(--paper); }
.pill-tag.c-yellow { background: var(--yellow); }
.pill-tag.c-pink { background: var(--pink); }
.pill-tag.c-green { background: var(--green); color: var(--paper); }
.pill-tag.c-red { background: var(--red); color: var(--paper); }
.story-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.05em; }
.story-head .dek { font-size: 1.02rem; line-height: 1.65; }

.story-body { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 2rem; }
.story-body .bracket { padding-top: 0.3rem; }
.qa { display: grid; gap: 1.6rem; max-width: var(--measure); }
.qa h3 { font-size: 1.05rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.35rem; display: flex; gap: 0.5rem; align-items: center; }
.qa h3::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--accent, var(--yellow)); flex: none; }
.qa p { font-size: 1rem; }
.source { font-size: 0.78rem; color: var(--grey); }
.source a { color: var(--grey); }
.story.a-blue { --accent: var(--blue); }
.story.a-yellow { --accent: var(--yellow); }
.story.a-pink { --accent: var(--pink); }
.story.a-green { --accent: var(--green); }
.story.a-red { --accent: var(--red); }

/* 인포그래픽 */
.figure { margin: 0; display: grid; gap: 0.6rem; }
/* 인포그래픽 지면: 외곽선 없이 옅은 바탕 + 일러스트와 같은 리소그래프 질감 */
.figure-frame { position: relative; overflow-x: auto; background: var(--ground); isolation: isolate; display: grid; }
/* 질감은 그림과 같은 칸에 겹쳐 놓아, 가로로 밀어도 그림 전체 폭을 함께 덮게 합니다 */
.figure-frame > * { grid-area: 1 / 1; }
.figure-frame::after {
  content: ""; grid-area: 1 / 1; position: relative; z-index: 1; pointer-events: none; mix-blend-mode: multiply; opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.figure svg { display: block; width: 100%; height: auto; min-width: 560px; }
.figure figcaption { font-size: 0.8rem; color: var(--grey); }
.figure svg text { font-family: var(--font-ko); fill: var(--ink); }
.figure svg .num { font-family: var(--font-display); font-weight: 900; }
.figure svg .grey { fill: var(--grey); }
.figure svg .white { fill: var(--paper); }
.figure svg .red { fill: var(--red); }
.figure svg .f-red { fill: var(--red); }
.figure svg .f-blue { fill: var(--blue); }
.figure svg .f-yellow { fill: var(--yellow); }
.figure svg .f-green { fill: var(--green); }
.figure svg .f-pink { fill: var(--pink); }
.figure svg .f-ink { fill: var(--ink); }
.figure svg .f-paper { fill: var(--paper); }
.figure svg .f-ground { fill: var(--rule); }
.figure svg .line { stroke: var(--ink); }
.figure svg .line-grey { stroke: var(--rule); }
.figure svg .line-red { stroke: var(--red); }

.soon { margin-top: 3rem; display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 2rem; }
.soon-box { background: var(--yellow); border: 2px solid var(--ink); padding: 1.4rem 1.5rem; display: grid; gap: 0.5rem; max-width: 40rem; }
.soon-box h2 { font-size: 1.3rem; font-weight: 900; }
.glossary { padding-block: 3.4rem 0; display: grid; gap: 1.4rem; }
.glossary h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.05em; }
.post-end { padding-block: 3rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }

/* 좁은 화면 */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-text { grid-column: 1 / -1; padding-top: 0.4rem; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature-stack { grid-template-columns: 1fr 1fr; }
  .story-top { grid-template-columns: minmax(0, 1fr); }
  .story-body, .soon, .manifesto { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  .manifesto-sign { grid-column: 1; }
  .nav-links { display: none; }
  .text-toggle { margin-left: auto; }
}
@media (max-width: 560px) {
  .feature-stack { grid-template-columns: minmax(0, 1fr); }
  .tags { grid-template-columns: minmax(0, 1fr); }
  .ticket { padding-inline: 0.8rem; }
  .footer { grid-template-columns: minmax(0, 1fr); }
  .manifesto-lines span:nth-child(n) { padding-left: 0; }
  .manifesto-sign { padding-left: 0; }
}
@media (min-width: 1240px) {
  .page { margin-block: 2rem; box-shadow: 0 0 0 1px var(--rule); }
}

/* 구독: 노란 지면 한 장. 왼쪽 큰 글자, 오른쪽 폼 */
.subscribe { padding-block: 4rem 0; }
.subscribe-box {
  background: var(--yellow); border: 2px solid var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.6rem 3rem;
  padding: clamp(1.6rem, 4vw, 3rem); align-items: end;
}
.subscribe-head { display: grid; gap: 0.8rem; container-type: inline-size; }
.subscribe-head h2 { font-size: min(4.2rem, 17cqi); font-weight: 900; line-height: 1.02; letter-spacing: -0.055em; }
.subscribe-head h2 .line { display: block; white-space: nowrap; }
.subscribe-body { display: grid; gap: 1rem; min-width: 0; }
.subscribe-body > p { font-size: 1.05rem; font-weight: 500; line-height: 1.6; }
.subscribe-note { font-size: 0.82rem; line-height: 1.6; }
.pill-ink { background: var(--ink); color: var(--paper); font-size: 1rem; padding: 0.75rem 1.5rem; }
.pill-ink:hover { background: var(--paper); color: var(--ink); }
.subscribe-post { padding-block: 3.4rem 0; }
a.footer-cta { text-decoration: none; }
a.footer-cta:hover { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 860px) {
  .subscribe-box { grid-template-columns: minmax(0, 1fr); }
}

/* 구독 칸의 버튼 */
.subscribe-cta { justify-self: start; }

/* ---------- 구독 페이지 ---------- */
.sub {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem 3.5rem;
  align-items: center; padding-block: 3rem 4.5rem;
}
.sub-art { background: var(--yellow); overflow: hidden; border-radius: 2.6rem 2.6rem 1rem 1rem; position: relative; }
.sub-art::before {
  content: ""; position: absolute; top: 1rem; left: 50%; width: 1rem; height: 1rem; margin-left: -0.5rem; z-index: 1;
  border-radius: 50%; background: var(--paper); border: 2.5px solid var(--ink);
}
.sub-art img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sub-panel { display: grid; gap: 1.3rem; min-width: 0; container-type: inline-size; }
.sub-panel h1 { font-size: min(4.4rem, 17cqi); font-weight: 900; line-height: 1.04; letter-spacing: -0.055em; }
.sub-panel h1 .line { display: block; white-space: nowrap; }
.sub-lede { font-size: 1.1rem; font-weight: 500; line-height: 1.65; }
.sub-promise { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ticket-mini {
  display: grid; gap: 0.05rem; padding: 0.55rem 1rem 0.6rem; border: 2px solid var(--ink); border-radius: 1.1rem;
}
.ticket-mini b { font-size: 0.95rem; font-weight: 900; letter-spacing: -0.02em; }
.ticket-mini span { font-size: 0.78rem; }
.ticket-mini.c-yellow { background: var(--yellow); }
.ticket-mini.c-blue { background: var(--blue); color: var(--paper); }
.ticket-mini.c-pink { background: var(--pink); }
.ticket-mini:nth-child(2) { transform: rotate(-1.5deg); }
.sub-form { display: grid; gap: 0.6rem; width: 100%; margin-top: 0.4rem; }
.sub-label { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; }
.sub-cancel {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  padding: 0.6rem 1.2rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper);
}
.sub-cancel::before { content: ""; width: 0.55rem; height: 0.55rem; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin-left: 0.15rem; }
.sub-cancel:hover { background: var(--ground); }
.sub-note { font-size: 0.8rem; color: var(--grey); line-height: 1.6; }
@media (max-width: 860px) {
  .sub { grid-template-columns: minmax(0, 1fr); padding-block: 1.6rem 3.5rem; gap: 1.8rem; }
  .sub-art { border-radius: 2rem 2rem 0.8rem 0.8rem; }
}

/* 구독 입력 칸 정렬: beehiiv 폼이 카드 폭을 꽉 채우고, 제목과 같은 왼쪽 선에서 시작 */
.sub-form { scroll-margin-block: 6rem; }
.sub-form:focus { outline: none; }
.sub-form:focus-visible { outline: none; }
.sub-entry { display: grid; gap: 0.5rem; width: 100%; }
.sub-label { font-size: 0.9rem; font-weight: 800; }
.sub-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sub-input {
  flex: 1 1 14rem; min-width: 0; min-height: 3rem; padding: 0 1rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 999px;
}
.sub-input::placeholder { color: var(--grey); }
.sub-input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sub-submit { min-height: 3rem; justify-content: center; font: inherit; font-weight: 800; cursor: pointer; }
.sub-submit:disabled { opacity: 0.5; cursor: wait; }
.sub-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sub-status { font-size: 0.9rem; line-height: 1.6; margin: 0; }
.sub-status.is-error { font-weight: 800; }

/* 구독 결과 화면: 신청·확인·그만 받기 결과를 한눈에 크게 보여 줘요 */
.sub-panel[hidden] { display: none; }
.sub-result { align-content: start; }
.sub-result:focus { outline: none; }
.sub-mark {
  position: relative; width: 5.5rem; height: 5.5rem; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--ink);
}
.sub-mark::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: 1.5rem; height: 2.7rem;
  border-right: 0.55rem solid var(--ink); border-bottom: 0.55rem solid var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}
.sub-result[data-state="mail"] .sub-mark { background: var(--blue); }
.sub-result[data-state="mail"] .sub-mark::after {
  top: 50%; width: 2.6rem; height: 1.8rem; border: 0.4rem solid var(--paper); border-radius: 0.3rem;
  transform: translate(-50%, -50%);
  background: linear-gradient(to bottom right, transparent 47%, var(--paper) 47% 55%, transparent 55%) left / 50% 100% no-repeat,
              linear-gradient(to bottom left, transparent 47%, var(--paper) 47% 55%, transparent 55%) right / 50% 100% no-repeat;
}
.sub-result[data-state="bye"] .sub-mark { background: var(--pink); }
.sub-result[data-state="bye"] .sub-mark::after {
  top: 50%; width: 2.6rem; height: 0; border-right: 0; border-bottom: 0.55rem solid var(--ink); transform: translate(-50%, -50%);
}
.sub-result[data-state="error"] .sub-mark { background: var(--paper); }
.sub-result[data-state="error"] .sub-mark::after {
  content: "!"; top: 50%; width: auto; height: auto; border: 0; transform: translate(-50%, -50%);
  font-size: 3.2rem; font-weight: 900; line-height: 1;
}
.sub-result[data-state="wait"] .sub-mark { background: var(--ground); }
.sub-result[data-state="wait"] .sub-mark::after { display: none; }
.sub-tip { font-size: 0.95rem; line-height: 1.7; color: var(--grey); margin: 0; }
.sub-tip:empty, .sub-result .sub-promise:empty { display: none; }
.sub-result .ticket-mini span { font-size: 0.85rem; word-break: break-all; }
.sub-result .sub-actions .pill { min-height: 3rem; font-size: 1rem; font-weight: 800; padding-inline: 1.5rem; }
@media (max-width: 860px) {
  .sub.is-result .sub-art { order: 2; }
}

/* ───────── 사용성: 누구나 쉽게 움직이도록 ─────────
   고정 메뉴, 지금 읽는 소식 표시, 맨 위로 버튼, 글 끝 이어보기·공유, 크게 누르는 출처 링크, 그림이 없을 때 빈자리. */

/* 지면이 넘치는 워드마크는 자르되, 메뉴는 화면 위에 붙어 있도록(hidden은 고정을 막아요) */
@supports (overflow: clip) { .page { overflow: clip; } }

/* 상단 메뉴: 스크롤해도 늘 위에 */
.nav { position: sticky; top: 0; z-index: 20; background: var(--paper); }
html { scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.logo { min-height: 2.75rem; }
.text-toggle { min-height: 2.75rem; padding-inline: 1rem; }
.nav-links { font-size: 0.92rem; }
.nav-links a { padding-block: 0.5rem; }
.nav-links a[aria-current="true"] { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

/* 글자 크게: 메뉴와 헷갈리지 않게 테두리 없는 회색 버튼 */
.text-toggle { border: 0; background: var(--ground); font-size: 0.82rem; min-height: 2.5rem; padding-inline: 0.95rem; flex: none; }
.text-toggle:hover { background: var(--rule); }
.text-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* 좁은 화면: 로고 · 글자 메뉴 · 글자 크게를 한 줄에. 메뉴가 넘치면 옆으로 밀어 보고, 오른쪽 끝이 흐려져 더 있다는 걸 알려요 */
@media (max-width: 860px) {
  .nav { flex-wrap: nowrap; column-gap: 0.9rem; padding-block: 0.45rem; }
  .logo { font-size: 1.02rem; flex: none; }
  .logo-lockup { height: 2.6rem; }
  .logo-en { display: none; }
  .nav-links {
    display: flex; flex: 1 1 auto; min-width: 0; margin-left: 0; gap: 1.05rem;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .nav-links.is-more { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
  .nav-links.is-less { -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%); mask-image: linear-gradient(90deg, transparent, #000 20%); }
  .nav-links.is-more.is-less { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0;
    font-size: 0.92rem; font-weight: 700; color: var(--grey); white-space: nowrap; text-decoration: none;
  }
  .nav-links a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
  html { scroll-padding-top: 4.8rem; }
}

/* 맨 위로: 한 화면쯤 내려가면 오른쪽 아래에 나타나요. 화살표만이 아니라 글자로도 알려 줘요 */
.to-top {
  position: fixed; z-index: 30;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px));
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 3rem; padding: 0 1.15rem 0 0.95rem;
  font: inherit; font-size: 0.9rem; font-weight: 800; color: var(--ink); background: var(--yellow);
  border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(0.8rem);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms ease, transform 180ms ease; }
.to-top:hover { background: var(--ink); color: var(--paper); }
.to-top:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.to-top svg { width: 1.05rem; height: 1.05rem; flex: none; }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top.is-shown { transition: none; } }

/* 글 끝: 공유하기와 다른 날 소식 */
.share-row { padding-block: 3rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; }
.share-row .pill { min-height: 3rem; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; }
.share-msg { font-size: 0.9rem; font-weight: 700; }
.post-nav { padding-block: 2.4rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.post-nav-link {
  display: grid; align-content: start; gap: 0.35rem; min-height: 5.5rem; padding: 1rem 1.15rem;
  border: 2px solid var(--ink); border-radius: 1.1rem; text-decoration: none; background: var(--paper);
}
.post-nav-link:hover { background: var(--ground); }
.post-nav-link strong { font-size: 1rem; line-height: 1.45; letter-spacing: -0.02em; }
.post-nav-link.next { grid-column: 2; text-align: right; }
.post-nav-link .bracket { color: var(--grey); }
@media (max-width: 560px) {
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav-link.next { grid-column: 1; }
}

/* 출처: 손가락으로 누르기 쉬운 크기(높이 44px 가까이) */
.source { font-size: 0.85rem; line-height: 1.5; }
.source a { display: inline-block; padding-block: 0.6rem; text-underline-offset: 0.2em; }

/* 그림이 없을 때: 빈 회색 칸 대신 소식 색의 지면 */
.story-art:not(:has(img)) { aspect-ratio: 4 / 3; background: var(--accent, var(--ground)); }
.story-art:not(:has(img))::after, .no-art::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 22%; aspect-ratio: 1;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--ink);
}
.no-art { aspect-ratio: 4 / 3; }
.hero-tile.no-art { aspect-ratio: 1 / 1; }
.no-art.c-blue { background: var(--blue); }
.no-art.c-yellow { background: var(--yellow); }
.no-art.c-pink { background: var(--pink); }
.no-art.c-green { background: var(--green); }
.no-art.c-red { background: var(--red); }

/* ───────── 큰 모니터: 1600px 넘는 화면에서는 지면을 넓혀 씁니다 ─────────
   지면은 화면의 90%까지(최대 120rem) 넓어지고, 글자도 조금 커져요.
   읽는 글줄은 너무 길어지지 않게, 남는 폭은 '쉽게 알아보기'를 세 칸으로 나눠 씁니다.
   그림(썸네일, 일러스트)과 인포그래픽은 지나치게 커지지 않도록 크기를 정해 둡니다. */
@media (min-width: 1600px) {
  :root { --page: min(90vw, 120rem); --col: 76rem; }
  html { font-size: 112.5%; }          /* 18px */
  html.large-text { font-size: 132%; }
  /* 정렬: 지면은 넓게 두되, 내용은 가운데에 놓인 한 단(--col) 안에 모아 왼쪽 선을 하나로 맞춥니다.
     단 안의 글과 그림은 모두 왼쪽 정렬(한국어 읽는 방향)이고, 남는 폭은 양옆에 똑같이 나눠요.
     구분선, 워드마크, 분야 띠, 꼬리말은 지금처럼 지면 끝까지 닿아요. */
  .gutter { padding-inline: max(clamp(56px, 3.5vw, 96px), calc((100% - var(--col)) / 2)); }
  .ticker-track { font-size: 2.8rem; }
  .post-hero h1 { font-size: 5.2rem; max-width: 26ch; }
  /* 그림은 지면이 넓어져도 크게 늘어나지 않게, 1440px 화면 때보다 조금 작게 둡니다 */
  .hero { grid-template-columns: 17rem 17rem minmax(0, 1fr); gap: 1.2rem; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
  .feature-stack { display: contents; }
  .feature.lead h3 { font-size: 1.9rem; }
  .story-top { grid-template-columns: minmax(0, 29rem) minmax(0, 1fr); gap: 3rem; }
  .archive { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
  .story-head .dek { max-width: 34rem; }
  .figure { max-width: 64rem; }
  .soon-box { max-width: 52rem; }
}
@media (min-width: 2400px) {
  html { font-size: 125%; }            /* 20px */
  html.large-text { font-size: 145%; }
}

/* 첫 화면 그림 두 장: 옆 글 묶음(날짜 위 ~ '오늘 소식 읽기' 버튼 아래)과 높이를 똑같이 맞춥니다.
   글 묶음의 높이는 그날 요약 길이에 따라 달라서, site.js가 높이를 재어 --hero-tile에 넣어요.
   그림은 늘 정사각형이고, 스크립트가 없으면 위의 원래 배치 그대로 보여요.
   1200px보다 좁으면 글 칸이 좁아져 높이를 맞출 수 없어서 원래 배치를 써요. */
@media (min-width: 1200px) {
  .hero.is-fit { grid-template-columns: var(--hero-tile) var(--hero-tile) minmax(0, 1fr); align-items: start; }
  .hero.is-fit .hero-text { align-content: start; padding-bottom: 0; }
}

/* ───────── 글 페이지 정렬 ─────────
   읽는 글(제목 아래 요약, 쉽게 알아보기, 출처)은 왼쪽 정렬로 둡니다.
   쉽게 알아보기는 세 물음을 한 줄로 아래로 이어 읽도록, 가운데에 놓인 읽기 좋은 폭의 한 단에 담아요. 한국어는 왼쪽부터 읽고, 줄 시작이 같아야 편해요.
   한눈에 보는 것(글의 첫머리, 인포그래픽, 글 끝의 버튼과 인사)은 가운데에 놓아 지면의 중심을 잡아요. */
.figure { justify-self: center; width: 100%; }
.figure figcaption { text-align: center; }
.glossary h2 { text-align: center; }
.share-row { justify-content: center; }
.post-end { justify-content: center; column-gap: 1.6rem; }
@media (min-width: 861px) {
  /* 글의 첫머리: 날짜, 큰 제목, 소식 칩을 가운데로. 휴대폰에서는 긴 제목이 들쭉날쭉해지지 않게 왼쪽 그대로예요 */
  .post-hero { justify-items: center; text-align: center; }
  .post-hero h1 { max-width: 22ch; }
  .post-meta, .post-hero .chips { justify-content: center; }
}
@media (min-width: 1600px) {
  .post-hero h1 { max-width: 26ch; }  /* 큰 모니터에서는 제목 줄 수를 줄여요 */
}

/* 소식 머리(그림 + 태그·제목·요약): 한 덩어리로 묶어 가운데에 놓습니다.
   그림과 글 사이를 붙이고, 글은 그림 높이의 가운데에 맞춰요. 글 자체는 읽기 편하게 왼쪽 정렬이에요. */
@media (min-width: 861px) {
  .story-top { grid-template-columns: minmax(0, 34rem) fit-content(30rem); justify-content: center; align-items: center; gap: 2.6rem; }
}
@media (min-width: 1600px) {
  .story-top { grid-template-columns: minmax(0, 29rem) fit-content(32rem); gap: 3rem; }
}

/* 쉽게 알아보기: 세 물음을 위에서 아래로 한 단에. 단은 가운데에, 글은 왼쪽 정렬로 읽기 좋은 폭(한 줄 40자 안팎)이에요 */
@media (min-width: 861px) {
  .story-body { grid-template-columns: minmax(0, 1fr); gap: 1rem; width: 100%; max-width: 42rem; justify-self: center; }
  .story-body .bracket { padding-top: 0; }
  .qa { max-width: none; gap: 2rem; }
  .qa p { font-size: 1.06rem; line-height: 1.85; }
}

/* 이전·다음 소식: 두 칸을 늘 채워요. 다음 소식이 아직 없으면(오늘 글) 내일 아침 안내와 메일 받기로,
   이전 소식이 없으면(첫 글) 첫 소식이라는 안내로 채워요. 안내 칸은 점선 테두리와 옅은 바탕으로 구분해요 */
.post-nav-link.is-empty { border-style: dashed; background: var(--ground); }
.post-nav-link.is-empty:hover { background: var(--rule); }
.post-nav-link .post-nav-more { font-size: 0.85rem; font-weight: 800; text-decoration: underline; text-underline-offset: 0.25em; }

/* 구독 칸: 설명 → 안심 문구 → 버튼 순서로. 다 읽고 나서 누르도록 버튼을 맨 아래에 둡니다(HTML 순서는 그대로) */
.subscribe-body .subscribe-note { order: 1; }
.subscribe-body .subscribe-cta { order: 2; margin-top: 0.4rem; }

/* ---------- 안내 문서(개인정보처리방침 등) ---------- */
.legal { padding-block: 2.6rem 4rem; display: grid; gap: 1.6rem; max-width: var(--measure); }
.legal h1 { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.04em; text-wrap: balance; }
.legal .legal-meta { color: var(--grey); font-size: 0.92rem; }
.legal section { display: grid; gap: 0.55rem; }
.legal h2 { font-size: 1.15rem; font-weight: 900; letter-spacing: -0.02em; }
.legal p, .legal li { font-size: 1rem; line-height: 1.75; word-break: keep-all; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.legal a { text-underline-offset: 0.2em; }
.legal .legal-sum { background: var(--ground); border-radius: 1rem; padding: 1rem 1.2rem; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 1.2rem; margin-top: 0.2rem; }
.footer-links a { color: var(--paper); text-decoration: underline; text-underline-offset: 0.2em; min-height: 44px; display: inline-flex; align-items: center; }
