@font-face {
  font-family: DomianPublic;
  src: url("../fonts/DomianPublicSans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #2b2a27;
  --muted: #625f59;
  --line: #e9e7e2;
  --blue: #1f6feb;
  --tab: #fbf6e3;
  --hair: #f8f1d9;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.55 DomianPublic, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  background: var(--hair);
  z-index: 10;
  pointer-events: none;
}

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

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 12;
}

.skip:focus {
  transform: none;
}

.top {
  min-height: 72px;
  padding: 10px clamp(20px, 3.6vw, 56px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.tabs {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.tabs a {
  margin-bottom: -1px;
  min-height: 44px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px 4px 0 0;
  background: var(--tab);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.tabs a.on {
  background: #fff;
  border-bottom-color: #fff;
}

.wrap {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.page-head {
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.page-head .lede {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.back {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.back:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

section {
  margin-bottom: 2.75rem;
}

section h2 {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed > li {
  border-top: 1px solid var(--line);
}

.feed > li:last-child {
  border-bottom: 1px solid var(--line);
}

.item {
  padding: 1.05rem 0 1.1rem;
}

.item h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.item h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.summary {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: keep-all;
}

.meta {
  margin: 0.45rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.article h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.35;
  word-break: keep-all;
}

.article .meta {
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.article .body p {
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
  line-height: 1.7;
  word-break: keep-all;
}

.article .source-link {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.article .source-link a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article .source-link a:hover {
  color: var(--muted);
}

.site-foot {
  margin-top: 1rem;
  padding: 1.5rem clamp(20px, 3.6vw, 56px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 700px) {
  .top {
    min-height: 64px;
    padding: 8px 16px 0;
  }

  .brand {
    font-size: 16px;
  }

  .tabs a {
    padding: 10px 10px;
    font-size: 13px;
    min-height: 40px;
  }

  .wrap {
    width: calc(100% - 2rem);
    padding-top: 1.75rem;
  }

  .item h3 {
    font-size: 1.02rem;
  }
}

/* 원문 발췌 */
.article .excerpt {
  margin: 1.25rem 0 0.6rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.article .body .excerpt p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.article .body .excerpt p:last-child {
  margin-bottom: 0;
}

.article .body .credit {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.article .more-wrap {
  margin: 1.5rem 0 0;
}

.article .more-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--tab);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.article .more-btn:hover {
  border-color: #d9d5cc;
  background: #f6efd6;
}

/* 출처 표시 (언론사·채널 CI) */
.meta .source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.src-logo,
.src-badge {
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 4px;
}

.src-logo {
  display: block;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.src-badge {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tab);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
}

.meta .case {
  font-variant-numeric: tabular-nums;
}

/* 유튜브 썸네일 */
.item.has-thumb {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.item .thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--tab);
  box-shadow: 0 0 0 1px var(--line);
}

.item .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 560px) {
  .item.has-thumb {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .item .thumb {
    max-width: 320px;
  }
}

/* 영상 */
.article .video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.5rem;
  border-radius: 6px;
  overflow: hidden;
  background: #f4f2ed;
}

.article .video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 판례 표시 */
.article .kicker {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.article .body .credit a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
