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

.site-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.site-nav a {
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid var(--line);
}

.page {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 80px;
}

.page-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.page h1 {
  margin: 0;
  font-family: Fraunces, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-lead {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.board-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.board-filters select,
.board-filters input,
.detail-sheet input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffdf9;
  outline: none;
}

.board-filters input {
  min-width: min(280px, 100%);
}

.board-meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 0 16px;
  color: inherit;
  background: var(--surface);
  text-decoration: none;
}

.listing-photo {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: #e7e1d6;
}

.listing-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px 0;
}

.listing-card:hover {
  border-color: var(--line-strong);
}

.listing-kicker,
.article-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.listing-card h2,
.article-card h2,
.detail-sheet h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.listing-card h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.listing-price {
  margin-top: auto;
  font-family: Fraunces, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.listing-foot {
  color: var(--muted);
  font-size: 0.82rem;
}

.board-sentinel {
  height: 1px;
}

.board-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.news-list {
  display: grid;
  gap: 8px;
}

.article-lead,
.article-card {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.article-lead {
  gap: 12px;
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--ink);
}

.article-lead h2 {
  max-width: 18em;
  font-family: Fraunces, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.article-lead .article-deck {
  max-width: 68ch;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.6;
}

.paper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.article-card {
  padding: 18px 22px 18px 0;
  border-bottom: 1px solid var(--line);
}

.paper-grid .article-card:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.paper-grid .article-card:nth-child(even) {
  padding-left: 28px;
}

.article-card h2 {
  font-family: Fraunces, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.article-deck {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.article-card .article-deck {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.article-more {
  color: var(--teal, #2f5d4e);
  font-size: 0.82rem;
}

.article-lead:hover h2,
.article-card:hover h2 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-sheet {
  width: min(820px, calc(100% - 48px));
}

.detail-hero {
  margin: 0 0 18px;
}

.detail-hero img {
  width: 100%;
  height: min(420px, 52vw);
  object-fit: cover;
  border-radius: 20px;
  background: #e7e1d6;
}

.detail-hero figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.demo-login {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 10px 12px;
  color: inherit;
  background: #f7f3ec;
  text-align: left;
}

.demo-login span,
.demo-login small {
  color: var(--muted);
  font-size: 0.78rem;
}

.demo-login strong {
  font-weight: 500;
}

.detail-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
}

.detail-price {
  margin: 14px 0 0;
  font-family: Fraunces, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.fact-grid div,
.detail-note {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fffdf9;
}

.fact-grid span,
.detail-note span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.fact-grid strong,
.detail-note strong {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.4;
}

.detail-note {
  margin-top: 12px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.gate {
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 460px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: var(--surface);
}

.gate img {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  object-fit: cover;
  object-position: center 28%;
}

.gate p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.empty-note {
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  padding: 18px;
  color: var(--muted);
  background: #fffdf9;
}

@media (max-width: 980px) {
  .listing-grid,
  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .page,
  .detail-sheet {
    width: min(100% - 20px, 720px);
    margin-top: 16px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .listing-grid,
  .fact-grid,
  .paper-grid {
    grid-template-columns: 1fr;
  }

  .paper-grid .article-card,
  .paper-grid .article-card:nth-child(odd),
  .paper-grid .article-card:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }
}
