:root {
  --font-ui: "Post Sans", "Noto Sans KR", "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
  --font-reading: var(--font-ui);
  --type-meta: 0.8125rem;
  --type-body: 1rem;
  --type-reading: 1.0625rem;
  --type-lead: clamp(1.05rem, 1rem + 0.2vw, 1.2rem);
  --type-section: clamp(1.35rem, 1.1rem + 1.1vw, 1.8rem);
  --type-display: clamp(2.5rem, 4.4vw, 3.8rem);
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-ui);
}

body {
  font-size: var(--type-body);
  line-height: 1.7;
}

.wrap {
  width: min(1184px, calc(100% - 40px));
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.home-hero .home-title {
  max-width: 18ch;
  font-family: var(--font-ui);
  font-size: var(--type-display);
  line-height: 1.12;
  letter-spacing: -0.035em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.home-hero-description {
  max-width: 43ch;
  font-family: var(--font-ui);
  font-size: var(--type-lead);
  line-height: 1.65;
}

.home-hero .hero-label,
.home-start-kicker,
.home-start-card-description,
.home-question-sort,
.home-question-meta,
.home-question-helpful,
.meta,
.news-meta,
.home-news-card:not(.is-featured) .news-meta,
.news-search-note,
.news-followup p,
.tag,
.footer,
.bottom a {
  font-size: var(--type-meta);
  line-height: 1.5;
}

.home-start-heading h2,
.home-news .home-section-head h2,
.home-questions-head h2,
.news-heading h1 {
  font-family: var(--font-ui);
  font-size: var(--type-section);
  line-height: 1.3;
}

.article .post-heading,
.news-detail h1 {
  font-family: var(--font-ui);
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.28;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.article .body,
.news-body {
  max-width: 70ch;
  font-family: var(--font-reading);
  font-size: var(--type-reading);
  line-height: 1.9;
  letter-spacing: 0;
}

.article .body p,
.news-body p {
  max-width: 70ch;
  text-wrap: pretty;
}

.news-item h3 {
  font-family: var(--font-ui);
  line-height: 1.4;
  text-wrap: pretty;
}

.auth-card > p,
.editor > p,
.news-heading > p {
  max-width: 62ch;
  text-wrap: pretty;
}

.home-actions .home-secondary-action {
  border: 1px solid var(--color-border-control);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
}

.home-actions .home-secondary-action:hover {
  background: var(--color-bg-subtle);
}

.home-start {
  padding: clamp(0.75rem, 2vw, 1.5rem) 0;
  border: 0;
  background: transparent;
}

.home-start-card {
  border: 0;
  border-radius: 12px;
  background: var(--color-bg-surface);
}

.home-start-card:hover {
  background: var(--color-bg-subtle);
}

.home-question-feed,
.news-item,
.auth-card,
.editor {
  border-radius: 14px;
}

@media (max-width: 800px) {
  .home-hero .home-title {
    max-width: 18ch;
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    line-height: 1.18;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(1184px, calc(100% - 32px));
  }

  .home-hero .home-title {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }

  .home-actions {
    gap: 0.35rem;
  }

  .home-actions .btn {
    flex-basis: 10rem;
  }

  .news-body,
  .article .body {
    font-size: 1rem;
    line-height: 1.85;
  }
}
