
[hidden] {
  display: none !important;
}

:root {
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #242321;
  --muted: #77736c;
  --line: #dedbd4;
  --soft-line: #ebe8e1;
  --accent: #3f5143;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 300;
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, .92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color .25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--soft-line);
}

.header-inner {
  max-width: var(--max-width);
  height: 82px;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Noto Serif KR", serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.03em;
  text-decoration: none;
}

.navigation {
  display: flex;
  gap: 28px;
}

.navigation a {
  position: relative;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right .25s ease;
}

.navigation a:hover {
  color: var(--ink);
}

.navigation a:hover::after {
  right: 0;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 126px 36px 116px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 80px;
  align-items: end;
}

.eyebrow {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(42px, 6.2vw, 78px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.055em;
}

.hero-description {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: "Noto Serif KR", serif;
  font-size: 16px;
  line-height: 2;
}

.archive {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 36px 130px;
}

.toolbar {
  padding: 25px 0;
  align-items: center;
  justify-content: space-between;
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.filter-button {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: none;
  cursor: pointer;
  font-size: 13px;
}

.filters {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.filter-button.active {
  color: var(--ink);
  font-weight: 500;
}

.post-card {
  padding: 44px 0;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 180px;
  gap: 36px;
  border-bottom: 1px solid var(--soft-line);
  text-decoration: none;
}

.post-type {
  padding-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.post-card h2 {
  margin: 0 0 14px;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(23px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.04em;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.post-date {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.arrow {
  font-size: 19px;
  transition: transform .2s ease;
}

.post-card:hover h2 {
  color: var(--accent);
}

.post-card:hover .arrow {
  transform: translate(4px, -4px);
}

.search-wrap {
  position: relative;
  width: min(280px, 42vw);
}

.search-wrap input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 26px 8px 0;
  color: var(--ink);
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 13px;
}

.search-wrap input:focus {
  border-bottom-color: var(--ink);
}

.search-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}

.detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 85px 36px 140px;
}

.back-link {
  display: inline-block;
  margin-bottom: 70px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-decoration: none;
}

.detail-kicker {
  margin-bottom: 25px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.detail h1 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.055em;
}

.subtitle {
  margin: 23px 0 0;
  color: var(--muted);
  font-family: "Noto Serif KR", serif;
  font-size: 18px;
  line-height: 1.8;
}

.meta {
  margin-top: 45px;
  padding: 18px 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.cover-image {
  width: 100%;
  max-height: 560px;
  margin-top: 60px;
  object-fit: cover;
}

.introduction {
  max-width: 680px;
  margin: 76px auto 0;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.introduction p {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  color: #4f4c47;
  font-size: 18px;
  line-height: 2;
}

.original-link {
  display: inline-block;
  margin-top: 34px;
  padding-bottom: 4px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.tags {
  max-width: 680px;
  margin: 55px auto 0;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
}

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

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 35px 36px 48px;
  display: flex;
  justify-content: space-between;
  color: #99958d;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

@media (max-width: 700px) {
  .header-inner {
    height: 68px;
    padding: 0 20px;
  }

  .navigation {
    gap: 14px;
  }

  .hero {
    padding: 78px 20px 82px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .archive {
    padding: 0 20px 90px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .search-wrap {
    width: 100%;
  }

  .post-card {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 34px 0;
  }

  .post-date {
    justify-content: flex-start;
  }

  .post-date .arrow {
    margin-left: auto;
  }

  .detail {
    padding: 55px 20px 100px;
  }

  .back-link {
    margin-bottom: 50px;
  }

  .detail h1 {
    font-size: 39px;
  }

  .site-footer {
    padding: 25px 20px 35px;
    flex-direction: column;
    gap: 6px;
  }
}
