/* ===== Journal layout — extends origin style.css (다크럭셔리 + 골드) ===== */

/* Reading progress (gold) */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3));
  width: 0%; z-index: 100; transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(240, 212, 134, 0.55);
}

/* Breadcrumb */
.breadcrumb {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 56px) 0;
  font-size: 13px; color: var(--cream-mute);
  font-family: var(--sans-ko);
  position: relative; z-index: 3;
}
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "·"; color: var(--gold-mute); margin-left: 4px; }
.breadcrumb a { color: var(--cream-mute); border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.breadcrumb a:hover { color: var(--gold-3); border-bottom-color: var(--gold-mute); }
.breadcrumb [aria-current="page"] { color: var(--gold-3); font-weight: 500; }

/* ===== Category page hero ===== */
.cat-hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 60px clamp(20px, 4vw, 56px) 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 2;
}
.cat-hero__copy { max-width: 620px; }
.cat-hero__kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif-en); font-size: 12px; letter-spacing: .42em;
  color: var(--gold-2); text-transform: uppercase; font-weight: 500;
  margin-bottom: 22px;
}
.cat-hero__kicker::before { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--gold-mute); }
.cat-hero h1 {
  font-family: var(--serif-ko); font-weight: 800;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.18;
  margin: 0 0 22px; color: var(--cream);
  letter-spacing: -0.018em;
}
.cat-hero h1 em { font-style: normal; color: var(--gold-2); position: relative; }
.cat-hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}
.cat-hero__lead {
  color: var(--cream-mute); font-size: 17px; line-height: 1.85;
  margin: 0 0 22px;
}
.cat-hero__hash {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--cream-mute);
  font-family: var(--sans-ko);
}
.cat-hero__hash span {
  padding: 6px 14px; border: 1px solid var(--line);
  background: rgba(20, 16, 13, 0.5);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.cat-hero__count {
  font-family: var(--serif-en); font-style: normal;
  font-size: 88px; color: var(--gold-2); line-height: 1;
  margin: 0; text-align: right;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.18);
}
.cat-hero__count small { font-size: 0.22em; color: var(--gold-mute); display: block; letter-spacing: .25em; margin-top: 10px; font-weight: 500; }
@media (max-width: 880px) {
  .cat-hero { grid-template-columns: 1fr; gap: 24px; }
  .cat-hero__count { text-align: left; font-size: 56px; }
}

/* Category cards */
.cat-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 56px) 100px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  position: relative; z-index: 2;
}
.cat-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 16, 13, 0.92), rgba(10, 8, 7, 0.92));
  border: 1px solid var(--line);
  padding: 0;
  transition: transform .4s cubic-bezier(.2,.7,.3,1.2), box-shadow .4s, border-color .4s;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(212, 175, 55, 0.12), transparent 70%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--gold-mute); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.1); }
.cat-card:hover::before { opacity: 1; }
.cat-card__no {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: var(--serif-en); font-style: normal; font-weight: 500;
  font-size: 13px; color: var(--gold-3);
  background: rgba(10, 8, 7, 0.85);
  padding: 5px 14px;
  border: 1px solid var(--gold-mute);
  letter-spacing: 0.08em;
}
.cat-card__img {
  aspect-ratio: 16/10; overflow: hidden; background: var(--bg-night);
  border-bottom: 1px solid var(--line);
}
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s ease; opacity: 0.92; }
.cat-card:hover .cat-card__img img { transform: scale(1.06); opacity: 1; }
.cat-card__body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; position: relative; z-index: 1; }
.cat-card__kicker {
  font-family: var(--serif-en); font-size: 11px; letter-spacing: .32em;
  color: var(--gold-2); text-transform: uppercase; font-weight: 500;
  margin-bottom: 12px;
}
.cat-card__title {
  font-family: var(--serif-ko); font-weight: 800;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.3;
  color: var(--cream); margin: 0 0 14px;
  letter-spacing: -0.012em;
}
.cat-card__excerpt {
  color: var(--cream-mute); font-size: 14.5px; line-height: 1.78;
  margin: 0 0 22px; flex: 1;
}
.cat-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--serif-en); font-size: 12px; color: var(--cream-mute);
  letter-spacing: .04em;
}
.cat-card__more { color: var(--gold-2); font-weight: 500; letter-spacing: .14em; }
.cat-card:hover .cat-card__more { color: var(--gold-3); }
@media (max-width: 880px) { .cat-grid { grid-template-columns: 1fr; } }

/* ===== Article hero ===== */
.art-hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 56px) 40px;
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 2;
}
.art-hero__kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif-en); font-size: 12px; letter-spacing: .42em;
  color: var(--gold-2); text-transform: uppercase; font-weight: 500;
  margin-bottom: 18px;
}
.art-hero__kicker::before { content: ""; display: inline-block; width: 32px; height: 1px; background: var(--gold-mute); }
.art-hero h1 {
  font-family: var(--serif-ko); font-weight: 800;
  font-size: clamp(30px, 4.6vw, 56px); line-height: 1.18;
  margin: 0 0 24px; color: var(--cream);
  letter-spacing: -0.018em;
  max-width: 880px;
}
.art-hero__lead {
  color: var(--cream-mute); font-size: 18px; line-height: 1.85;
  max-width: 760px; margin: 0 0 30px;
  font-family: var(--serif-ko); font-weight: 400;
}
.art-hero__meta {
  display: flex; flex-wrap: wrap; gap: 26px;
  font-family: var(--serif-en); font-size: 13px;
  color: var(--cream-mute); letter-spacing: .03em;
  padding-top: 20px; border-top: 1px dashed rgba(212, 175, 55, 0.22);
}
.art-hero__meta span strong {
  font-family: var(--serif-en); font-weight: 500; color: var(--gold-2);
  letter-spacing: .18em; text-transform: uppercase; font-size: 11px;
  margin-right: 8px;
}

/* Article wrap */
.art-wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding: 50px clamp(20px, 4vw, 56px) 80px;
  display: grid; grid-template-columns: 240px 1fr; gap: 64px;
  position: relative; z-index: 2;
}
.toc {
  position: sticky; top: 110px; align-self: start;
  padding-top: 4px;
  font-size: 14px;
}
.toc__title {
  font-family: var(--serif-en); font-size: 11px; letter-spacing: .35em;
  color: var(--gold-2); text-transform: uppercase; font-weight: 500;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.toc__list { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc__list li { padding: 0; }
.toc__list a {
  display: block; padding: 9px 0 9px 16px;
  font-size: 13.5px; color: var(--cream-mute); line-height: 1.5;
  border-left: 2px solid transparent; margin-left: -1px;
  transition: color .2s, border-color .2s, padding .25s;
}
.toc__list a:hover { color: var(--gold-3); border-left-color: var(--gold-2); padding-left: 20px; }
.toc__list a.is-active { color: var(--gold-3); border-left-color: var(--gold-2); font-weight: 500; }
@media (max-width: 980px) {
  .art-wrap { grid-template-columns: 1fr; gap: 30px; padding: 36px clamp(20px, 4vw, 56px) 60px; }
  .toc { position: static; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
}

/* Article body — light cream on dark */
.art-body { max-width: 780px; min-width: 0; }
.art-body > p:first-of-type {
  font-size: 17.5px; color: var(--cream); font-weight: 400;
  line-height: 1.85; margin-bottom: 28px;
}
.art-body > p:first-of-type::first-letter {
  font-family: var(--serif-en); font-weight: 500;
  font-size: 4.6em; line-height: 0.86;
  float: left; padding: 8px 16px 0 0;
  color: var(--gold-2);
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.35);
}
.art-body h2 {
  font-family: var(--serif-ko); font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25;
  margin: 64px 0 22px; padding-bottom: 14px;
  color: var(--cream); position: relative;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.012em;
  scroll-margin-top: 100px;
}
.art-body h2::after {
  content: ""; position: absolute; bottom: -1px; left: 0;
  width: 64px; height: 1px; background: var(--gold-2);
}
.art-body h3 {
  font-family: var(--serif-ko); font-weight: 700;
  font-size: 19px; margin: 36px 0 14px; color: var(--cream);
  letter-spacing: -0.005em;
  scroll-margin-top: 100px;
}
.art-body h3::before {
  content: "◆"; color: var(--gold-2); margin-right: 10px; font-size: 0.7em; vertical-align: 2px;
}
.art-body p {
  font-size: 16px; line-height: 1.96; color: var(--cream-mute);
  margin: 0 0 18px;
}
.art-body p strong { color: var(--gold-3); font-weight: 600; }
.art-body p em { color: var(--cream); font-style: italic; font-weight: 500; }
.art-body ul, .art-body ol {
  margin: 0 0 26px; padding-left: 24px;
  color: var(--cream-mute);
}
.art-body li { margin-bottom: 10px; line-height: 1.85; padding-left: 4px; }
.art-body li::marker { color: var(--gold-2); font-family: var(--serif-en); font-weight: 500; }
.art-body li strong { color: var(--cream); font-weight: 600; }
.art-body blockquote {
  border-left: 2px solid var(--accent-red);
  background: linear-gradient(180deg, rgba(139, 29, 44, 0.10), rgba(139, 29, 44, 0.02));
  padding: 22px 28px;
  margin: 32px 0;
  font-family: var(--serif-ko); font-style: italic; font-weight: 500;
  color: var(--cream); font-size: 16.5px; line-height: 1.78;
}
.art-body blockquote p { color: var(--cream); margin: 0; }
.art-body a {
  color: var(--gold-3); border-bottom: 1px solid rgba(212, 175, 55, 0.32);
  transition: color .2s, border-color .2s;
}
.art-body a:hover { color: var(--gold-2); border-bottom-color: var(--gold-2); }
.art-body img, .art-body figure img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  margin: 28px 0;
  border: 1px solid var(--line);
  background: var(--bg-night);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.art-body figure { margin: 28px 0; }
.art-body figure img { margin: 0; }
.art-body figcaption {
  text-align: center; font-size: 13px; color: var(--cream-mute);
  font-family: var(--serif-en); font-style: italic;
  margin-top: 8px;
}

/* Tables */
.art-body table {
  width: 100%; border-collapse: collapse;
  margin: 28px 0; font-size: 14.5px;
  background: rgba(20, 16, 13, 0.6);
  border: 1px solid var(--line);
}
.art-body th, .art-body td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}
.art-body th:last-child, .art-body td:last-child { border-right: 0; }
.art-body th {
  background: rgba(212, 175, 55, 0.06); color: var(--gold-3);
  font-family: var(--serif-ko); font-weight: 700;
  border-bottom: 1px solid var(--gold-mute);
  font-size: 14px;
  letter-spacing: -0.005em;
}
.art-body tr:last-child td { border-bottom: 0; }
.art-body td { color: var(--cream-mute); }

/* Callouts */
.callout {
  padding: 22px 26px; margin: 32px 0;
  background: rgba(20, 16, 13, 0.7);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-2);
}
.callout--red { border-left-color: var(--accent-red); }
.callout--gold { border-left-color: var(--gold-3); background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(20, 16, 13, 0.7)); }
.callout__title {
  font-family: var(--serif-ko); font-weight: 800;
  color: var(--cream); margin: 0 0 10px;
  font-size: 15.5px; letter-spacing: -0.005em;
}
.callout__title::before {
  content: "◆"; color: var(--gold-2); margin-right: 10px;
  font-size: 0.85em; vertical-align: 1px;
}
.callout--red .callout__title::before { color: var(--accent-red); }
.callout p { margin: 0; font-size: 15px; color: var(--cream-mute); line-height: 1.78; }
.callout p + p { margin-top: 8px; }

/* Key takeaways */
.takeaways {
  padding: 32px 36px; margin: 38px 0;
  background: linear-gradient(180deg, rgba(20, 16, 13, 0.9), rgba(10, 8, 7, 0.9));
  border: 1px solid var(--gold-mute);
  border-left: 3px solid var(--gold-2);
  position: relative;
}
.takeaways::before {
  content: "KEY TAKEAWAYS";
  position: absolute; top: -10px; left: 26px;
  background: var(--bg-deep);
  padding: 0 14px;
  font-family: var(--serif-en); font-size: 11px; letter-spacing: .35em;
  color: var(--gold-3); font-weight: 500;
}
.takeaways__list { list-style: none; padding: 0; margin: 0; }
.takeaways__list li {
  padding: 12px 0 12px 30px; position: relative;
  font-size: 15px; line-height: 1.78; color: var(--cream-mute);
  border-bottom: 1px solid var(--line-soft);
}
.takeaways__list li:last-child { border-bottom: 0; }
.takeaways__list li strong { color: var(--gold-3); font-weight: 700; }
.takeaways__list li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 14px; height: 14px;
  background: rgba(10, 8, 7, 1); border: 1px solid var(--gold-2);
  border-radius: 50%;
}
.takeaways__list li::after {
  content: ""; position: absolute; left: 4px; top: 22px;
  width: 6px; height: 6px;
  background: var(--gold-2); border-radius: 50%;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* In-article CTA */
.in-cta {
  padding: 32px 32px; margin: 40px 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.10), rgba(20, 16, 13, 0.85));
  border: 1px solid var(--gold-mute);
  text-align: center;
}
.in-cta h3 {
  font-family: var(--serif-ko); font-weight: 800;
  color: var(--cream); font-size: 22px;
  margin: 0 0 10px;
}
.in-cta h3::before { display: none; }
.in-cta p { color: var(--cream-mute); margin: 0 0 20px; font-size: 15px; }
.in-cta__phone {
  display: inline-block;
  font-family: var(--serif-en); font-weight: 500;
  font-size: 30px; color: var(--gold-3);
  margin-bottom: 14px; letter-spacing: 0.02em;
  text-shadow: 0 0 24px rgba(240, 212, 134, 0.25);
}

/* Related */
.related {
  padding: 80px clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-night));
  border-top: 1px solid var(--line);
  position: relative; z-index: 2;
}
.related__head {
  max-width: var(--maxw); margin: 0 auto 36px;
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
}
.related__kicker {
  font-family: var(--serif-en); font-size: 12px; letter-spacing: .42em;
  color: var(--gold-2); text-transform: uppercase; font-weight: 500;
}
.related__head h2 {
  font-family: var(--serif-ko); font-weight: 800;
  font-size: clamp(24px, 3vw, 36px); margin: 8px 0 0; color: var(--cream);
  letter-spacing: -0.014em;
}
.related__back {
  font-family: var(--serif-en); font-size: 13px; color: var(--cream-mute);
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
  white-space: nowrap; letter-spacing: 0.08em;
}
.related__back:hover { color: var(--gold-3); border-bottom-color: var(--gold-2); }
.related__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.rel-card {
  background: linear-gradient(180deg, rgba(20, 16, 13, 0.9), rgba(10, 8, 7, 0.9));
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .35s, box-shadow .35s, border-color .35s;
  overflow: hidden;
}
.rel-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); border-color: var(--gold-mute); }
.rel-card__img { aspect-ratio: 16/10; background: var(--bg-night); overflow: hidden; }
.rel-card__img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 1.4s ease; }
.rel-card:hover .rel-card__img img { transform: scale(1.05); opacity: 1; }
.rel-card__body { padding: 18px 16px 20px; flex: 1; }
.rel-card__kicker { font-family: var(--serif-en); font-size: 10px; letter-spacing: .3em; color: var(--gold-2); text-transform: uppercase; font-weight: 500; margin-bottom: 8px; }
.rel-card__title { font-family: var(--serif-ko); font-weight: 800; color: var(--cream); font-size: 16px; margin: 0; line-height: 1.4; letter-spacing: -0.005em; }
@media (max-width: 880px) {
  .related__grid { grid-template-columns: 1fr; }
  .related__head { flex-direction: column; align-items: start; gap: 8px; }
}

/* ============================================================
   Readability overrides (2026-05-07)
   사용자 피드백: 배경 디자인 이상함 / 글자 명확하게
   ============================================================ */

/* 1) Kill grain noise overlay — was riding on top of text at z-index:9999 */
.grain-overlay { display: none !important; }

/* 2) Soften cursor aurora — keep mood, lose the distracting follow-glow */
.cursor-aurora {
  background: radial-gradient(900px circle at var(--mx, 50%) var(--my, 25%),
              rgba(212, 175, 55, 0.05),
              rgba(212, 175, 55, 0.015) 35%,
              transparent 65%) !important;
  transition: background 0.6s ease !important;
}

/* 3) Lift body text to full cream + airier line-height */
.art-body p,
.art-body li,
.art-body td,
.art-body ul,
.art-body ol {
  color: var(--cream);
}
.art-body p { line-height: 2.0; font-size: 16.5px; letter-spacing: 0.001em; }
.art-body li { line-height: 1.9; }

/* 4) Subtle reading panel behind the article column for clear figure-ground */
.art-wrap {
  background: linear-gradient(180deg, rgba(10, 8, 7, 0.55), rgba(20, 16, 13, 0.35));
}

/* 5) Category & article hero leads — also full cream */
.cat-hero__lead,
.art-hero__lead,
.cat-card__excerpt {
  color: var(--cream);
}

/* 6) Tame particle layer over reading area (still visible, less busy) */
.art-wrap ~ .particles,
.particles { opacity: 0.45; }

/* 7) Strengthen blockquote/callout text contrast on muted backgrounds */
.callout p { color: var(--cream); }
.takeaways__list li { color: var(--cream); }
