/*
Theme Name: HelloArt Blog
Theme URI: https://helloart.kr/blog/
Author: Cursor
Description: HelloArt blog theme for education, stories, and content marketing.
Version: 1.0.1
Text Domain: helloart-blog
*/

:root {
  --ha-coral: #e05a3c;
  --ha-coral-dark: #c4472c;
  --ha-ink: #1c2430;
  --ha-slate: #4a5563;
  --ha-mist: #eef2f5;
  --ha-line: #e2e6ec;
  --ha-paper: #fafbfc;
  --ha-deep: #15202b;
  --ha-mint: #3ba99c;
  --ha-white: #ffffff;
  --ha-font-body: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --ha-font-display: "Syne", "Noto Sans KR", sans-serif;
  --ha-wrap: 1120px;
  --ha-shadow: 0 18px 48px rgba(21, 32, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ha-ink);
  background: var(--ha-paper);
  font-family: var(--ha-font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ha-wrap {
  width: min(var(--ha-wrap), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 230, 236, 0.9);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

.site-brand__title {
  font-family: var(--ha-font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.site-brand__subtitle {
  margin-top: 3px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ha-coral);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ha-slate);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-parent > a {
  color: var(--ha-coral);
}

.site-nav .site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ha-ink);
  color: var(--ha-white);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav .site-header__cta:hover,
.site-nav .site-header__cta:focus {
  background: var(--ha-coral);
  color: var(--ha-white);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ha-white);
  background:
    linear-gradient(135deg, rgba(21, 32, 43, 0.82), rgba(21, 32, 43, 0.52)),
    url("https://images.unsplash.com/photo-1513364776144-60967b0f800f?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.hero__inner {
  padding: 96px 0 88px;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
}

.eyebrow,
.section-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: #ffb59e;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--ha-font-display);
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 38rem;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
}

.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
}

.btn-primary {
  background: var(--ha-coral);
  color: var(--ha-white);
}

.btn-primary:hover {
  background: var(--ha-coral-dark);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--ha-white);
}

.hero-card,
.content-card,
.ad-card,
.category-card,
.post-card,
.story-card {
  border-radius: 24px;
  background: var(--ha-white);
  box-shadow: var(--ha-shadow);
}

.hero-card {
  padding: 28px;
  color: var(--ha-ink);
}

.hero-card h2,
.section-title,
.content-card h2,
.content-card h3 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.hero-card p,
.content-card p,
.story-card p {
  margin: 0;
  color: var(--ha-slate);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.stat {
  padding: 14px;
  border-radius: 18px;
  background: var(--ha-mist);
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--ha-coral);
}

.section {
  padding: 84px 0;
}

.section--tight {
  padding-top: 48px;
}

.section-head {
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--ha-font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section-desc {
  max-width: 42rem;
  color: var(--ha-slate);
}

.grid-3,
.grid-2,
.post-grid {
  display: grid;
  gap: 24px;
}

.grid-3,
.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card,
.story-card,
.category-card,
.post-card {
  padding: 28px;
}

.category-card__label,
.post-card__meta,
.entry-meta {
  color: var(--ha-mint);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.post-card h3,
.story-card h3 {
  margin: 10px 0 10px;
  font-size: 1.25rem;
  line-height: 1.35;
}

.post-card p {
  color: var(--ha-slate);
}

.post-card__thumb {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--ha-mist);
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layout {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.ad-card {
  padding: 24px;
  border: 1px dashed rgba(59, 169, 156, 0.45);
}

.ad-card__label {
  color: var(--ha-coral);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ad-card__hint {
  margin-top: 8px;
  color: var(--ha-slate);
  font-size: 0.92rem;
}

.entry-header {
  margin-bottom: 28px;
}

.entry-title {
  margin: 10px 0 0;
  font-family: var(--ha-font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.entry-content > * + * {
  margin-top: 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.2rem;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--ha-coral);
  background: var(--ha-mist);
}

.site-footer {
  margin-top: 84px;
  background: var(--ha-deep);
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__inner {
  padding: 28px 0;
}

.site-footer a {
  color: #ffb59e;
}

.site-footer__small {
  font-size: 0.9rem;
}

.page-hero {
  padding: 68px 0 34px;
}

.page-hero p {
  max-width: 40rem;
  margin: 16px 0 0;
  color: var(--ha-slate);
}

.widget-area > * + * {
  margin-top: 20px;
}

.archive-empty {
  padding: 24px;
  border-radius: 20px;
  background: var(--ha-white);
  box-shadow: var(--ha-shadow);
}

@media (max-width: 980px) {
  .hero__inner,
  .layout,
  .grid-3,
  .grid-2,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

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

@media (max-width: 640px) {
  .hero__inner {
    padding: 72px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .content-card,
  .post-card,
  .story-card,
  .category-card,
  .ad-card,
  .hero-card {
    padding: 22px;
    border-radius: 20px;
  }
}
