:root {
  color-scheme: light dark;
  --cream: #0d1525;
  --cream-deep: #24324a;
  --paper: #131f33;
  --navy: #f7f2e6;
  --navy-soft: #d5deec;
  --ink: #f4f0e6;
  --muted: #aab6c8;
  --coral: #ff7656;
  --teal: #65d6ce;
  --gold: #ffc341;
  --line: rgba(255, 255, 255, .14);
  --shadow: 0 20px 56px rgba(0, 0, 0, .3);
  --shell: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --cream: #f3f1ea;
  --cream-deep: #e4dece;
  --paper: #fbfaf6;
  --navy: #172541;
  --navy-soft: #263a5e;
  --ink: #33291c;
  --muted: #756956;
  --coral: #e95740;
  --teal: #168f87;
  --gold: #f4c84a;
  --line: rgba(23, 37, 65, .14);
  --shadow: 0 20px 56px rgba(23, 37, 65, .12);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 12%, rgba(244, 200, 74, 0.15), transparent 25rem),
    radial-gradient(circle at 93% 5%, rgba(47, 183, 170, 0.10), transparent 28rem),
    var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .19;
  background-image: radial-gradient(rgba(23, 37, 65, .2) .55px, transparent .55px);
  background-size: 12px 12px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 11px 16px;
  transform: translateY(-150%);
  border-radius: 12px;
  color: var(--paper);
  background: var(--navy);
  font-weight: 800;
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 21, 37, .94);
  backdrop-filter: blur(16px);
}
.header-inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; min-height: 48px; align-items: center; gap: 12px; color: var(--navy); }
.brand-copy { display: flex; align-items: center; line-height: 1; }
.brand-duck-image { width: 38px; height: 38px; object-fit: contain; }
.brand-wordmark-image { width: 150px; height: auto; object-fit: contain; transform: translateY(1px); }
html[data-theme="dark"] .brand-wordmark-image,
html[data-theme="dark"] .footer-wordmark-image { filter: brightness(0) invert(1); }
.duck-mark {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 2px solid var(--navy);
  border-radius: 50% 50% 38% 42%;
  background: var(--gold);
  box-shadow: 3px 4px 0 var(--navy);
}
.duck-mark::before {
  position: absolute;
  top: 14px;
  right: -11px;
  width: 18px;
  height: 10px;
  content: "";
  border: 2px solid var(--navy);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: var(--coral);
}
.duck-mark::after {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--navy);
}
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.7vw, 34px); margin-left: auto; }
.desktop-nav > a, .desktop-nav > details > summary, .site-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--navy);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.desktop-nav > a { position: relative; }
.desktop-nav > a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}
.desktop-nav > a:hover::after, .desktop-nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.category-menu { position: relative; }
.category-menu summary { gap: 7px; cursor: pointer; list-style: none; }
.category-menu summary::-webkit-details-marker { display: none; }
.category-menu summary::after { content: "⌄"; color: var(--gold); font-size: .85rem; transition: transform 160ms ease; }
.category-menu[open] summary::after { transform: rotate(180deg); }
.category-menu-panel { position: absolute; top: 50px; right: 0; width: min(82vw, 280px); padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.category-menu-panel ul { margin: 0; padding: 0; list-style: none; }
.category-menu-panel ul ul { padding-left: 14px; }
.category-menu-panel a { display: flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .8rem; font-weight: 750; letter-spacing: 0; text-transform: none; }
.category-menu-panel a:hover { color: var(--navy); }
.category-tags-link { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }
.theme-toggle .theme-moon, html[data-theme="dark"] .theme-toggle .theme-sun { display: none; }
html[data-theme="dark"] .theme-toggle .theme-moon { display: inline; }
.search-box { display: flex; width: clamp(170px, 18vw, 240px); min-height: 44px; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.search-box:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 143, 135, .12); }
.search-box input { min-width: 0; flex: 1; padding: 0 4px 0 16px; border: 0; outline: 0; background: transparent; font-size: .82rem; }
.search-box input::placeholder { color: var(--muted); }
.search-box button { display: grid; width: 44px; min-height: 44px; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.search-box svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { display: grid; width: 44px; height: 44px; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 18px; height: 2px; border-radius: 2px; background: var(--navy); }
.mobile-menu-panel { position: absolute; top: 54px; right: 0; width: min(82vw, 330px); padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.mobile-menu-panel > a { display: flex; min-height: 48px; align-items: center; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 850; }
.category-tree { padding-top: 12px; }
.category-tree > strong { display: block; margin-bottom: 7px; color: var(--gold); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.category-tree ul { margin: 0; padding-left: 16px; list-style: none; }
.category-tree > ul { padding-left: 0; }
.category-tree a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .88rem; }

.journal-hero { padding-block: clamp(56px, 7vw, 84px) 42px; }
.eyebrow { margin: 0 0 18px; color: var(--coral); font-size: .72rem; font-weight: 950; letter-spacing: .17em; text-transform: uppercase; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: end; gap: 34px; }
.hero-copy .eyebrow { grid-column: 1 / -1; margin-bottom: -4px; }
.hero-copy h1 { max-width: 760px; margin: 0; color: var(--navy); font-size: clamp(2.6rem, 5vw, 4.7rem); font-weight: 900; letter-spacing: -.06em; line-height: 1.02; }
.hero-copy > p:last-child { max-width: 520px; margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.75; }
.journal-status-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.journal-status-strip span { padding: 14px 16px; color: var(--muted); background: var(--paper); font-size: .72rem; }
.journal-status-strip strong { margin-right: 7px; color: var(--gold); font-size: .62rem; letter-spacing: .09em; }
.collection-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 32px clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: 14px; color: var(--navy); background: var(--paper); }
.collection-head h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -.05em; line-height: 1; }
.collection-head p:not(.eyebrow) { max-width: 640px; margin: 12px 0 0; color: var(--muted); }
.collection-head > strong { font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.05em; line-height: .9; }
.collection-head > strong small { display: block; margin-top: 12px; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(64px, 8vw, 100px); }
.collection-head + .post-grid { padding-top: 28px; }
.post-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: none; transition: transform 180ms ease, border-color 180ms ease; }
.post-card:only-child { width: min(100%, 760px); grid-column: 1 / -1; justify-self: center; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card:nth-child(4n + 2) .card-placeholder { background: var(--teal); }
.post-card:nth-child(4n + 3) .card-placeholder { background: var(--coral); }
.post-card:nth-child(4n + 4) .card-placeholder { background: var(--cream-deep); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--navy); background: var(--gold); }
.card-placeholder::before { position: absolute; width: 180px; height: 180px; content: ""; border: 1px dashed rgba(23, 37, 65, .28); border-radius: 50%; }
.card-placeholder > strong { font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -.05em; }
.card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease; }
.post-card:hover .card-image { transform: scale(1.025); }
.card-body { padding: 20px; }
.card-meta, .article-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .71rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-meta a, .card-meta span, .article-category { color: var(--teal); font-weight: 900; }
.card-body h2 { margin: 12px 0 9px; color: var(--navy); font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.035em; line-height: 1.2; }
.card-body > p { display: -webkit-box; min-height: 3.3em; margin: 0; overflow: hidden; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.read-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--navy); font-size: .75rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.read-link span { color: var(--coral); font-size: 1rem; transition: transform 160ms ease; }
.read-link:hover span { transform: translate(3px, -3px); }
.comment-count { color: var(--muted); font-size: .74rem; }
.empty-state, .protected-card { width: min(100% - (var(--gutter) * 2), 760px); margin: 70px auto 120px; padding: clamp(34px, 7vw, 72px); text-align: center; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); }
.empty-state h2, .protected-card h1 { color: var(--navy); font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -.06em; line-height: 1; }
.empty-state .placeholder-duck { margin: 0 auto 18px; }
.placeholder-duck { width: 72px; height: 72px; object-fit: contain; }
.button, .protected-form button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 2px solid var(--navy); border-radius: 999px; color: var(--paper); background: var(--navy); font-weight: 850; cursor: pointer; }

#tt-body-page .journal-hero, #tt-body-tag .journal-hero, #tt-body-guestbook .journal-hero { display: none; }
#tt-body-page .post-grid { display: block; width: 100%; padding: 0; }
.article-shell { width: min(100% - (var(--gutter) * 2), 960px); margin: 0 auto; padding: clamp(64px, 9vw, 118px) 0 clamp(90px, 12vw, 160px); }
.article-index-link { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 26px; color: var(--muted); font-size: .73rem; font-weight: 850; letter-spacing: .06em; }
.article-index-link:hover { color: var(--teal); }
.article-header { width: min(100%, 820px); margin: 0 auto; text-align: center; }
.article-category { display: inline-flex; min-height: 44px; align-items: center; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; }
.article-header h1 { margin: 16px 0 24px; color: var(--navy); font-size: clamp(2.1rem, 4vw, 3.6rem); font-weight: 950; letter-spacing: -.045em; line-height: 1.08; word-break: keep-all; }
.article-meta { justify-content: center; }
.article-meta span::before { margin-right: 18px; content: "·"; color: var(--coral); }
.article-cover { width: min(100%, 960px); margin: clamp(38px, 6vw, 72px) auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--cream-deep); box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 720px; object-fit: cover; }
.owner-tools { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.owner-tools a, .owner-tools button { min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .76rem; font-weight: 800; cursor: pointer; }
.translation-note { display: flex; width: min(100%, 760px); align-items: start; gap: 16px; margin: 46px auto 0; padding: 18px 20px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; color: var(--muted); background: rgba(244, 200, 74, .13); font-size: .86rem; }
.translation-note strong { flex: 0 0 auto; color: var(--navy); }
.translation-note a { display: inline-flex; min-height: 44px; align-items: center; margin-left: 8px; color: var(--teal); font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.translation-note a[hidden] { display: none; }
.article-body { width: min(100%, 760px); margin: clamp(54px, 8vw, 90px) auto 0; color: #3d3429; font-family: ui-serif, Georgia, "Noto Serif KR", serif; font-size: clamp(1.04rem, 1.7vw, 1.16rem); line-height: 1.9; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body h2, .article-body h3, .article-body h4 { color: var(--navy); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif; letter-spacing: -.04em; line-height: 1.25; scroll-margin-top: 110px; }
.article-body h2 { margin: 2.6em 0 .8em; font-size: clamp(1.85rem, 4vw, 2.7rem); }
.article-body h3 { margin: 2.2em 0 .7em; font-size: clamp(1.45rem, 3vw, 2rem); }
.article-body p, .article-body ul, .article-body ol { margin-block: 1.35em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .5em; }
.article-body a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-body blockquote { margin: 2em 0; padding: .5em 0 .5em 1.5em; border-left: 4px solid var(--coral); color: var(--muted); font-size: 1.1em; }
.article-body pre { max-width: 100%; margin: 2em 0; padding: 22px; overflow-x: auto; border-radius: 16px; color: #f7f4ea; background: var(--navy); font-size: .87rem; line-height: 1.65; }
.article-body code { padding: .15em .38em; border-radius: 5px; color: var(--navy); background: rgba(23, 37, 65, .08); font-size: .9em; }
.article-body pre code { padding: 0; color: inherit; background: transparent; }
.article-body hr { margin: 3em 0; border: 0; border-top: 1px solid var(--line); }
.article-body table { display: block; width: 100%; margin: 2em 0; overflow-x: auto; border-collapse: collapse; }
.article-body th, .article-body td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.article-body figure, .article-body .imageblock, .article-body .imagegridblock { max-width: min(100vw - 32px, 960px); margin: 2.4em 50%; transform: translateX(-50%); }
.article-body figure img, .article-body .imageblock img { width: auto; max-width: 100%; height: auto; margin-inline: auto; border-radius: 16px; }
.article-body figcaption, .article-body .cap1 { margin-top: 10px; color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .78rem; text-align: center; }
.article-body iframe, .article-body video { max-width: 100%; border: 0; border-radius: 16px; }
.article-body .video-wrap, .article-body [data-ke-type="video"] { max-width: 100%; overflow: hidden; border-radius: 16px; }
.article-body [data-ke-type="opengraph"] { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 10px 28px rgba(23, 37, 65, .07); }
.article-body .og-link, .article-body .link-og, .article-body [data-ke-type="opengraph"] > a { display: grid; min-height: 132px; grid-template-columns: 180px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; color: inherit; background: var(--paper); text-decoration: none; }
.article-body [data-ke-type="opengraph"] > .og-link, .article-body [data-ke-type="opengraph"] > .link-og, .article-body [data-ke-type="opengraph"] > a { border: 0; border-radius: 0; }
.article-body .og-image { width: 100% !important; height: 100% !important; min-height: 132px; margin: 0 !important; object-fit: cover; border-radius: 0 !important; background-position: center; background-size: cover; }
.article-body .og-text { display: grid; min-width: 0; align-content: center; gap: 6px; padding: 18px 20px; }
.article-body .og-title, .article-body .og-desc, .article-body .og-host { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif; }
.article-body .og-title { overflow: hidden; color: var(--navy); font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.article-body .og-desc { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .82rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-body .og-host { color: var(--teal); font-size: .72rem; font-weight: 750; }
.article-tags { display: flex; width: min(100%, 760px); flex-wrap: wrap; align-items: center; gap: 8px; margin: 64px auto 0; padding-top: 26px; border-top: 1px solid var(--line); }
.article-tags strong { margin-right: 8px; color: var(--navy); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.article-tags a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); font-size: .8rem; }
.related-posts { width: min(100%, 960px); margin: 92px auto 0; padding-top: 56px; border-top: 1px solid var(--line); }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.05em; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.related-card { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 18px; min-height: 116px; padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.related-card img { width: 96px; height: 96px; grid-row: 1 / span 2; object-fit: cover; border-radius: 12px; }
.related-card strong { color: var(--navy); line-height: 1.3; }
.related-card time { color: var(--muted); font-size: .72rem; }
.post-neighbors { display: grid; width: min(100%, 960px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 72px auto 0; }
.post-neighbors a { display: grid; min-height: 130px; align-content: center; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.post-neighbors small { margin-bottom: 9px; color: var(--coral); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.post-neighbors strong { color: var(--navy); line-height: 1.35; }
.comments { width: min(100%, 760px); margin: 84px auto 0; padding-top: 54px; border-top: 1px solid var(--line); }
.tt-comment-cont { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif; }
.tt_box_namecard { width: min(100%, 760px) !important; margin: 72px auto 0 !important; border: 1px solid var(--line) !important; border-radius: 18px !important; color: var(--ink) !important; background: var(--paper) !important; }
.tt_box_namecard .tt_tit_cont { color: var(--navy) !important; }
.tt_box_namecard .tt_desc { color: var(--muted) !important; }
.tt_box_namecard .tt_wrap_thumb { overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--cream-deep) !important; }
.tt_box_namecard .tt_thumb_g { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.tt_box_namecard .tt_btn_subscribe { min-height: 44px !important; border-color: var(--line) !important; border-radius: 999px !important; color: var(--navy) !important; background: var(--cream) !important; }
.tt-comment-cont, .tt-comment-cont .tt-box-total, .tt-comment-cont .tt-item-reply { color: var(--ink) !important; }
.tt-comment-cont .tt-area-write, .tt-comment-cont .tt-item-reply, .tt-comment-cont .tt_wrap_write { border-color: var(--line) !important; background: transparent !important; }
.tt-comment-cont .tt-box-account input, .tt-comment-cont .tt-box-textarea textarea, .tt-comment-cont .tt-inner-g { border-color: var(--line) !important; color: var(--ink) !important; background: var(--paper) !important; }
.tt-comment-cont input::placeholder, .tt-comment-cont textarea::placeholder { color: var(--muted) !important; opacity: 1; }
.tt-comment-cont .tt-box-thumb, .tt-comment-cont .tt-thumbnail { border-color: var(--line) !important; background-color: var(--paper) !important; }
.tt-comment-cont .tt-xe-label { color: var(--muted) !important; }
.tt-comment-cont .tt-btn_register { min-height: 44px !important; border-radius: 999px !important; color: #10213e !important; background: var(--gold) !important; }
.page-shell { padding-top: clamp(72px, 10vw, 130px); }

.tag-page { padding: clamp(72px, 10vw, 130px) 0 clamp(100px, 14vw, 180px); }
.tag-page h1 { max-width: 820px; margin: 0; color: var(--navy); font-size: clamp(2.7rem, 7vw, 6.5rem); letter-spacing: -.075em; line-height: .95; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 54px; }
.tag-cloud a { display: inline-flex; min-height: 48px; align-items: center; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); background: var(--paper); font-weight: 800; }
.tag-cloud .cloud1 { background: var(--gold); font-size: 1.15rem; }
.tag-cloud .cloud2 { background: var(--cream-deep); font-size: 1.05rem; }
.guestbook { padding-top: clamp(72px, 10vw, 130px); }
.protected-form { display: grid; max-width: 420px; grid-template-columns: 1fr auto; gap: 10px; margin: 28px auto 0; text-align: left; }
.protected-form label { grid-column: 1 / -1; font-size: .8rem; font-weight: 800; }
.protected-form input { min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

.pagination { display: flex; min-height: 80px; align-items: center; justify-content: center; gap: 18px; margin-bottom: 90px; }
.pagination:has(.no-more-prev):has(.no-more-next) { display: none; }
.pagination > span { display: flex; gap: 6px; }
.page-arrow, .page-number { display: inline-grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-weight: 850; }
.page-number span, .page-number.selected { color: var(--paper); background: var(--navy); }
.no-more-prev, .no-more-next { opacity: .32; pointer-events: none; }

.site-footer { padding: 48px 0 24px; color: #e8edf5; background: #09111f; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr auto; align-items: start; gap: 42px; }
.footer-inner > div { display: flex; align-items: center; gap: 18px; }
.footer-inner > div > span { display: grid; }
.footer-inner > div strong { margin-top: 6px; color: var(--gold); font-size: .67rem; letter-spacing: .2em; line-height: 1.25; }
.footer-duck-image { width: 48px; height: 48px; object-fit: contain; }
.footer-wordmark-image { width: 146px; height: auto; }
.footer-inner > p { margin: 0; color: rgba(255, 253, 247, .65); }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a { color: #e8edf5; }
.copyright { width: min(100% - (var(--gutter) * 2), var(--shell)); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); color: rgba(255, 253, 247, .5); font-size: .72rem; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .search-box { width: min(38vw, 220px); }
  .journal-hero { padding-block: 52px 38px; }
  .hero-copy { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .site-footer nav { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .header-inner { min-height: 70px; gap: 12px; }
  .brand-wordmark-image { width: 128px; }
  .duck-mark { width: 36px; height: 36px; }
  .duck-mark::before { top: 12px; }
  .duck-mark::after { top: 8px; right: 8px; }
  .search-box { width: 44px; border-color: transparent; background: transparent; }
  .search-box input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
  .search-box:focus-within { position: fixed; top: 78px; right: 18px; left: 18px; z-index: 101; width: auto; border-color: var(--teal); background: var(--paper); box-shadow: var(--shadow); }
  .search-box:focus-within input { position: static; width: auto; height: auto; padding-left: 16px; opacity: 1; pointer-events: auto; }
  .hero-copy h1 { font-size: clamp(2.35rem, 11vw, 3.45rem); }
  .journal-status-strip { grid-template-columns: 1fr; }
  .collection-head { align-items: start; flex-direction: column; padding: 38px 26px; }
  .post-grid { grid-template-columns: 1fr; }
  .collection-head > strong { font-size: 4rem; }
  .card-body { padding: 24px; }
  .article-shell { padding-top: 24px; }
  .article-index-link { display: none; }
  .article-header h1 { margin-top: 8px; font-size: clamp(1.9rem, 8vw, 2.6rem); word-break: normal; }
  .article-meta { align-items: center; flex-direction: column; gap: 4px; }
  .article-meta span::before { display: none; }
  .translation-note { flex-direction: column; gap: 4px; }
  .article-body .og-link, .article-body .link-og, .article-body [data-ke-type="opengraph"] > a { min-height: 112px; grid-template-columns: 112px minmax(0, 1fr); }
  .article-body .og-image { min-height: 112px; }
  .article-body .og-desc { display: none; }
  .article-body figure, .article-body .imageblock, .article-body .imagegridblock { max-width: 100%; margin-inline: 0; transform: none; }
  .related-grid, .post-neighbors { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer nav { grid-column: auto; flex-wrap: wrap; }
  .protected-form { grid-template-columns: 1fr; }
  .protected-form button { width: 100%; }
}

html[data-theme="dark"] .site-header { background: rgba(13, 21, 37, .94); }
html[data-theme="light"] .site-header { background: rgba(243, 241, 234, .94); }
html[data-theme="dark"] .article-body { color: #d9dfeb; }
html[data-theme="dark"] .protected-form input { background: #101a2c; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
