/* ==========================================================================
   공간노트 (interior-note) — main stylesheet
   warm editorial: cream paper, ink, terracotta accent, sage secondary
   ========================================================================== */

:root {
  --paper: #FBF7F0;
  --paper-2: #F4EDE2;
  --paper-3: #EFE6D8;
  --ink: #24201B;
  --ink-2: #3B352E;
  --ink-soft: #6B6155;
  --ink-faint: #8A7E6F;
  --line: #E2D7C5;
  --line-strong: #CDBEA8;
  --terra: #AE5238;
  --terra-deep: #8C3D28;
  --terra-soft: #F3E2D9;
  --sage: #63755F;
  --sage-soft: #E8EDE3;
  --gold: #A9803F;
  --gold-soft: #F4EBDA;
  --blue: #4C5F6E;
  --blue-soft: #E5EAED;
  --serif: "Gowun Batang", "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(36, 32, 27, 0.04);
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--terra-deep); text-decoration: none; }
a:hover { color: var(--terra); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

.wrapper {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}
.wrapper--narrow { max-width: calc(var(--wrap-narrow) + 64px); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
}
.skip-link:focus { left: 16px; color: var(--paper); }

.icon { flex: 0 0 auto; }

/* reading progress ------------------------------------------------------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: transparent;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--terra);
  transition: width 0.1s linear;
}

/* header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark { color: var(--terra); display: inline-flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.01em;
}
.brand__text small {
  margin-top: 3px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  position: relative;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--terra-deep); }
.site-nav a.is-active { color: var(--terra-deep); }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--terra);
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle__close { display: none; }
body.nav-open .nav-toggle__open { display: none; }
body.nav-open .nav-toggle__close { display: inline-flex; }

/* hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 420px at 78% -10%, rgba(174, 82, 56, 0.07), transparent 60%),
    radial-gradient(760px 380px at 6% 110%, rgba(99, 117, 95, 0.08), transparent 62%),
    var(--paper);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(0deg, rgba(36, 32, 27, 0.035) 1px, transparent 1px);
  background-size: 100% 8px;
  opacity: 0.35;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 76px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terra);
  display: inline-block;
}
.hero__title {
  margin: 20px 0 0;
  font-size: clamp(2.35rem, 4.4vw, 3.85rem);
  line-height: 1.24;
  letter-spacing: -0.03em;
}
.hero__accent {
  color: var(--terra-deep);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: rgba(174, 82, 56, 0.32);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}
.hero__desc {
  margin-top: 24px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.85;
}
.hero__desc strong { color: var(--ink); font-weight: 600; }
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.hero__chip:hover {
  border-color: var(--terra);
  color: var(--terra-deep);
  background: #fff;
}
.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-faint);
}
.hero__note .icon { color: var(--sage); }

.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; overflow: visible; }
.art-line { fill: none; stroke: var(--line-strong); stroke-width: 1.4; }
.art-fill { fill: none; stroke: var(--ink-faint); stroke-width: 1.1; }
.art-accent { fill: none; stroke: var(--terra); stroke-width: 1.6; stroke-linecap: round; }
.art-dot { fill: var(--sage); }

/* featured --------------------------------------------------------------- */
.featured-wrap {
  padding: 56px 0 8px;
}
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf9, #faf5ec);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.featured:hover {
  border-color: var(--terra);
  color: var(--ink);
  transform: translateY(-1px);
}
.featured__main { padding: 34px 36px 32px; }
.featured__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--terra-deep);
  text-transform: uppercase;
}
.featured__main .badge { margin-top: 16px; }
.featured__title {
  margin-top: 14px;
  font-size: clamp(1.42rem, 2.3vw, 1.95rem);
  line-height: 1.42;
}
.featured__desc {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.8;
}
.featured__meta {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.featured__side {
  border-left: 1px solid var(--line);
  background: var(--paper-2);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.featured__arrow {
  align-self: flex-end;
  color: var(--terra);
  display: inline-flex;
}
.featured__points {
  list-style: none;
  display: grid;
  gap: 14px;
}
.featured__points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.featured__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--terra);
}

/* category tiles --------------------------------------------------------- */
.tiles-wrap { padding: 34px 0 10px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px 26px;
  border-left: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.16s ease;
}
.tile:first-child { border-left: 0; }
.tile:hover { background: var(--paper-2); color: var(--ink); }
.tile__icon { color: var(--terra); margin-bottom: 6px; }
.tile__name { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.tile__summary { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.tile__count { margin-top: 4px; font-size: 12px; color: var(--ink-faint); }

/* section ---------------------------------------------------------------- */
.section-title {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  letter-spacing: -0.02em;
}
.section-sub {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.latest { padding: 66px 0 12px; }
.latest__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter:hover { color: var(--terra-deep); }
.filter.is-active {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

/* cards ------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.card-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.card {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.card__link { display: block; color: var(--ink); }
.card__link:hover { color: var(--ink); }
.card__title {
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.48;
  transition: color 0.15s ease;
}
.card__link:hover .card__title { color: var(--terra-deep); }
.card__excerpt {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.card__meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.card__dot { color: var(--line-strong); }

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 3px;
  background: var(--paper-3);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.badge--cost-estimate { background: var(--terra-soft); color: var(--terra-deep); }
.badge--materials-work { background: var(--sage-soft); color: #45573f; }
.badge--jeonse-diy { background: var(--gold-soft); color: #7a5a22; }
.badge--storage-appliances { background: var(--blue-soft); color: var(--blue); }

.tag {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}

/* principles ------------------------------------------------------------- */
.principles {
  margin-top: 72px;
  padding: 60px 0 74px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.principles__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 30px;
}
.principles__list li { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.principles__num {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--terra);
}
.principles__list strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
}
.principles__list p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-soft);
}
.principles__more { margin-top: 32px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--terra-deep);
  border-bottom: 1px solid rgba(174, 82, 56, 0.3);
  padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--terra); }

/* post ------------------------------------------------------------------- */
.post { padding: 30px 0 90px; }
.post__wrapper { max-width: 1040px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--terra-deep); }
.breadcrumb__sep { color: var(--line-strong); }
.breadcrumb__current { color: var(--ink-faint); }

.post-header { max-width: 780px; }
.post-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-title {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.post-lede {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}
.post-meta__item { display: inline-flex; align-items: center; gap: 6px; }

/* key points */
.keypoints {
  max-width: 780px;
  margin-top: 28px;
  padding: 22px 26px 24px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.keypoints__title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--terra-deep);
  text-transform: uppercase;
}
.keypoints__list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 8px;
  counter-reset: kp;
}
.keypoints__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-2);
  counter-increment: kp;
}
.keypoints__list li::before {
  content: counter(kp);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--terra);
}

/* info callout */
.callout {
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 3px solid var(--sage);
  background: var(--sage-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 780px;
}
.callout--info { border-left-color: var(--sage); background: var(--sage-soft); }
.callout--warn { border-left-color: var(--gold); background: var(--gold-soft); }
.callout--check { border-left-color: var(--terra); background: var(--terra-soft); }
.callout__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.callout__body {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}
.callout__body strong { color: var(--ink); }
.callout a { border-bottom: 1px solid rgba(174, 82, 56, 0.35); }

/* layout with TOC */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 56px;
  margin-top: 38px;
  align-items: start;
}
.post-main { min-width: 0; }
.post-side { position: sticky; top: 104px; }

.toc {
  border-top: 1px solid var(--ink);
  padding-top: 14px;
}
.toc__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.toc__caret {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-faint);
  border-bottom: 1.5px solid var(--ink-faint);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.toc.is-collapsed .toc__caret { transform: rotate(-135deg) translateY(-1px); }
.toc.is-collapsed .toc__list { display: none; }
.toc__list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}
.toc__list a {
  display: block;
  padding: 5px 0 5px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.toc__list a:hover { color: var(--terra-deep); }
.toc__list a.is-active {
  border-left-color: var(--terra);
  color: var(--terra-deep);
  font-weight: 600;
}
.toc__list li.toc--h3 a { padding-left: 24px; font-size: 12.5px; color: var(--ink-faint); }

/* prose ------------------------------------------------------------------ */
.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.9; }
.prose > *:first-child { margin-top: 0; }

.prose p { margin: 1.15em 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: normal; background: linear-gradient(transparent 62%, rgba(169, 128, 63, 0.24) 62%); }

.prose h2 {
  position: relative;
  margin: 2.6em 0 0.9em;
  padding-top: 0.85em;
  font-size: clamp(1.34rem, 2.1vw, 1.6rem);
  line-height: 1.45;
  border-top: 1px solid var(--line-strong);
}
.prose h3 {
  margin: 2em 0 0.6em;
  font-size: 1.16rem;
  line-height: 1.5;
}
.prose h4 {
  margin: 1.6em 0 0.5em;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
}
.prose h2 + p, .prose h3 + p, .prose h4 + p { margin-top: 0.4em; }

.prose ul, .prose ol { margin: 1.1em 0; padding-left: 1.35em; }
.prose li { margin: 0.42em 0; padding-left: 0.15em; }
.prose ul > li::marker { color: var(--terra); }
.prose ol > li::marker { color: var(--terra); font-weight: 600; font-family: var(--serif); }
.prose li > ul, .prose li > ol { margin: 0.4em 0; }

.prose a {
  color: var(--terra-deep);
  border-bottom: 1px solid rgba(174, 82, 56, 0.32);
}
.prose a:hover { border-bottom-color: var(--terra); }

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 15.5px;
}
.prose blockquote p { margin: 0.5em 0; }

.prose hr {
  margin: 2.6em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* tables */
.prose table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.65;
  border-top: 2px solid var(--ink);
  font-variant-numeric: tabular-nums;
}
.prose thead th {
  background: var(--paper-2);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.prose tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose tbody tr:last-child td { border-bottom: 1px solid var(--line-strong); }
.prose tbody tr:hover { background: rgba(244, 237, 226, 0.55); }
.prose th[align="right"], .prose td[align="right"] { text-align: right; }

/* checklist */
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose ul.checklist > li {
  position: relative;
  padding-left: 30px;
  margin: 0.5em 0;
}
.prose ul.checklist > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
}

/* source list */
.prose .sources {
  margin-top: 1.2em;
  padding-top: 0.4em;
  list-style: none;
  padding-left: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.prose .sources li {
  position: relative;
  padding-left: 14px;
  margin: 0.5em 0;
}
.prose .sources li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 1px;
  background: var(--ink-faint);
}
.prose .sources a { border-bottom-color: rgba(107, 97, 85, 0.3); }

/* faq */
.faq {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}
.faq__heading { font-size: 1.3rem; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 16px 34px 16px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 19px;
  font-weight: 400;
  color: var(--terra);
  line-height: 1;
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 34px 16px 0; }
.faq__a p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); }

/* author box */
.author-box {
  margin-top: 44px;
  padding: 22px 24px;
  background: var(--paper-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.author-box__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.author-box__name {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}
.author-box__desc {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.author-box__desc a { border-bottom: 1px solid rgba(174, 82, 56, 0.3); }

/* post nav + related */
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease;
}
.post-nav__item:hover { border-color: var(--terra); color: var(--ink); }
.post-nav__item--next { text-align: right; }
.post-nav__label { font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-faint); }
.post-nav__item strong { font-family: var(--serif); font-size: 15px; line-height: 1.5; font-weight: 700; }

.related {
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}
.related__title { font-size: 1.24rem; margin-bottom: 22px; }

/* archive / category ----------------------------------------------------- */
.archive { padding: 62px 0 84px; }
.archive__head {
  max-width: 720px;
  padding-bottom: 30px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.archive__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--terra-deep);
  text-transform: uppercase;
}
.archive__title { margin-top: 12px; font-size: clamp(2rem, 3.4vw, 2.6rem); }
.archive__desc { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.8; }
.archive__count { margin-top: 14px; font-size: 13px; color: var(--ink-faint); }

.archive__nav { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line); }
.archive__nav-title { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-faint); text-transform: uppercase; }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.chip:hover { border-color: var(--terra); color: var(--terra-deep); }
.chip__count { font-size: 11.5px; color: var(--ink-faint); }

.empty {
  padding: 40px 0;
  color: var(--ink-faint);
  font-size: 15px;
}

/* page ------------------------------------------------------------------- */
.page { padding: 56px 0 84px; }
.page__head {
  padding-bottom: 28px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.page__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--terra-deep);
  text-transform: uppercase;
}
.page__title { margin-top: 12px; font-size: clamp(1.95rem, 3.4vw, 2.6rem); }
.page__desc { margin-top: 14px; color: var(--ink-soft); font-size: 16px; line-height: 1.85; max-width: 44em; }
.page__meta { margin-top: 12px; font-size: 12.5px; color: var(--ink-faint); }
.page .prose { max-width: 46em; }

/* footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #D8CFC0;
  padding: 56px 0 26px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(216, 207, 192, 0.18);
}
.site-footer__title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: #FBF7F0;
}
.site-footer__desc {
  margin-top: 12px;
  max-width: 36em;
  font-size: 13.5px;
  line-height: 1.8;
  color: #B4A895;
}
.site-footer__head {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9C8F7C;
  text-transform: uppercase;
}
.site-footer__col { display: flex; flex-direction: column; gap: 9px; }
.site-footer__col a {
  color: #D8CFC0;
  font-size: 13.5px;
  width: fit-content;
}
.site-footer__col a:hover { color: #fff; }
.site-footer__col .site-footer__head { margin-bottom: 3px; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 12px;
  color: #9C8F7C;
}
.site-footer__legal { max-width: 46em; }

/* to top ----------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(251, 247, 240, 0.95);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(36, 32, 27, 0.08);
}
.to-top:hover { color: var(--terra); border-color: var(--terra); }

/* ad --------------------------------------------------------------------- */
.ad-slot {
  position: relative;
  margin: 28px 0;
  padding: 12px;
  min-height: 110px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
}
.ad-slot__label {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.wrapper > .ad-slot, section .ad-slot { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

/* 404 -------------------------------------------------------------------- */
.notfound { padding: 100px 0 120px; text-align: center; }
.notfound__code {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9vw, 6rem);
  line-height: 1;
  color: var(--line-strong);
}
.notfound__title { margin-top: 14px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.notfound__desc { margin: 14px auto 0; max-width: 34em; color: var(--ink-soft); font-size: 15px; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13.5px;
  background: #fff;
}
.btn:hover { border-color: var(--terra); color: var(--terra-deep); }
.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--terra-deep); border-color: var(--terra-deep); color: #fff; }

/* responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__inner { gap: 32px; padding-top: 64px; padding-bottom: 60px; }
  .post-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 36px; }
}

@media (max-width: 920px) {
  .wrapper { padding: 0 24px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 14px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; margin: 8px auto 0; order: -1; width: 100%; }
  .hero__title { font-size: clamp(2.15rem, 7vw, 3rem); }
  .featured { grid-template-columns: 1fr; }
  .featured__side { border-left: 0; border-top: 1px solid var(--line); }
  .featured__arrow { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(3) { border-left: 0; }
  .tile:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .card-grid, .card-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles__list { grid-template-columns: 1fr; gap: 18px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-side { display: none; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 76px; }
  .site-header__inner { min-height: 64px; }

  /* mobile menu: centred items on an opaque panel */
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    bottom: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 24px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-nav a {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    padding: 12px 8px;
    width: 100%;
    text-align: center;
  }
  .site-nav a.is-active { color: var(--terra-deep); }
  .site-nav a.is-active::after { left: 40%; right: 40%; bottom: 6px; }

  .hero__inner { padding-top: 40px; padding-bottom: 48px; }
  .hero__art { display: none; }
  .hero__desc { font-size: 15.5px; }
  .hero__chips { gap: 6px; }
  .hero__chip { font-size: 13px; padding: 7px 12px; }

  .featured-wrap { padding-top: 36px; }
  .featured__main { padding: 24px 22px; }
  .featured__side { padding: 22px; }
  .latest { padding-top: 46px; }
  .latest__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .card-grid, .card-grid--compact { grid-template-columns: 1fr; gap: 22px; }
  .principles { margin-top: 52px; padding: 44px 0 54px; }

  .post { padding: 20px 0 64px; }
  .post-title { font-size: clamp(1.6rem, 6.4vw, 2.1rem); }
  .post-lede { font-size: 15.5px; }
  .keypoints { padding: 18px 18px 20px; }
  .prose { font-size: 16px; }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .prose table th, .prose table td { white-space: normal; min-width: 92px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; }

  .archive { padding: 40px 0 64px; }
  .page { padding: 36px 0 64px; }
  .site-footer { padding: 44px 0 22px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 30px; }
  .site-footer__bottom { flex-direction: column; gap: 10px; padding-top: 24px; }
  .to-top { right: 16px; bottom: 16px; width: 38px; height: 38px; }
}

/* mobile: 표를 라벨 붙은 카드로 (data-label 은 main.js 가 채움) */
@media (max-width: 680px) {
  .prose table {
    display: block;
    overflow: visible;
    border-top: 1px solid var(--line-strong);
    font-size: 14px;
  }
  .prose thead { display: none; }
  .prose tbody { display: block; }
  .prose tbody tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .prose tbody tr:hover { background: transparent; }
  .prose tbody td {
    display: block;
    padding: 2px 0;
    border: 0;
  }
  .prose tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 1px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
  }
  .prose tbody td:first-child {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
  }
  .prose tbody td:first-child::before { display: none; }
}

@media (max-width: 360px) {
  .wrapper { padding: 0 18px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { border-left: 0; }
  .tile + .tile { border-top: 1px solid var(--line); }
  .brand__text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
