:root {
  --ink: #070b14;
  --muted: #5d6576;
  --line: rgba(7, 11, 20, .12);
  --blue: #4d55f5;
  --blue-deep: #2532d8;
  --paper: #f7f8fb;
  --white: #fff;
  --shadow: 0 24px 70px rgba(16, 24, 40, .16);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  overscroll-behavior-x: none;
}
body.drawer-open { overflow: hidden; }
body.listing-body, body.article-page-body { background: #f7f8fb; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img, video, canvas, svg { max-width: 100%; }

.site-header, .admin-top {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.site-header.is-scrolled {
  height: 72px;
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(7, 11, 20, .08);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: clamp(20px, 2vw, 28px); }
.brand img { width: 86px; height: 56px; object-fit: cover; object-position: center; border-radius: 4px; }
.main-nav { display: flex; gap: clamp(14px, 2.4vw, 38px); font-size: 19px; font-weight: 650; }
.main-nav a { opacity: .88; transition: color .2s ease, opacity .2s ease; }
.main-nav a:hover { color: var(--blue); opacity: 1; }
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid #111827;
  border-radius: 10px;
  background: #f1f2f5;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  box-shadow: none;
}
.menu-button span {
  display: block;
  width: 23px;
  height: 3px;
  margin: 3.5px 0;
  background: #111827;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-button.is-open span:first-child { transform: translateY(5px) rotate(45deg); }
.menu-button.is-open span:last-child { transform: translateY(-5px) rotate(-45deg); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.icon-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.admin-link { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.52); font-weight: 700; }
.admin-hidden { display: none; }

.snap-panel {
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}
.hero-section { background: #fff; }
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,.22) 38%, rgba(255,255,255,0) 62%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding: clamp(130px, 16vh, 190px) 0 70px clamp(28px, 5vw, 72px);
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(76px, 8.4vw, 138px);
  line-height: .86;
  letter-spacing: 0;
}
.hero-copy h1 span { color: #6267f4; }
.category-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 32px;
  font-size: clamp(18px, 2vw, 25px);
  color: #18223b;
}
.category-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.hero-copy p {
  color: #26334f;
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.65;
  font-weight: 550;
}
.hero-copy strong { color: var(--blue); }
.primary-button, .secondary-button {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  font-weight: 800;
  font-size: 18px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #3852ff, #5c45f4);
  box-shadow: 0 18px 35px rgba(65, 73, 238, .26);
}
.secondary-button { color: var(--ink); background: rgba(255,255,255,.88); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.intro-panel {
  display: grid;
  place-items: center;
  background:
    linear-gradient(120deg, rgba(255,255,255,.96), rgba(244,247,255,.9)),
    url("assets/logo.png") center / min(82vw, 980px) no-repeat;
}
.section-inner { width: min(1040px, calc(100% - 48px)); }
.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  font-weight: 900;
}
.intro-panel h2 {
  margin: 0;
  font-size: clamp(46px, 6vw, 92px);
  line-height: 1;
}
.lead {
  max-width: 760px;
  color: #26334f;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.7;
}
.ad-slot {
  width: min(760px, 100%);
  min-height: 112px;
  margin-top: 38px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(77, 85, 245, .45);
  background: rgba(255,255,255,.64);
  color: #697189;
  font-weight: 800;
}

.category-hero {
  display: flex;
  align-items: center;
  background: #0c111d;
}
.category-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(.98) contrast(1.03);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.category-hero.is-visible .category-bg { transform: scale(1); }
.category-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 22, .74), rgba(8, 12, 22, .2) 58%, rgba(8, 12, 22, .08)),
    linear-gradient(0deg, rgba(8, 12, 22, .36), transparent 52%);
}
.category-copy {
  position: relative;
  z-index: 3;
  width: min(850px, calc(100% - 48px));
  margin-left: clamp(24px, 7vw, 96px);
  color: #fff;
  transform: translateY(26px);
  opacity: .25;
  transition: transform .7s ease, opacity .7s ease;
}
.category-hero.is-visible .category-copy { transform: translateY(0); opacity: 1; }
.category-copy .eyebrow { color: #c7ccff; }
.category-copy h2 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(48px, 6.7vw, 104px);
  line-height: .98;
}
.category-copy p:last-child {
  max-width: 720px;
  color: rgba(255,255,255,.84);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.65;
}

.post-panel {
  isolation: isolate;
  background: #111827;
  opacity: .74;
  transition: opacity .85s ease, filter .85s ease;
}
.post-panel.is-visible {
  opacity: 1;
  animation: panelBrighten .9s ease both;
}
.post-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(.98) contrast(1.02) brightness(.88);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1), filter .8s ease;
}
.post-panel.is-visible .post-image {
  animation: slowBackgroundZoom 12s ease-out forwards;
  filter: saturate(1.04) contrast(1.05) brightness(.96);
}
@keyframes slowBackgroundZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}
@keyframes panelBrighten {
  from { filter: brightness(.78); }
  to { filter: brightness(1); }
}
.post-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.28) 54%, rgba(0,0,0,.08)),
    linear-gradient(0deg, rgba(0,0,0,.24), transparent 58%);
}
.post-content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  width: min(720px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: clamp(24px, 7vw, 96px);
  color: #fff;
  transform: translateY(28px);
  opacity: .45;
  transition: transform .7s ease, opacity .7s ease;
}
.post-panel.is-visible .post-content { transform: translateY(0); opacity: 1; }
.post-category {
  margin: 0 0 18px;
  color: #eef0ff;
  font-size: clamp(18px, 1.7vw, 27px);
  font-weight: 950;
  letter-spacing: .08em;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
  text-transform: uppercase;
}
.post-content h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 6vw, 92px);
  line-height: 1.02;
  text-shadow: 0 4px 24px rgba(0,0,0,.42);
}
.post-summary {
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.55;
  color: rgba(255,255,255,.96);
  text-shadow: 0 3px 18px rgba(0,0,0,.38);
}
.post-content .secondary-button {
  color: #07101f;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.category-page-hero,
.article-page-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0c111d;
}
.latest-page-hero {
  min-height: 58vh;
  display: flex;
  align-items: center;
  padding: 130px clamp(24px, 7vw, 96px) 70px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.92), rgba(238,242,255,.86)),
    url("assets/background.png") center / cover no-repeat;
}
.latest-page-hero > div {
  width: min(920px, 100%);
}
.latest-page-hero h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 118px);
  line-height: .95;
}
.latest-page-hero p:last-child {
  max-width: 720px;
  color: #26334f;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.65;
}
.category-page-hero img,
.article-page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-page-hero .category-copy,
.article-page-title {
  position: relative;
  z-index: 3;
  width: min(940px, calc(100% - 48px));
  margin: 120px 0 70px clamp(24px, 7vw, 96px);
  color: #fff;
}
.category-page-hero .category-copy {
  opacity: 1;
  transform: none;
}
.category-page-hero h1,
.article-page-title h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 112px);
  line-height: .98;
}
.category-page-hero p,
.article-page-title p {
  max-width: 740px;
  color: rgba(255,255,255,.86);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.65;
}
.category-list-section,
.article-page-content {
  padding: clamp(54px, 8vw, 100px) 24px;
}
.category-list-inner,
.article-page-content {
  width: min(1060px, 100%);
  margin: 0 auto;
}
.latest-card {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) 1.05fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(18px, 2vw, 26px);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.latest-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}
.latest-card span,
.post-list-item span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.latest-card h2 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.05;
}
.latest-card p {
  color: #344057;
  font-size: 19px;
  line-height: 1.65;
}
.latest-card strong { display: inline-block; margin-top: 12px; color: var(--blue); }
.post-index {
  margin-top: clamp(42px, 6vw, 76px);
}
.post-index h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
}
.post-list-item {
  display: grid;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.latest-list .post-list-item:first-child {
  border-top: 0;
}
.post-list-item strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
}
.post-list-item small {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: #dce1ff;
  font-weight: 900;
}
.article-page-content {
  max-width: 860px;
}
.reader-controls {
  position: relative;
  top: auto;
  z-index: 12;
  display: grid;
  gap: 8px;
  width: fit-content;
  margin: 0 0 22px auto;
}
.reader-toggle,
.reader-size-menu button {
  min-height: 42px;
  border: 1px solid rgba(7, 11, 20, .14);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .1);
}
.reader-toggle {
  padding: 0 18px;
}
.reader-size-menu {
  display: none !important;
  grid-template-columns: repeat(3, minmax(54px, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(7, 11, 20, .12);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 34px rgba(16, 24, 40, .14);
}
.reader-controls.is-open .reader-size-menu {
  display: grid !important;
}
.reader-size-menu button.is-active {
  color: #fff;
  background: var(--blue);
}
.article-page-content .article-body p {
  color: #253049;
  font-size: 20px;
  line-height: 1.95;
}
.article-page-content[data-reader-size="large"] .article-body p,
.article-page-content[data-reader-size="large"] .article-body li { font-size: 24px; line-height: 2; }
.article-page-content[data-reader-size="xlarge"] .article-body p,
.article-page-content[data-reader-size="xlarge"] .article-body li { font-size: 28px; line-height: 2.05; }
.article-page-content[data-reader-size="large"] .article-body h2 { font-size: clamp(34px, 4.6vw, 52px); }
.article-page-content[data-reader-size="large"] .article-body h3 { font-size: clamp(28px, 3.8vw, 40px); }
.article-page-content[data-reader-size="xlarge"] .article-body h2 { font-size: clamp(38px, 5vw, 58px); }
.article-page-content[data-reader-size="xlarge"] .article-body h3 { font-size: clamp(32px, 4.2vw, 46px); }
.article-page-content .article-body ul,
.article-page-content .article-body ol {
  padding-left: 1.4em;
  color: #253049;
  font-size: 20px;
  line-height: 1.9;
}
.article-page-content .article-body li + li { margin-top: 8px; }
.article-page-content .article-body h2,
.article-page-content .article-body h3 {
  margin: 44px 0 16px;
  color: #101827;
  line-height: 1.2;
}
.article-page-content .article-body h2 { font-size: clamp(30px, 4vw, 44px); }
.article-page-content .article-body h3 { font-size: clamp(24px, 3vw, 34px); }
.article-page-content .article-body blockquote {
  margin: 34px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--blue);
  background: #fff;
  color: #2c3650;
  line-height: 1.8;
}
.protected-copy {
  -webkit-user-select: none;
  user-select: none;
}
.term-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted var(--blue);
  color: #1f2ac9;
  cursor: help;
}
.term-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: min(320px, 86vw);
  padding: 10px 12px;
  border-radius: 8px;
  background: #07101f;
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 12px 30px rgba(7, 11, 20, .22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .16s ease, transform .16s ease;
}
.term-tooltip:hover::after,
.term-tooltip:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.article-page-content .glossary,
.article-page-content .comment-box {
  background: #fff;
  border: 1px solid rgba(7, 11, 20, .08);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 16px 45px rgba(16, 24, 40, .08);
}
.article-page-content .glossary h2,
.article-page-content .comment-box h2 {
  margin: 0 0 16px;
}

.article-drawer {
  position: fixed;
  z-index: 50;
  inset: 0 0 0 auto;
  width: min(820px, 100%);
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 88px clamp(22px, 5vw, 64px) 54px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(24px);
  box-shadow: -28px 0 80px rgba(7, 11, 20, .22);
  transform: translateX(102%);
  transition: transform .36s cubic-bezier(.2,.8,.2,1);
}
.article-drawer.is-open { transform: translateX(0); }
.drawer-close { position: absolute; top: 24px; right: 24px; background: #eef1f8; }
.article-drawer .article-body h3 { margin: 0 0 20px; font-size: clamp(32px, 4vw, 54px); line-height: 1.08; }
.article-drawer .article-body p { color: #253049; font-size: 19px; line-height: 1.9; }
.article-ad-slot {
  min-height: 140px;
  margin: 34px 0;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(77, 85, 245, .42);
  background: linear-gradient(135deg, rgba(247,248,251,.98), rgba(236,240,255,.92));
  color: #697189;
  font-weight: 900;
}
.article-inline-image {
  margin: 36px 0;
}
.article-inline-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.article-inline-image figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.glossary, .comment-box {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.glossary h4, .comment-box h4 { margin: 0 0 16px; font-size: 22px; }
.term-item { margin: 12px 0; color: #39445d; line-height: 1.65; }
.term-item strong { color: var(--ink); }
.comment-form { display: grid; gap: 12px; }
.comment-form textarea, .comment-form input, .post-form textarea, .post-form input, .post-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  background: #fff;
  outline: none;
}
.login-gate { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--muted); }

.search-panel {
  position: fixed;
  z-index: 70;
  inset: 0;
  padding: min(12vh, 96px) clamp(24px, 9vw, 140px);
  background: rgba(250, 251, 255, .96);
  backdrop-filter: blur(28px);
  transform: translateY(-100%);
  transition: transform .32s ease;
}
.search-panel.is-open { transform: translateY(0); }
.close-search { position: absolute; top: 28px; right: 34px; background: #eef1f8; }
.search-panel label { display: block; font-size: clamp(34px, 5vw, 72px); font-weight: 900; margin-bottom: 26px; }
.search-panel input { width: min(900px, 100%); border: 0; border-bottom: 2px solid var(--ink); background: transparent; padding: 18px 0; font-size: 28px; outline: none; }
.search-results { margin-top: 28px; display: grid; gap: 14px; max-width: 900px; }
.search-result { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.search-result strong { display: block; font-size: 22px; }
.search-result span { color: var(--muted); }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 860px;
  margin: 38px auto 0;
}
.article-tags a {
  border: 1px solid rgba(77,85,245,.24);
  border-radius: 999px;
  padding: 10px 14px;
  background: #f1f4ff;
  color: #2732c8;
  font-weight: 850;
}

.admin-body { min-height: 100vh; background: linear-gradient(135deg, #f8f9fc, #eef2ff); }
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.admin-login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 18px;
  padding: 36px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.admin-login-card img {
  width: 76px;
  height: 50px;
  object-fit: cover;
}
.admin-login-card h1 {
  margin: 0;
  font-size: 34px;
}
.admin-login-card label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}
.admin-login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
}
#loginError {
  margin: 0;
  color: #c03535;
  font-weight: 800;
}
.admin-top {
  position: sticky;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--line);
}
.admin-layout {
  width: min(1180px, calc(100% - 36px));
  margin: 46px auto 80px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}
.admin-panel {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 38px);
}
.admin-panel h1, .admin-panel h2 { margin: 0 0 24px; font-size: clamp(32px, 4vw, 52px); }
.wide-panel { grid-column: 1 / -1; }
.category-admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.category-admin-form label:nth-child(3) { grid-column: 1 / -1; }
.post-form { display: grid; gap: 18px; }
.post-form label { display: grid; gap: 9px; color: #27324a; font-weight: 800; }
.post-form input[type="hidden"] { display: none; }
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f6f7fb;
}
.editor-toolbar button {
  min-height: 38px;
  border: 1px solid rgba(7, 11, 20, .12);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}
.rich-editor {
  min-height: 280px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  outline: none;
  color: #1c263b;
  line-height: 1.8;
  font-weight: 500;
}
.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #8b93a5;
}
.rich-editor h2 { font-size: 30px; line-height: 1.24; margin: 22px 0 10px; }
.rich-editor h3 { font-size: 23px; line-height: 1.3; margin: 18px 0 8px; }
.rich-editor blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--blue);
  background: #f4f6ff;
}
.form-submit { width: fit-content; margin-top: 8px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.success-message {
  margin: 0;
  padding: 16px 18px;
  border-radius: 8px;
  background: #edf9f1;
  color: #137333;
  font-weight: 900;
}
.admin-note {
  margin-top: 22px;
  color: #5d6576;
  line-height: 1.7;
  padding: 18px;
  background: #f2f4fa;
  border-radius: 8px;
}
.admin-post-list {
  display: grid;
  gap: 30px;
}
.admin-post-group {
  display: grid;
  gap: 12px;
}
.admin-post-group h3 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #111827;
  font-size: 24px;
}
.admin-post-group-list {
  display: grid;
  gap: 12px;
}
.admin-post-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1.5px solid #111827;
  border-radius: 8px;
  box-shadow: none;
}
.admin-post-item img {
  width: 96px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(7, 11, 20, .16);
  justify-self: end;
}
.admin-post-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.admin-post-item strong {
  display: block;
  font-size: 18px;
}
.admin-post-item p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.admin-post-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-post-actions .secondary-button {
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
  background: #f3f5fb;
}
.danger-button { color: #c03535; }
.message-list {
  display: grid;
  gap: 14px;
}
.message-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(7, 11, 20, .08);
  border-radius: 8px;
}
.message-item time {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.message-item strong {
  display: block;
  margin-bottom: 8px;
}
.message-item p {
  margin: 0;
  color: #344057;
  line-height: 1.7;
  white-space: pre-wrap;
}
.message-delete {
  min-height: 42px;
  font-size: 15px;
}

.contact-footer {
  padding: clamp(54px, 8vw, 92px) 24px;
  background: #0b1020;
  color: #fff;
}
.compact-contact { margin-top: 24px; }
.contact-inner {
  width: min(1060px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.contact-inner h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
}
.contact-inner p {
  color: rgba(255,255,255,.76);
  line-height: 1.65;
}
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 680px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,.92);
  font-weight: 800;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 15px 16px;
  color: #fff;
  background: rgba(255,255,255,.08);
  outline: none;
}
.contact-saved {
  width: fit-content;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 800;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 12px 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.footer-links a {
  color: rgba(255,255,255,.86);
  font-weight: 800;
}
.footer-links a:hover { color: #fff; }

.info-page {
  padding: 130px 24px 80px;
  background: #f7f8fb;
}
.info-hero,
.info-content {
  width: min(920px, 100%);
  margin: 0 auto;
}
.info-hero {
  padding: clamp(34px, 6vw, 72px) 0 clamp(26px, 4vw, 44px);
}
.info-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
}
.info-hero p {
  max-width: 760px;
  color: #344057;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}
.info-content {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(7, 11, 20, .08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(16, 24, 40, .08);
}
.info-content h2 {
  margin: 30px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
}
.info-content h2:first-child { margin-top: 0; }
.info-content p {
  color: #2d3852;
  font-size: 18px;
  line-height: 1.85;
}
.info-content a {
  color: var(--blue);
  font-weight: 900;
}
.info-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #f1f4ff;
  color: #4f5870;
}
.light-contact {
  max-width: 100%;
}
.light-contact label {
  color: #27324a;
}
.light-contact input,
.light-contact textarea {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}
.light-saved {
  color: #137333;
  background: #edf9f1;
}

@media (max-width: 860px) {
  html { scroll-snap-type: none; overflow-x: hidden; }
  body {
    overflow-x: clip;
    max-width: 100vw;
    touch-action: pan-y;
  }
  .site-header { height: 72px; min-height: 72px; align-items: center; padding: 0 18px; gap: 8px; }
  .brand span { font-size: 20px; }
  .brand img { width: 62px; height: 40px; }
  .menu-button { display: flex !important; margin-left: auto; flex: 0 0 44px; background: #eceef3; }
  .main-nav {
    position: fixed;
    z-index: 28;
    left: 14px;
    right: 14px;
    width: auto;
    max-width: calc(100vw - 28px);
    top: 76px;
    display: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(7, 11, 20, .1);
    border-radius: 8px;
    background: rgba(244,246,250,.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 45px rgba(16, 24, 40, .16);
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav.is-open {
    display: grid !important;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .main-nav a {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(77, 85, 245, .22);
    background: rgba(232, 236, 255, .92);
    color: #07101f;
    box-shadow: 0 8px 18px rgba(16, 24, 40, .08);
    font-weight: 900;
  }
  .header-actions { margin-left: 0; }
  .admin-link { display: none; }
  .snap-panel { min-height: 86vh; width: 100%; max-width: 100vw; overflow-x: hidden; }
  main, .post-feed, .article-page-content, .category-list-section, .category-list-inner, .latest-card, .article-page-hero, .category-page-hero {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .article-page-title,
  .category-page-hero .category-copy {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }
  .article-page-title h1,
  .category-page-hero h1,
  .latest-card h2,
  .post-content h2 {
    overflow-wrap: anywhere;
    word-break: keep-all;
  }
  .hero-copy { padding: 118px 20px 56px; width: min(560px, 100%); }
  .hero-section::after {
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.76) 46%, rgba(255,255,255,.22) 88%);
  }
  .hero-copy h1 { font-size: clamp(54px, 16vw, 78px); }
  .category-line { gap: 9px; font-size: 16px; margin: 22px 0 22px; }
  .category-line i { width: 5px; height: 5px; }
  .hero-copy p { font-size: 18px; line-height: 1.55; text-shadow: 0 1px 16px rgba(255,255,255,.9); }
  .hero-bg,
  .post-image,
  .category-page-hero img,
  .article-page-hero img {
    object-position: 76% center;
  }
  .post-panel[data-category-slug="music"] .post-image,
  .post-panel[data-category-slug="reviews"] .post-image {
    object-position: 68% center;
  }
  .post-panel[data-category-slug="issues"] .post-image {
    object-position: 74% center;
  }
  .post-panel[data-category-slug="cars"] .post-image,
  .post-panel[data-category-slug="investing"] .post-image,
  .post-panel[data-category-slug="ai"] .post-image {
    object-position: 82% center;
  }
  .post-content { margin-left: 24px; justify-content: flex-end; padding-bottom: 86px; }
  .category-copy { margin-left: 24px; }
  .category-copy h2 { font-size: clamp(42px, 12vw, 66px); }
  .category-shade { background: linear-gradient(0deg, rgba(8,12,22,.76), rgba(8,12,22,.12)); }
  .post-content h2 { font-size: clamp(40px, 12vw, 64px); }
  .post-overlay {
    background:
      linear-gradient(0deg, rgba(0,0,0,.84), rgba(0,0,0,.22) 62%, rgba(0,0,0,.08)),
      linear-gradient(90deg, rgba(0,0,0,.32), transparent 70%);
  }
  .admin-layout { grid-template-columns: 1fr; margin-top: 24px; }
  .category-admin-form { grid-template-columns: 1fr; }
  .category-admin-form label:nth-child(3) { grid-column: auto; }
  .admin-post-item { grid-template-columns: 1fr 78px; }
  .admin-post-item img { width: 78px; height: 56px; }
  .admin-post-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .message-item { grid-template-columns: 1fr; }
  .category-page-hero,
  .article-page-hero { min-height: 68vh; }
  .category-page-hero .category-copy,
  .article-page-title {
    margin: 126px 0 54px 24px;
  }
  .category-page-hero h1,
  .article-page-title h1 {
    font-size: clamp(42px, 12vw, 66px);
  }
  .latest-card {
    grid-template-columns: 1fr;
  }
  .article-page-content .article-body p {
    font-size: 20px;
    line-height: 1.9;
  }
  .article-page-content[data-reader-size="small"] .article-body p,
  .article-page-content[data-reader-size="small"] .article-body li { font-size: 20px; }
  .article-page-content[data-reader-size="large"] .article-body p,
  .article-page-content[data-reader-size="large"] .article-body li { font-size: 24px; line-height: 1.95; }
  .article-page-content[data-reader-size="xlarge"] .article-body p,
  .article-page-content[data-reader-size="xlarge"] .article-body li { font-size: 28px; line-height: 2; }
  .article-page-content {
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 34px;
  }
  .reader-controls {
    position: relative;
    top: auto;
    width: fit-content;
    margin: 0 0 28px auto;
  }
  .reader-toggle {
    min-height: 46px;
    background: rgba(255,255,255,.98);
  }
  .reader-size-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 190px;
    background: rgba(244,246,250,.94);
  }
  .term-tooltip::after {
    left: 0;
    transform: translate(0, 6px);
  }
  .term-tooltip:hover::after,
  .term-tooltip:focus::after {
    transform: translate(0, 0);
  }
  .info-page {
    padding: 106px 18px 56px;
  }
  .info-content {
    padding: 24px 20px;
  }
  .info-content p {
    font-size: 17px;
  }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
