:root {
  /* Clash Display and Inter have no Hangul, so Korean falls through to the Korean fonts. */
  --font-display: "Clash Display", "Inter", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-sans: "Inter", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --tint-word: rgba(171, 171, 255, 0.3);
  --tint-grammar: rgba(221, 163, 248, 0.3);
  --tint-lime: rgba(215, 245, 0, 0.32);
}

/* Top bar */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  margin-inline: auto;
  padding: 32px var(--gutter);
}

.bar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
}

.bar__brand img { width: 36px; height: 36px; border-radius: 10px; }

.bar__nav { display: flex; align-items: center; gap: 32px; }

.bar__link {
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-body);
}

.bar__link:hover { color: var(--color-ink); }
.bar__link.is-active { font-weight: 600; color: var(--color-ink); }

.bar__cta {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  transition: transform 150ms ease;
}

.bar__cta:hover { transform: translateY(-2px); }

/* Shared pieces */

.panel {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: var(--tint-word);
}

.panel--grammar { background: var(--tint-grammar); }
.panel--lime { background: var(--tint-lime); }

.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.panel span {
  font-family: var(--font-ko);
  font-weight: 800;
  font-size: 88px;
  line-height: 96px;
  color: var(--color-ink);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: var(--color-label);
}

.tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
}

/* Blog index */

.blog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-block: 72px 64px;
}

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: var(--color-label);
}

.eyebrow span {
  font-family: var(--font-ko);
  font-weight: 800;
  font-size: 22px;
  line-height: 28px;
  color: var(--color-accent);
}

.blog-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 88px;
  line-height: 88px;
  letter-spacing: -0.01em;
}

.blog-head__lede {
  max-width: 400px;
  font-size: 20px;
  line-height: 30px;
  color: var(--color-body);
}

.blog-empty {
  padding-bottom: 40px;
  font-size: 20px;
  line-height: 30px;
  color: var(--color-body);
}

.featured {
  display: flex;
  align-items: center;
  gap: 64px;
}

.featured__cover {
  flex-shrink: 0;
  width: min(720px, 56%);
  aspect-ratio: 3 / 2;
}

.featured__cover .panel { height: 100%; border-radius: 32px; }
.featured__cover .panel span { font-size: 120px; line-height: 132px; }
.featured__cover:hover img { scale: 1.03; }

.featured__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.featured h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 52px;
}

.featured h2 a:hover { color: var(--color-accent); }

.featured__copy > p:not(.meta) {
  font-size: 19px;
  line-height: 30px;
  color: var(--color-body);
}

.read-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-accent);
}

.read-link svg { transition: translate 150ms ease; }
.read-link:hover svg { translate: 4px 0; }

.more { padding-top: 120px; }

.more__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-track);
}

.more__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 38px;
}

.more__head p,
.more__head a {
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: var(--color-label);
}

.more__head a { font-weight: 600; color: var(--color-accent); }

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

.card__link { display: flex; flex-direction: column; }

.card .panel { height: 300px; margin-bottom: 20px; }

.card__meta {
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: var(--color-label);
}

.card__title {
  margin-bottom: 10px;
  padding-right: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  transition: color 150ms ease;
}

.card__text {
  padding-right: 16px;
  font-size: 17px;
  line-height: 26px;
  color: var(--color-body);
}

.card__link:hover .card__title { color: var(--color-accent); }
.card__link:hover img { scale: 1.03; }

/* App promo */

.promo { padding-block: 120px; }

.promo__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: 400px;
  padding: 56px 72px;
  border-radius: 40px;
  background: var(--color-lime);
}

.promo h2,
.promo p,
.promo .stores,
.promo__app { position: relative; z-index: 1; }

.promo h2 {
  max-width: 640px;
  font-size: 56px;
  line-height: 60px;
  color: #000;
}

.promo p {
  max-width: 680px;
  font-size: 19px;
  line-height: 30px;
  color: #1f2600;
}

.promo .stores {
  justify-content: flex-start;
  padding-top: 8px;
  animation: none;
}

.promo__app {
  display: none;
  align-self: flex-start;
  align-items: center;
  height: 52px;
  margin-top: 4px;
  padding: 0 22px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
}

.promo__mascot {
  position: absolute;
  top: 48px;
  right: 96px;
  width: 300px;
  height: 472px;
  object-fit: cover;
  pointer-events: none;
}

/* Article */

.post-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-block: 56px 64px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: var(--color-label);
}

.back-link:hover { color: var(--color-ink); }

.post-head .meta { justify-content: center; padding-top: 16px; }

.post-head h1 {
  max-width: 960px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 76px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.post-head__lede {
  max-width: 720px;
  font-size: 22px;
  line-height: 34px;
  color: var(--color-body);
  text-wrap: pretty;
}

.post-cover .panel {
  aspect-ratio: 32 / 15;
  border-radius: 40px;
}

.post-cover .panel span { font-size: 160px; line-height: 176px; }

.prose {
  max-width: calc(680px + 2 * var(--gutter));
  margin-inline: auto;
  padding: 80px var(--gutter) 0;
  font-size: 19px;
  line-height: 32px;
  color: var(--color-ink);
}

.prose > * + * { margin-top: 28px; }
.prose > :first-child { margin-top: 0; }

.prose h2 {
  margin-top: 48px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 42px;
}

.prose h3 {
  margin-top: 40px;
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
}

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(72, 73, 249, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.prose a:hover { text-decoration-color: currentColor; }

.prose strong { font-weight: 600; }

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 28px;
}

.prose ol { list-style: decimal; }
.prose ol > li::marker { font-weight: 600; color: var(--color-accent); }
.prose ul > li { position: relative; }

.prose ul > li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-accent);
}

.prose li > ul,
.prose li > ol { margin-top: 12px; }

.prose blockquote {
  margin-inline: 0;
  padding: 28px 32px;
  border-radius: 24px;
  background: var(--color-accent-tint);
  font-weight: 500;
  font-size: 20px;
  line-height: 32px;
}

.prose blockquote > * + * { margin-top: 16px; }
.prose blockquote strong { font-weight: 700; color: var(--color-accent); }

.prose p:has(> img) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}

.prose p:has(> img) + * { margin-top: 40px; }

.prose img {
  max-height: 640px;
  border-radius: 24px;
  background: var(--color-bg-alt);
}

.prose .caption {
  font-size: 15px;
  line-height: 22px;
  color: var(--color-label);
  text-align: center;
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--color-bg-alt);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.prose pre {
  overflow-x: auto;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--color-bg-alt);
  font-size: 15px;
  line-height: 24px;
}

.prose pre code { padding: 0; background: none; font-size: inherit; }

.prose hr {
  margin-block: 56px;
  border: 0;
  border-top: 1px solid var(--color-track);
}

.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 17px;
  line-height: 26px;
  -webkit-overflow-scrolling: touch;
}

.prose th,
.prose td {
  padding: 12px 24px 12px 0;
  border-bottom: 1px solid var(--color-track);
  text-align: left;
  vertical-align: top;
}

.prose th { font-weight: 600; }

.more--related { padding-top: 0; padding-bottom: 120px; }

/* Tablet */

@media (max-width: 1180px) {
  .blog-head h1 { font-size: 72px; line-height: 74px; }

  .featured { gap: 48px; }
  .featured h2 { font-size: 40px; line-height: 44px; }

  .promo h2 { max-width: 540px; font-size: 48px; line-height: 52px; }
  .promo p { max-width: 500px; }
  .promo__mascot { right: 40px; width: 260px; height: 409px; }

  .post-head h1 { font-size: 60px; line-height: 64px; }
}

@media (max-width: 900px) {
  .blog-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .blog-head h1 { font-size: 56px; line-height: 58px; }

  .featured { flex-direction: column; align-items: stretch; gap: 24px; }
  .featured__cover { width: 100%; }

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

  .promo__card { justify-content: flex-start; min-height: 0; padding: 48px 40px 220px; }
  .promo__mascot { top: auto; right: 0; bottom: -140px; width: 240px; height: 377px; }
}

/* Phone */

@media (max-width: 640px) {
  .bar { padding-block: 20px; }
  .bar__brand { gap: 8px; font-size: 22px; line-height: 28px; }
  .bar__brand img { width: 32px; height: 32px; border-radius: 9px; }
  .bar__link { display: none; }
  .bar__cta { height: 40px; padding: 0 16px; font-size: 14px; line-height: 18px; }

  .panel span { font-size: 64px; line-height: 72px; }

  .meta { gap: 10px; font-size: 14px; line-height: 20px; }
  .tag { padding: 4px 10px; font-size: 13px; }

  .blog-head { gap: 16px; padding-block: 32px 40px; }
  .eyebrow { gap: 10px; margin-bottom: 16px; font-size: 14px; line-height: 20px; }
  .eyebrow span { font-size: 19px; line-height: 24px; }
  .blog-head h1 { font-size: 44px; line-height: 46px; }
  .blog-head__lede { font-size: 17px; line-height: 26px; }
  .blog-empty { font-size: 17px; line-height: 26px; }

  .featured { gap: 20px; }
  .featured__cover { aspect-ratio: 350 / 240; }
  .featured__cover .panel { border-radius: 24px; }
  .featured__cover .panel span { font-size: 88px; line-height: 96px; }
  .featured__copy { gap: 12px; }
  .featured h2 { font-size: 30px; line-height: 34px; }
  .featured__copy > p:not(.meta) { font-size: 17px; line-height: 26px; }
  .read-link { display: none; }

  .more { padding-top: 72px; }
  .more__head { margin-bottom: 32px; padding-bottom: 16px; }
  .more__head h2 { font-size: 26px; line-height: 32px; }
  .more__head p, .more__head a { font-size: 14px; line-height: 20px; }

  .cards { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .card .panel { height: 220px; margin-bottom: 16px; border-radius: 24px; }
  .card__meta { margin-bottom: 8px; font-size: 14px; line-height: 20px; }
  .card__title { margin-bottom: 8px; padding-right: 0; font-size: 24px; line-height: 30px; }
  .card__text { padding-right: 0; font-size: 16px; line-height: 24px; }

  .promo { padding-block: 72px; }
  .promo__card { gap: 16px; padding: 36px 24px 180px; border-radius: 32px; }
  .promo h2 { font-size: 36px; line-height: 40px; }
  .promo p { font-size: 17px; line-height: 26px; }
  .promo .stores { display: none; }
  .promo__app { display: flex; }
  .promo__mascot { right: -10px; bottom: -120px; width: 200px; height: 315px; }

  .post-head { align-items: flex-start; gap: 16px; padding-block: 24px 32px; text-align: left; }
  .back-link { gap: 6px; font-size: 14px; line-height: 20px; }
  .post-head .meta { justify-content: flex-start; padding-top: 12px; }
  .post-head h1 { font-size: 40px; line-height: 44px; }
  .post-head__lede { font-size: 18px; line-height: 28px; }

  .post-cover .panel { aspect-ratio: 350 / 260; border-radius: 24px; }
  .post-cover .panel span { font-size: 96px; line-height: 104px; }

  .prose { padding-top: 40px; font-size: 17px; line-height: 28px; }
  .prose > * + * { margin-top: 22px; }
  .prose h2 { margin-top: 36px; font-size: 28px; line-height: 34px; }
  .prose h3 { margin-top: 32px; font-size: 20px; line-height: 28px; }
  .prose ul > li::before { top: 10px; }
  .prose blockquote { padding: 22px 24px; border-radius: 20px; font-size: 17px; line-height: 28px; }
  .prose img { max-height: 520px; border-radius: 20px; }
  .prose th,
  .prose td { min-width: 7.5rem; }

  .more--related { padding-top: 0; padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .bar__cta, .panel img, .read-link svg, .card__title { transition: none; }
  .bar__cta:hover { transform: none; }
}
