@import url("../css/rescore-system.css?v=20260731z2");

:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.blog-page {
  margin: 0;
  background: var(--rs-canvas, #f5f5f7);
  color: var(--rs-ink, #1d1d1f);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

.blog-page a {
  color: inherit;
}

.blog-header {
  border-bottom: 1px solid var(--rs-border, rgba(60, 60, 67, 0.16));
  background: color-mix(in srgb, var(--rs-canvas, #f5f5f7) 88%, transparent);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.blog-header-inner,
.blog-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.blog-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rs-ink, #1d1d1f);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.blog-brand img {
  width: 30px;
  height: 30px;
}

.blog-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--rs-ink-muted, #54545a);
  font-size: 0.9rem;
}

.blog-nav a {
  text-decoration: none;
}

.blog-nav a:hover,
.blog-nav a:focus-visible {
  color: var(--rs-accent-strong, #3f58b8);
}

.blog-main {
  padding: 72px 0 96px;
}

.blog-hero {
  max-width: 790px;
  margin-bottom: 52px;
}

.blog-eyebrow {
  margin: 0 0 12px;
  color: var(--rs-accent, #4f69cc);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.blog-hero h1,
.article-header h1 {
  max-width: 880px;
  margin: 0;
  color: var(--rs-ink, #1d1d1f);
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.blog-hero p:not(.blog-eyebrow) {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--rs-ink-muted, #54545a);
  font-size: 1.08rem;
}

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

.blog-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rs-border, rgba(60, 60, 67, 0.16));
  border-radius: var(--rs-radius-lg, 22px);
  background: var(--rs-surface, #fff);
  box-shadow: var(--rs-shadow-border, 0 1px 2px rgba(0, 0, 0, 0.03));
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--rs-shadow-float, 0 14px 34px rgba(30, 34, 50, 0.12));
}

.blog-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--rs-border, rgba(60, 60, 67, 0.16));
  background: var(--rs-paper, #fffdf7);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.blog-card .blog-chip {
  align-self: flex-start;
  margin-bottom: 14px;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--rs-accent-soft, rgba(85, 112, 217, 0.12));
  color: var(--rs-accent-strong, #3f58b8);
  font-size: 0.74rem;
  font-weight: 750;
}

.blog-card h2 {
  margin: 0;
  color: var(--rs-ink, #1d1d1f);
  font-size: 1.25rem;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.blog-card p {
  margin: 12px 0 20px;
  color: var(--rs-ink-muted, #54545a);
  font-size: 0.94rem;
}

.blog-card-meta {
  margin-top: auto;
  color: var(--rs-ink-subtle, #6e6e73);
  font-size: 0.8rem;
}

.blog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding: 26px 28px;
  border: 1px solid var(--rs-accent-border, rgba(85, 112, 217, 0.28));
  border-radius: var(--rs-radius-lg, 22px);
  background: var(--rs-accent-soft, rgba(85, 112, 217, 0.12));
}

.blog-cta p {
  margin: 0;
  color: var(--rs-ink-muted, #54545a);
}

.blog-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--rs-radius-sm, 12px);
  background: var(--rs-action, #546fd7);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.blog-button:hover,
.blog-button:focus-visible {
  background: var(--rs-accent-strong, #3f58b8);
}

.article-main {
  padding: 64px 0 96px;
}

.article-shell {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
}

.article-header {
  margin-bottom: 36px;
}

.article-header h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
}

.article-lead {
  margin: 22px 0 0;
  color: var(--rs-ink-muted, #54545a);
  font-size: 1.12rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  color: var(--rs-ink-subtle, #6e6e73);
  font-size: 0.84rem;
}

.article-figure {
  margin: 0 0 42px;
}

.article-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  border: 1px solid var(--rs-border, rgba(60, 60, 67, 0.16));
  border-radius: var(--rs-radius-lg, 22px);
  object-fit: cover;
  background: var(--rs-paper, #fffdf7);
}

.article-figure figcaption {
  margin-top: 9px;
  color: var(--rs-ink-subtle, #6e6e73);
  font-size: 0.78rem;
}

.article-content {
  padding: 34px 0 4px;
  border-top: 1px solid var(--rs-border, rgba(60, 60, 67, 0.16));
}

.article-content h2 {
  margin: 42px 0 12px;
  color: var(--rs-ink, #1d1d1f);
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 28px 0 8px;
  color: var(--rs-ink, #1d1d1f);
  font-size: 1.1rem;
}

.article-content p,
.article-content li {
  color: var(--rs-ink-muted, #54545a);
  font-size: 1rem;
}

.article-content p {
  margin: 0 0 16px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 1.35rem;
}

.article-content li + li {
  margin-top: 8px;
}

.article-content strong {
  color: var(--rs-ink, #1d1d1f);
}

.article-note {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--rs-signal, #d95732);
  border-radius: 0 var(--rs-radius-sm, 12px) var(--rs-radius-sm, 12px) 0;
  background: var(--rs-signal-soft, rgba(217, 87, 50, 0.14));
}

.article-note p {
  margin: 0;
}

.article-links {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
}

.article-links a {
  color: var(--rs-accent-strong, #3f58b8);
  font-weight: 700;
  text-decoration: none;
}

.article-links a:hover,
.article-links a:focus-visible {
  text-decoration: underline;
}

.article-footer-cta {
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--rs-radius-lg, 22px);
  background: var(--rs-dark, #1c1c1e);
  color: var(--rs-dark-text, #f5f5f7);
}

.article-footer-cta p {
  margin: 0 0 14px;
  color: var(--rs-dark-text-muted, #d1d1d6);
}

.article-footer-cta a {
  color: #fff;
  font-weight: 750;
}

.blog-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--rs-border, rgba(60, 60, 67, 0.16));
  color: var(--rs-ink-subtle, #6e6e73);
  font-size: 0.82rem;
}

.blog-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blog-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .blog-header-inner,
  .blog-shell {
    width: min(100% - 28px, 620px);
  }

  .blog-header-inner {
    min-height: 64px;
  }

  .blog-nav {
    gap: 10px;
    font-size: 0.78rem;
  }

  .blog-nav a:nth-child(n + 3) {
    display: none;
  }

  .blog-main,
  .article-main {
    padding-top: 48px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-cta,
  .blog-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-shell {
    width: min(100% - 28px, 620px);
  }
}

@media (prefers-color-scheme: dark) {
  body.blog-page {
    background: var(--rs-dark, #1c1c1e);
    color: var(--rs-dark-text, #f5f5f7);
  }

  .blog-header {
    background: color-mix(in srgb, var(--rs-dark, #1c1c1e) 88%, transparent);
  }

  .blog-brand,
  .blog-hero h1,
  .article-header h1,
  .blog-card h2,
  .article-content h2,
  .article-content h3,
  .article-content strong {
    color: var(--rs-dark-text, #f5f5f7);
  }

  .blog-card {
    border-color: rgba(245, 245, 247, 0.14);
    background: var(--rs-dark-surface, #242426);
  }

  .blog-card-image {
    border-color: rgba(245, 245, 247, 0.14);
  }

  .blog-hero p:not(.blog-eyebrow),
  .blog-card p,
  .blog-cta p,
  .article-lead,
  .article-content p,
  .article-content li,
  .blog-footer {
    color: var(--rs-dark-text-muted, #d1d1d6);
  }

  .article-content,
  .blog-footer {
    border-color: rgba(245, 245, 247, 0.14);
  }
}
