:root {
  --bg: #f3ede4;
  --surface: #fffaf2;
  --surface-2: #efe6d8;
  --ink: #151515;
  --ink-soft: rgba(21, 21, 21, 0.72);
  --line: rgba(21, 21, 21, 0.12);
  --coral: #f0642d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(240, 100, 45, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(38, 112, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #f6f1e8 0%, #efe6d8 100%);
  color: var(--ink);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.article-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(246, 241, 232, 0.88);
  backdrop-filter: blur(16px);
}

.article-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.article-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.article-header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.article-header .back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(21, 21, 21, 0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, background 0.2s ease;
}

.article-header .back:hover {
  color: var(--ink);
  background: rgba(21, 21, 21, 0.05);
}

.article-hero,
.article-body,
.article-cta,
.article-footer {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.article-hero {
  padding-top: 72px;
  padding-bottom: 40px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.article-tag {
  font-weight: 700;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.article-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.article-hero .excerpt {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.article-body {
  padding-bottom: 64px;
}

.article-body h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.34rem;
  font-weight: 700;
  margin: 42px 0 14px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  margin: 28px 0 10px;
}

.article-body p,
.article-body li {
  color: var(--ink-soft);
  font-size: 16px;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px 20px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body strong {
  color: var(--ink);
}

.article-body a,
.article-cta a,
.article-footer a {
  color: var(--coral);
  text-decoration: none;
}

.article-body a:hover,
.article-cta a:hover,
.article-footer a:hover {
  text-decoration: underline;
}

.article-note,
.article-flowchart {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 24px 0;
}

.article-flowchart strong {
  color: var(--coral);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.article-table th,
.article-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.article-table th {
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}

.article-table td {
  color: var(--ink-soft);
}

.article-cta {
  padding-top: 6px;
  padding-bottom: 72px;
  text-align: center;
}

.article-cta p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.article-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--coral);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.article-cta .btn:hover {
  opacity: 0.92;
  text-decoration: none;
}

.article-footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 780px) {
  .article-header-inner {
    flex-wrap: wrap;
  }

  .article-header-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .article-hero {
    padding-top: 48px;
  }
}
