/* Developer Growth article styles · carousel full-image edition */
:root {
  --bg: #f4f1e8;
  --paper: #fffdf7;
  --ink: #20211d;
  --muted: #6f7169;
  --line: #ddd8ca;
  --accent: #765600;
  --accent-strong: #f0aa00;
  --accent-soft: #fff0b5;
  --green: #245f45;
  --shadow: 0 18px 60px rgba(48, 43, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 6%, rgba(240, 170, 0, 0.13), transparent 26rem),
    var(--bg);
  color: var(--ink);
  font: 17px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--green);
  text-underline-offset: 0.2em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(32, 33, 29, 0.1);
  background: rgba(255, 253, 247, 0.9);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 90px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.58fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.issue-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 780px;
  margin: 20px 0 16px;
  font-size: clamp(40px, 6.2vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.dek {
  max-width: 760px;
  margin: 0 0 22px;
  color: #494b44;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hero-link:hover {
  background: var(--accent);
}

.hero-cover {
  justify-self: end;
  width: min(100%, 330px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #eee9dc;
  box-shadow: 0 16px 36px rgba(45, 39, 20, 0.15);
  transform: rotate(1.5deg);
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.metric {
  min-height: 136px;
  padding: 24px;
  background: var(--paper);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 26px;
}

.article-flow {
  min-width: 0;
}

.panel {
  margin-bottom: 22px;
  padding: clamp(26px, 4.5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.panel h2 {
  margin: 0 0 24px;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.story-lead {
  color: #383a35;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.85;
}

.story-lead p {
  margin: 0 0 1.1em;
}

.story-lead p:last-child {
  margin-bottom: 0;
}

.journey {
  position: relative;
  display: grid;
  gap: 0;
}

.journey::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 17px;
  width: 2px;
  background: var(--line);
}

.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 28px;
}

.journey-step:last-child {
  padding-bottom: 0;
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--accent-strong);
  color: #382900;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 0 1px var(--accent-strong);
}

.journey-step h3 {
  margin: 1px 0 5px;
  font-size: 19px;
  line-height: 1.45;
}

.journey-step p {
  margin: 0;
  color: #50524b;
}

.growth-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.growth-point {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefa;
}

.growth-point h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.growth-point p {
  margin: 0;
  color: #55574f;
  font-size: 15px;
  line-height: 1.7;
}

.takeaway {
  border-color: #e3c864;
  background: linear-gradient(145deg, #fff9dc 0%, #fffdf7 72%);
}

.takeaway-block {
  padding: 22px 0;
  border-top: 1px solid rgba(118, 86, 0, 0.18);
}

.takeaway-block:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.takeaway-block:last-child {
  padding-bottom: 0;
}

.takeaway-block strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 18px;
}

.takeaway-block p {
  margin: 0;
  font-size: 18px;
}

.action-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  background: var(--ink);
  color: white;
}

.action-box span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.action-box p {
  margin: 0;
}

.carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -10px 0 6px;
}

.gallery-intro {
  margin: 0;
  color: var(--muted);
}

.carousel-toggle {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.carousel-toggle:hover,
.carousel-toggle:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
  outline: none;
}

.story-swiper {
  box-sizing: border-box;
  width: 100%;
  height: clamp(500px, 68svh, 680px);
  padding: 30px 0 52px;
  --swiper-theme-color: #765600;
  --swiper-navigation-size: 24px;
  --swiper-pagination-bullet-inactive-color: #a9a493;
  --swiper-pagination-bullet-inactive-opacity: 0.5;
  --swiper-pagination-bullet-size: 8px;
  --swiper-pagination-bullet-horizontal-gap: 5px;
}

.story-swiper::part(button-prev),
.story-swiper::part(button-next) {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(32, 33, 29, 0.12);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 8px 24px rgba(48, 43, 27, 0.14);
  backdrop-filter: blur(12px);
}

.story-swiper::part(pagination) {
  bottom: 4px;
}

.story-swiper swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  opacity: 0.58;
  filter: saturate(0.75);
  transition: opacity 320ms ease, filter 320ms ease;
}

.story-swiper swiper-slide.swiper-slide-active {
  opacity: 1;
  filter: saturate(1);
}

.story-swiper:not(:defined) {
  display: grid;
  grid-auto-columns: minmax(250px, 38%);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
}

.carousel-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ece8dc;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(48, 43, 27, 0.15);
}

.carousel-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.carousel-card span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(32, 33, 29, 0.84);
  color: white;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.article-aside {
  position: sticky;
  top: 92px;
}

.aside-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.aside-card + .aside-card {
  margin-top: 16px;
}

.aside-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aside-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 12px;
  margin: 0;
  font-size: 14px;
}

.aside-card dt {
  color: var(--muted);
}

.aside-card dd {
  margin: 0;
  font-weight: 700;
}

.toc {
  display: grid;
  gap: 8px;
}

.toc a {
  color: #4d5049;
  font-size: 14px;
  text-decoration: none;
}

.source-details summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.source-details[open] summary {
  margin-bottom: 18px;
}

.source-list {
  margin: 0;
  padding-left: 1.25em;
}

.source-list li {
  margin-bottom: 10px;
}

.data-note {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f3f1e9;
  color: #5a5c55;
  font-size: 14px;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.article-nav a,
.article-nav span {
  min-height: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.article-nav small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
}

.article-nav .next {
  text-align: right;
}

.site-footer {
  padding: 32px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
  }

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

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: -1;
  }

  .aside-card + .aside-card {
    margin: 0;
  }
}

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

  .site-header {
    position: static;
  }

  .site-header-inner {
    min-height: 60px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .page {
    width: min(100% - 20px, 1180px);
    margin-top: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
    border-radius: 22px;
  }

  .hero h1 {
    margin-top: 16px;
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero-cover {
    justify-self: stretch;
    width: 100%;
    max-height: 390px;
    transform: none;
  }

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

  .metric {
    min-height: 0;
  }

  .panel {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .growth-points,
  .article-aside,
  .article-nav {
    grid-template-columns: 1fr;
  }

  .carousel-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .story-swiper {
    margin-inline: -8px;
    width: calc(100% + 16px);
    height: clamp(450px, 64svh, 560px);
    padding-top: 24px;
  }

  .story-swiper::part(button-prev),
  .story-swiper::part(button-next) {
    width: 38px;
    height: 38px;
  }

  .article-nav .next {
    text-align: left;
  }
}
