@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Pretendard-Regular.subset.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/Pretendard-SemiBold.subset.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Pretendard-Bold.subset.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/Pretendard-ExtraBold.subset.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/Pretendard-Black.subset.woff2") format("woff2");
}

/* Landing wordmark face. Self-hosted so the header matches index.html without
   loosening font-src 'self'. SIL OFL 1.1, same license as the Pretendard subset. */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/BebasNeue-Latin.subset.woff2") format("woff2");
}

:root {
  --pink: #f7357f;
  --pink-dark: #d90058;
  --pink-soft: #fff0f6;
  --ink: #090909;
  --muted: #686868;
  --line: rgba(9, 9, 9, 0.12);
  --paper: #ffffff;
  --shell: min(1120px, calc(100% - 32px));
  --header-shell: min(100%, 1240px);
  --wordmark: "Bebas Neue", Pretendard, sans-serif;
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: none;
}

/* Header geometry, wordmark, nav and CTA are matched to index.html's
   .site-header so the blog does not read as a different site. */
.blog-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px) saturate(160%);
}

.blog-header__inner {
  width: var(--header-shell);
  height: 70px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-logo-link {
  flex: none;
}

.blog-logo {
  display: block;
  font-family: var(--wordmark);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.blog-logo span,
.blog-footer span {
  color: var(--pink);
}

.blog-logo-sub {
  display: block;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.blog-nav {
  display: none;
}

.blog-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  margin-left: auto;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(247, 53, 127, 0.22);
  white-space: nowrap;
}

.blog-cta:hover {
  background: var(--pink-dark);
}

.mobile-nav {
  position: relative;
  flex: none;
}

.mobile-nav summary {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 32px));
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(30, 0, 12, 0.18);
}

.mobile-nav nav a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}

.mobile-nav nav a:last-child {
  border: 0;
}

.mobile-nav nav a[aria-current="page"] {
  color: var(--pink-dark);
}

.blog-hero {
  padding: 70px 16px 56px;
  background:
    radial-gradient(circle at 78% 18%, rgba(247, 53, 127, 0.23), transparent 22rem),
    var(--ink);
  color: #fff;
  text-align: center;
}

.blog-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(42px, 11vw, 82px);
  line-height: 1;
  letter-spacing: -0.065em;
}

.blog-hero > p:last-child {
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  color: var(--pink);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.18em;
}

.blog-shell {
  width: var(--shell);
  margin: auto;
  padding: 34px 0 80px;
}

.category-filter {
  display: flex;
  gap: 8px;
  padding-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-filter a {
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 850;
}

.category-filter a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.post-grid {
  display: grid;
  gap: 20px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(38, 0, 15, 0.07);
}

.post-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pink-soft);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.post-card__image:hover img {
  transform: scale(1.025);
}

.post-card__body {
  padding: 20px;
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.post-card__meta span {
  color: var(--pink-dark);
}

.post-card h2 {
  margin: 10px 0 8px;
  font-size: 23px;
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.empty-state,
.not-found {
  padding: 72px 20px;
  border: 2px dashed rgba(247, 53, 127, 0.35);
  border-radius: 24px;
  background: var(--pink-soft);
  text-align: center;
}

.empty-state h2,
.not-found h1 {
  margin: 0 0 10px;
  font-size: clamp(27px, 6vw, 42px);
  letter-spacing: -0.05em;
}

.empty-state p,
.not-found > p {
  margin: 0;
  color: var(--muted);
}

.pagination {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.pagination a,
.pagination span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 850;
}

.pagination a:last-child,
.pagination span:last-child {
  grid-column: 3;
}

.pagination span[aria-disabled="true"] {
  color: #aaa;
}

.pagination strong {
  font-size: 13px;
}

.post-detail {
  width: min(780px, calc(100% - 32px));
  margin: auto;
  padding: 52px 0 90px;
}

.post-detail > header {
  padding-bottom: 30px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-size: 14px;
  font-weight: 900;
}

.post-detail__meta {
  margin: 28px 0 8px;
  color: var(--pink-dark);
  font-size: 14px;
  font-weight: 850;
}

.post-detail h1 {
  margin: 0;
  font-size: clamp(34px, 9vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.post-cover {
  margin: 0 0 42px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--pink-soft);
}

.post-cover img {
  width: 100%;
}

.prose {
  min-height: 180px;
  font-size: 17px;
}

.prose h2,
.prose h3,
.prose h4 {
  margin: 2.2em 0 0.6em;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre {
  margin: 1.15em 0;
}

.prose a {
  color: var(--pink-dark);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.prose img {
  width: auto;
  margin: 28px auto;
  border-radius: 18px;
}

.prose blockquote {
  padding: 14px 18px;
  border-left: 5px solid var(--pink);
  background: var(--pink-soft);
}

.prose pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 14px;
  background: #111;
  color: #fff;
}

.adjacent-posts,
.related-posts {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}

.adjacent-posts h2,
.related-posts h2 {
  margin: 0 0 20px;
  font-size: 24px;
}

.adjacent-posts > div {
  display: grid;
  gap: 12px;
}

.adjacent-posts a,
.adjacent-posts > div > div,
.related-posts a {
  min-height: 94px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.adjacent-posts span,
.related-posts time {
  display: block;
  margin-bottom: 5px;
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 900;
}

.adjacent-posts p {
  margin: 0;
  color: var(--muted);
}

.related-posts > div {
  display: grid;
  gap: 10px;
}

.not-found {
  width: min(720px, calc(100% - 32px));
  margin: 72px auto;
}

.not-found a {
  margin-top: 24px;
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.blog-footer {
  padding: 42px max(16px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: #fff;
}

.blog-footer strong {
  font-size: 28px;
}

.blog-footer p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.blog-footer > a {
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

:focus-visible {
  outline: 3px solid #0a74ff;
  outline-offset: 3px;
}

@media (min-width: 700px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-card__body {
    padding: 24px;
  }

  .adjacent-posts > div,
  .related-posts > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Header step-ups mirror index.html's measured breakpoints. */
@media (min-width: 640px) {
  .blog-header__inner {
    padding: 0 20px;
    gap: 30px;
  }

  .blog-logo {
    font-size: 34px;
  }

  .blog-logo-sub {
    font-size: 13px;
  }

  .blog-cta {
    min-height: 48px;
    padding: 0 28px;
    font-size: 16px;
  }
}

@media (min-width: 1040px) {
  .blog-header__inner {
    height: 82px;
    padding: 0 38px;
  }

  .blog-logo {
    font-size: 42px;
  }

  .blog-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 42px;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
  }

  .blog-nav a[aria-current="page"],
  .blog-nav a:hover {
    color: var(--pink-dark);
  }

  .blog-cta {
    margin-left: 0;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .post-card__image img {
    transition: none;
  }
}
