/* ============================================================
   Daily Notes — Studio Dagdak
   Espresso-dark editorial theme. 2026-11-25
   ============================================================ */

:root {
  --bg: #170e09;
  --bg-soft: #1d1109;
  --surface: #241610;
  --surface-2: #2d1c13;
  --cream: #f6f0e6;
  --cream-2: #e6dbc9;
  --muted: #b7a591;
  --muted-2: #8d7a66;
  --sand: #dfc8aa;
  --terra: #b85d3b;
  --terra-soft: #cf7a56;
  --line: rgba(223, 200, 170, 0.14);
  --line-strong: rgba(223, 200, 170, 0.28);
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}

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

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

body {
  background: var(--bg);
  color: var(--cream-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--terra);
  color: var(--cream);
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--sand);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------------- Header ---------------- */

.kn-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(23, 14, 9, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.kn-header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 70px;
}

.kn-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.kn-brand img {
  width: 24px;
  height: auto;
  opacity: 0.92;
}

.kn-brand-text {
  display: flex;
  flex-direction: column;
  gap: 9px;
  line-height: 1.05;
}

.kn-brand-name {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--cream);
}

.kn-brand-name em {
  font-style: normal;
  color: var(--terra-soft);
}

.kn-brand-sub {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 0;
}

.kn-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.kn-nav::-webkit-scrollbar {
  display: none;
}

.kn-nav a,
.kn-nav button {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}

.kn-nav a:hover,
.kn-nav button:hover {
  color: var(--cream);
  background: rgba(223, 200, 170, 0.07);
}

.kn-nav a.is-current {
  color: var(--cream);
}

.kn-header-cta {
  flex-shrink: 0;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sand);
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.kn-header-cta:hover {
  border-color: var(--sand);
  background: rgba(223, 200, 170, 0.08);
  color: var(--cream);
}

/* ---------------- Breadcrumb ---------------- */

.kn-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 34px;
  font-size: 0.76rem;
  color: var(--muted-2);
}

.kn-crumbs a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.kn-crumbs a:hover {
  color: var(--cream);
}

.kn-crumbs span.sep {
  color: rgba(223, 200, 170, 0.32);
}

.kn-crumbs .current {
  color: var(--sand);
}

/* ---------------- List hero ---------------- */

.kn-hero {
  padding: 30px 0 30px;
  border-bottom: 1px solid var(--line);
}

.kn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra-soft);
}

.kn-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--terra);
}

.kn-hero h1 {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: clamp(2.7rem, 6.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--cream);
}

.kn-hero-lede {
  margin-top: 18px;
  max-width: 610px;
  font-size: 1.03rem;
  line-height: 1.7;
  color: var(--muted);
}

.kn-hero-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--muted-2);
}

.kn-hero-meta strong {
  color: var(--sand);
  font-weight: 600;
}

/* ---------------- Filters ---------------- */

.kn-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 26px 0 8px;
}

.kn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kn-chip {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.16s ease;
}

.kn-chip:hover {
  border-color: var(--sand);
  color: var(--cream);
}

.kn-chip.is-active {
  background: var(--terra);
  border-color: var(--terra);
  color: #fff6ee;
}

.kn-count {
  margin-left: auto;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

/* ---------------- Card grid ---------------- */

.kn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 28px;
  padding: 22px 0 10px;
}

.kn-card[hidden] {
  display: none;
}

.kn-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  animation: kn-in 0.45s ease backwards;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

@keyframes kn-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.kn-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.8);
}

.kn-card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-2);
}

.kn-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.kn-card:hover .kn-card-media img {
  transform: scale(1.045);
}

.kn-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 14, 9, 0.34), transparent 55%);
  pointer-events: none;
}

.kn-card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 21px 22px;
  flex: 1;
}

.kn-card-cat {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-soft);
}

.kn-card-title {
  font-family: var(--sans);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--cream);
  transition: color 0.16s ease;
}

.kn-card:hover .kn-card-title {
  color: #fff9f0;
}

.kn-card-meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--muted-2);
}

.kn-empty {
  padding: 60px 0 80px;
  text-align: center;
  color: var(--muted);
}

/* ---------------- Home sections ---------------- */

.kn-section {
  padding: 46px 0 0;
}

.kn-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.kn-section-head h2 {
  font-family: var(--sans);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--cream);
}

.kn-section-head p {
  font-size: 0.85rem;
  color: var(--muted-2);
}

.kn-note-band {
  margin-top: 44px;
  padding: 30px 32px;
  border-radius: 18px;
  background: linear-gradient(120deg, var(--surface-2) 0%, #20130d 100%);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
}

.kn-note-band div {
  flex: 1 1 380px;
}

.kn-note-band h3 {
  font-family: var(--sans);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 6px;
}

.kn-note-band p {
  font-size: 0.9rem;
  color: var(--muted);
}

.kn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--sand);
  color: #20130c;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.16s ease, transform 0.16s ease;
}

.kn-btn:hover {
  background: #ecd9bf;
  transform: translateY(-1px);
}

.kn-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sand);
  transition: all 0.16s ease;
}

.kn-btn-ghost:hover {
  border-color: var(--sand);
  color: var(--cream);
  background: rgba(223, 200, 170, 0.07);
}

/* ---------------- Article ---------------- */

.kn-article-hero {
  padding: 44px 0 44px;
  border-bottom: 1px solid var(--line);
}

.kn-article-hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 54px;
  align-items: center;
}

.kn-article-hero h1 {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: clamp(2.05rem, 4.3vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--cream);
}

.kn-article-dek {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
}

.kn-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--muted-2);
}

.kn-article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(223, 200, 170, 0.35);
}

.kn-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sand);
  transition: all 0.16s ease;
}

.kn-copy:hover {
  border-color: var(--sand);
  color: var(--cream);
}

.kn-copy svg {
  width: 13px;
  height: 13px;
}

.kn-article-hero-figure {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3.05;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.kn-article-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kn-article {
  padding: 54px 0 10px;
}

.kn-body {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.85;
  color: #ded2c1;
}

.kn-body > p {
  margin-bottom: 1.45em;
}

.kn-body h2 {
  margin: 2.5em 0 0.75em;
  font-family: var(--sans);
  font-size: 1.68rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--cream);
}

.kn-body h3 {
  margin: 2em 0 0.6em;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--cream);
}

.kn-body strong {
  color: var(--cream);
  font-weight: 600;
}

.kn-body em {
  color: var(--sand);
  font-style: italic;
}

.kn-body a {
  color: var(--sand);
  text-decoration: underline;
  text-decoration-color: rgba(223, 200, 170, 0.4);
  text-underline-offset: 3px;
}

.kn-body a:hover {
  color: var(--cream);
}

.kn-body ul,
.kn-body ol {
  margin: 0 0 1.5em 1.15em;
  padding-left: 0.4em;
}

.kn-body li {
  margin-bottom: 0.55em;
  padding-left: 0.15em;
}

.kn-body li::marker {
  color: var(--terra-soft);
}

.kn-body blockquote {
  margin: 2.7em 0;
  padding: 0;
  border: none;
}

.kn-body blockquote::before {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  background: var(--terra);
  margin-bottom: 1.1em;
}

.kn-body blockquote p {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 0.55em;
}

.kn-body blockquote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}

.kn-wide {
  width: min(920px, calc(100vw - 48px));
  margin: 2.9em 0 2.9em 50%;
  transform: translateX(-50%);
}

.kn-wide img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.kn-wide figcaption {
  margin-top: 11px;
  font-size: 0.76rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.kn-callout {
  margin: 3em 0 0;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--terra);
  border-radius: 14px;
  background: var(--surface);
}

.kn-callout .kn-eyebrow {
  font-size: 0.63rem;
}

.kn-callout h3 {
  margin: 10px 0 8px;
  font-family: var(--sans);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--cream);
}

.kn-callout p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 12px;
}

.kn-callout p:last-child {
  margin-bottom: 0;
}

.kn-callout a {
  color: var(--sand);
  font-weight: 600;
  font-size: 0.88rem;
}

.kn-callout a:hover {
  color: var(--cream);
}

.kn-article-foot {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 34px;
}

.kn-byline {
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.kn-byline strong {
  color: var(--sand);
  font-weight: 600;
}

.kn-byline + .kn-tags {
  border-top: 0;
  padding-top: 16px;
}

.kn-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.kn-tag {
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(223, 200, 170, 0.08);
  font-size: 0.73rem;
  letter-spacing: 0.03em;
  color: var(--sand);
}

.kn-catlink {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-soft);
}

.kn-feedback {
  margin: 26px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.kn-feedback-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
}

.kn-feedback-label span {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted-2);
  margin-top: 3px;
}

.kn-stars {
  display: flex;
  gap: 4px;
}

.kn-star {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(223, 200, 170, 0.3);
  transition: color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

.kn-star svg {
  width: 19px;
  height: 19px;
}

.kn-star:hover,
.kn-star.is-on {
  color: var(--terra-soft);
  transform: translateY(-1px);
}

.kn-star:hover {
  background: rgba(184, 93, 59, 0.12);
}

.kn-thanks {
  font-size: 0.85rem;
  color: var(--sand);
}

/* ---------------- Discover more ---------------- */

.kn-more {
  padding: 62px 0 20px;
}

.kn-more .kn-grid {
  padding-top: 4px;
}

/* ---------------- Static pages ---------------- */

.kn-page {
  padding: 40px 0 70px;
}

.kn-page h1 {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 14px 0 18px;
}

.kn-page-lede {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 36px;
}

.kn-prose {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.8;
  color: #ded2c1;
}

.kn-prose h2 {
  margin: 2.3em 0 0.6em;
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--cream);
}

.kn-prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1rem;
  color: var(--cream);
}

.kn-prose p {
  margin-bottom: 1.2em;
}

.kn-prose ul {
  margin: 0 0 1.3em 1.1em;
}

.kn-prose li {
  margin-bottom: 0.5em;
}

.kn-prose a {
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kn-prose .updated {
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.kn-form {
  max-width: 620px;
  margin-top: 10px;
}

.kn-field {
  margin-bottom: 18px;
}

.kn-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
}

.kn-field input,
.kn-field select,
.kn-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.94rem;
}

.kn-field textarea {
  min-height: 150px;
  resize: vertical;
}

.kn-field input:focus,
.kn-field select:focus,
.kn-field textarea:focus {
  outline: none;
  border-color: var(--sand);
  background: #291811;
}

.kn-field ::placeholder {
  color: var(--muted-2);
}

.kn-form-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted-2);
}

/* ---------------- Footer ---------------- */

.kn-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.kn-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0 40px;
}

.kn-footer h4 {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.kn-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.86rem;
}

.kn-footer a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.kn-footer a:hover {
  color: var(--cream);
}

.kn-footer-brand p {
  margin-top: 14px;
  max-width: 300px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted-2);
}

.kn-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted-2);
}

.kn-footer-bottom a {
  color: var(--muted-2);
}

.kn-footer-bottom a:hover {
  color: var(--sand);
}

/* ---------------- Reveal ---------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1000px) {
  .kn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .kn-article-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .kn-article-hero-figure {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .kn-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }

  .kn-header-inner {
    height: auto;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 12px 20px 10px;
  }

  .kn-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 2px;
    padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }

  .kn-nav a,
  .kn-nav button {
    padding: 7px 9px;
    font-size: 0.74rem;
  }

  .kn-header-cta {
    margin-left: auto;
    padding: 7px 12px;
    font-size: 0.7rem;
  }

  .kn-crumbs {
    padding-top: 24px;
  }

  .kn-hero {
    padding: 22px 0 24px;
  }

  .kn-hero h1 {
    font-size: clamp(2.3rem, 11vw, 3rem);
  }

  .kn-hero-lede {
    font-size: 0.95rem;
  }

  .kn-toolbar {
    gap: 10px;
    padding-top: 20px;
  }

  .kn-count {
    width: 100%;
    margin-left: 0;
  }

  .kn-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 16px;
  }

  .kn-card-title {
    font-size: 1.16rem;
  }

  .kn-article-hero {
    padding: 26px 0 30px;
  }

  .kn-article-hero h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.5rem);
  }

  .kn-article {
    padding-top: 34px;
  }

  .kn-body {
    font-size: 1.01rem;
    line-height: 1.78;
  }

  .kn-body h2 {
    font-size: 1.36rem;
    margin-top: 2.1em;
  }

  .kn-body blockquote p {
    font-size: 1.24rem;
  }

  .kn-body blockquote::before {
    font-size: 3.6rem;
  }

  .kn-wide {
    width: calc(100vw - 40px);
    margin: 2.4em 0 2.4em 50%;
  }

  .kn-callout {
    padding: 22px 20px;
  }

  .kn-feedback {
    flex-direction: column;
    align-items: flex-start;
  }

  .kn-more {
    padding-top: 48px;
  }

  .kn-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .kn-note-band {
    padding: 24px 22px;
  }

  .kn-footer-top {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 40px 0 30px;
  }

  .kn-page {
    padding-top: 26px;
  }
}

/* ============================================================
   v11 — view counters, editor entry, /k-notes/write/
   ============================================================ */

/* ---- view counts ---- */
.kn-views {
  color: var(--muted-2);
  white-space: nowrap;
}

.kn-article-meta .kn-views {
  font-variant-numeric: tabular-nums;
}

.kn-card-meta .kn-views {
  font-variant-numeric: tabular-nums;
}

/* ---- Write entry in the header ---- */
.kn-write-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sand);
  transition: all 0.16s ease;
}

.kn-write-link svg {
  width: 13px;
  height: 13px;
}

.kn-write-link:hover,
.kn-write-link.is-current {
  border-color: var(--terra);
  color: #fff4ea;
  background: rgba(184, 93, 59, 0.22);
}

/* ---- editor desk ---- */
.kn-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.kn-lock {
  max-width: 460px;
  margin: 46px auto 90px;
  padding: 36px 32px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
}

.kn-lock h1 {
  margin: 14px 0 10px;
  font-family: var(--sans);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cream);
}

.kn-lock-lede {
  margin: 0 auto 22px;
  max-width: 320px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

.kn-lock-form {
  display: flex;
  gap: 8px;
}

.kn-lock-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--cream);
  font-size: 0.92rem;
}

.kn-lock-form input:focus {
  outline: none;
  border-color: var(--sand);
}

.kn-lock-form.is-busy {
  opacity: 0.65;
}

.kn-lock-error {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--terra-soft);
}

.kn-lock-note {
  margin-top: 20px;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted-2);
}

.kn-write {
  padding: 26px 0 90px;
}

.kn-write-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.kn-write-head h1 {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.kn-write-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kn-write-actions .kn-btn,
.kn-write-actions .kn-btn-ghost {
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
}

.kn-write-actions .kn-btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.kn-write-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
  padding-top: 28px;
  align-items: start;
}

.kn-write-form .kn-field label span {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted-2);
}

.kn-write-form .kn-field textarea#f-dek {
  min-height: 72px;
}

.kn-write-form .kn-field textarea#f-body {
  min-height: 420px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.kn-write-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
}

.kn-hero-row {
  display: flex;
  gap: 8px;
}

.kn-hero-row input {
  flex: 1;
}

.kn-hero-row .kn-btn-ghost {
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-family: var(--sans);
  white-space: nowrap;
}

.kn-hero-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.kn-hero-preview img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.kn-hero-preview span {
  font-size: 0.76rem;
  color: var(--muted-2);
}

.kn-preview {
  margin-top: 16px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.kn-preview-cat {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-soft);
}

.kn-preview h2 {
  margin: 10px 0 8px;
  font-family: var(--sans);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
}

.kn-preview-dek {
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.kn-preview .kn-prose {
  max-width: none;
}

.kn-form-note.is-ok {
  color: var(--sand);
}

.kn-form-note.is-error {
  color: var(--terra-soft);
}

.kn-write-side {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.kn-write-side h2 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 14px;
}

.kn-post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.kn-post-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.kn-post-item:last-child {
  border-bottom: 0;
}

.kn-post-item-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.kn-post-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cream);
}

.kn-post-item-title:hover {
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kn-post-item-meta {
  font-size: 0.7rem;
  color: var(--muted-2);
}

.kn-post-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.kn-mini {
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--sand);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.kn-mini:hover {
  border-color: var(--sand);
  color: var(--cream);
}

.kn-mini.is-danger:hover {
  border-color: var(--terra);
  color: var(--terra-soft);
}

.kn-card-more {
  background: transparent;
  border-style: dashed;
}

.kn-card-more-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 21px;
  min-height: 168px;
  justify-content: flex-end;
}

/* ---- editor on smaller screens ---- */
@media (max-width: 900px) {
  .kn-write-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .kn-write-row {
    grid-template-columns: 1fr 1fr;
  }

  .kn-write-row .kn-field:last-child {
    grid-column: 1 / -1;
  }

  .kn-write-head {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .kn-write-row {
    grid-template-columns: 1fr;
  }

  .kn-lock {
    padding: 28px 20px;
  }

  .kn-lock-form {
    flex-direction: column;
  }

  .kn-write-form .kn-field textarea#f-body {
    min-height: 320px;
  }
}

/* the hidden attribute must win over the display values set above */
[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .kn-write-link {
    order: 1;
    margin-left: auto;
    padding: 8px 11px;
  }

  .kn-write-link span {
    display: none;
  }

  .kn-header-cta {
    order: 2;
    margin-left: 0;
  }
}

.kn-post-empty {
  margin: 2px 0 14px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.kn-write-side .kn-hint {
  margin-bottom: 14px;
  font-size: 0.73rem;
  line-height: 1.6;
  color: var(--muted-2);
}

.kn-write-side .kn-hint code {
  color: var(--sand);
  font-size: 0.71rem;
}

/* ---- empty magazine (no notes yet) ---- */
.kn-empty-state {
  margin: 30px 0 10px;
  padding: 54px 30px 58px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  text-align: center;
}

.kn-empty-title {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
}

.kn-empty-sub {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

.kn-empty-sub a {
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* v16 — 한국어 서브카피·본문 조판 */
html[lang="ko"] .kn-brand-sub {
  letter-spacing: 0.12em;
  font-size: 0.58rem;
}
html[lang="ko"] .kn-card-meta,
html[lang="ko"] .kn-article-meta {
  letter-spacing: 0;
}
html[lang="ko"] .kn-body p,
html[lang="ko"] .kn-body li,
html[lang="ko"] .kn-section-head p {
  word-break: keep-all;
}
html[lang="ko"] .kn-hero h1,
html[lang="ko"] .kn-hero-lede,
html[lang="ko"] .kn-article-hero h1,
html[lang="ko"] .kn-article-dek,
html[lang="ko"] .kn-page h1,
html[lang="ko"] .kn-page-lede,
html[lang="ko"] .kn-card-title,
html[lang="ko"] .kn-body h2,
html[lang="ko"] .kn-body h3,
html[lang="ko"] .kn-section-head h2,
html[lang="ko"] .kn-callout h3,
html[lang="ko"] .kn-note-band h3 {
  word-break: keep-all;
  overflow-wrap: break-word;
}
html[lang="ko"] .kn-body p {
  line-height: 1.85;
}

/* v18 — 카드 높이·메타 기준선 정렬 (제목 줄 수가 달라도 한 줄에 맞춘다) */
.kn-card > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.kn-card-media {
  flex: 0 0 auto;
}
