/* INFLUDEO Team Blog
   Editorial extension of the corporate palette and type system. */
:root {
  --orange: #ff580c;
  --warm: #f1f0eb;
  --black: #000;
  --white: #fff;
  --ink-2: rgba(0, 0, 0, 0.68);
  --ink-3: rgba(0, 0, 0, 0.56);
  --line: rgba(0, 0, 0, 0.14);
  --gutter: clamp(20px, 4.2vw, 64px);
  --max-width: 1440px;
  --kr: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --en: "Poppins", var(--kr);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--kr);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

.article-page > * {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.o {
  color: var(--orange);
}

/* Index hero */
.blog-hero {
  padding-top: clamp(72px, 10vw, 152px);
  padding-bottom: clamp(72px, 10vw, 144px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-family: var(--en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  background: var(--orange);
  content: "";
}

  .blog-hero h1 {
  max-width: 11em;
  margin-top: clamp(24px, 3vw, 44px);
  font-size: clamp(48px, 8.5vw, 128px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.blog-hero > .wrap > p:last-child {
  max-width: 38em;
  margin-top: clamp(28px, 4vw, 52px);
  color: var(--ink-2);
  font-size: clamp(17px, 1.4vw, 20px);
}

/* Shared section and story styles */
.featured,
.archive,
.video-section,
.related {
  padding-top: clamp(80px, 10vw, 144px);
  padding-bottom: clamp(80px, 10vw, 144px);
}

.featured > .wrap > h2,
.video-section > .wrap > h2,
.related > h2,
.archive-heading h2 {
  font-family: var(--en);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.section-label {
  display: inline-block;
  margin-left: 12px;
  color: var(--ink-3);
  font-family: var(--en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.featured-grid,
.story-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 88px) clamp(18px, 2vw, 28px);
  margin-top: clamp(40px, 5vw, 72px);
}

.story {
  grid-column: span 4;
  min-width: 0;
}

.featured-grid .story {
  grid-column: span 6;
}

.story-link {
  display: block;
}

.story-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--warm);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.story-link:hover .story-image img,
.story-link:focus-visible .story-image img,
.video-story a:hover img,
.video-story a:focus-visible img {
  transform: scale(1.025);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 20px;
  color: var(--ink-3);
  font-family: var(--en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.story-meta > * + *::before {
  margin-right: 14px;
  color: var(--line);
  content: "/";
}

.story h3 {
  margin-top: 12px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.story h3,
.read-link {
  transition: color 0.25s ease;
}

.story-link:hover h3,
.story-link:focus-visible h3,
.story-link:hover .read-link,
.story-link:focus-visible .read-link {
  color: var(--orange);
}

.story-link > p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

.read-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  font-family: var(--en);
  font-size: 13px;
  font-weight: 500;
}

/* Archive controls */
.archive {
  background: var(--warm);
}

.archive-heading {
  display: block;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(40px, 5vw, 64px);
}

.filters button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filters button:hover,
.filters button[aria-pressed="true"] {
  background: var(--black);
  color: var(--white);
}

#results-status {
  min-height: 1.7em;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 14px;
}

.archive .story-grid {
  margin-top: 24px;
}

#empty-state {
  padding: clamp(64px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  text-align: center;
}

/* Video and hiring CTA */
.video-story {
  grid-column: span 6;
  min-width: 0;
}

.video-story a {
  display: block;
}

.video-story img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--warm);
  transition: transform 0.65s var(--ease);
}

.video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--black);
  color: var(--white);
  font-size: 20px;
}

.video-story .story-image {
  aspect-ratio: 16 / 9;
}

.video-story h3 {
  margin-top: 20px;
  font-size: clamp(20px, 1.8vw, 27px);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.video-story p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
}

.join-team {
  padding-top: clamp(80px, 10vw, 144px);
  padding-bottom: clamp(80px, 10vw, 144px);
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.join-team h2 {
  font-size: clamp(40px, 7vw, 100px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.join-team p {
  max-width: 40em;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.72);
}

.join-team a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 32px;
  padding: 8px 24px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);
  color: var(--black);
  font-family: var(--en);
  font-size: 14px;
  font-weight: 600;
}

.join-team a:hover {
  background: var(--white);
  border-color: var(--white);
}

.join-team a:focus-visible {
  outline-color: var(--orange);
}

/* Article */
.breadcrumbs {
  padding-top: 28px;
  color: var(--ink-3);
  font-size: 13px;
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-header {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
  border-bottom: 1px solid var(--line);
}

.article-header .story-meta {
  margin-top: 0;
}

.article-header h1 {
  max-width: 13em;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1.12;
}

.article-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(80px, 10vw, 144px);
}

.article-aside {
  grid-column: 1 / 4;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}

.article-aside > * + * {
  margin-top: 12px;
}

.article-aside a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.article-body {
  grid-column: 4 / 11;
  min-width: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.85;
}

.article-body > * + * {
  margin-top: 1.55em;
}

.article-body h2,
.article-body h3 {
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.article-body h2 {
  margin-top: 3em;
  font-size: clamp(28px, 3vw, 43px);
}

.article-body h3 {
  margin-top: 2.3em;
  font-size: clamp(22px, 2.2vw, 30px);
}

.article-body figure {
  margin: clamp(48px, 6vw, 80px) 0;
}

.article-body figure img {
  width: 100%;
  height: auto;
}

.article-body figcaption {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.55;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: clamp(32px, 4vw, 56px);
}

.article-body blockquote {
  margin-block: clamp(40px, 5vw, 64px);
  padding: 4px 0 4px clamp(20px, 3vw, 36px);
  border-left: 4px solid var(--orange);
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.5;
}

.article-body ul,
.article-body ol {
  padding-left: 1.35em;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li + li {
  margin-top: 0.55em;
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-block: clamp(48px, 6vw, 80px);
  padding-block: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.column > * + * {
  margin-top: 1em;
}

@media (max-width: 1024px) {
  .featured-grid .story,
  .featured-grid .story:first-child,
  .featured-grid .story:nth-child(4n + 1),
  .story,
  .video-story {
    grid-column: span 6;
  }

  .article-aside {
    grid-column: 1 / 4;
  }

  .article-body {
    grid-column: 4 / 13;
  }
}

@media (max-width: 700px) {
  .blog-hero h1 {
    font-size: clamp(44px, 16vw, 72px);
  }

  .featured-grid,
  .story-grid,
  .video-grid {
    display: block;
  }

  .story + .story,
  .video-story + .video-story {
    margin-top: 56px;
  }

  .article-layout {
    display: block;
  }

  .article-aside {
    position: static;
    margin-bottom: 52px;
  }

  .article-body {
    width: 100%;
  }

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

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
.filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filters button {
    padding-inline: 10px;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
