
.is-hidden {
  display: none;
}

.guide-background {
  position: fixed;
  inset: 0;
  z-index: var(--sp-z-behind);
  background: var(--sp-color-bg);
}

.guide-background::before {
  content: '';
  position: fixed;
  top: -250px;
  right: -250px;
  width: 800px;
  height: 800px;
  border-radius: var(--sp-radius-full);
  background: radial-gradient(
    circle,
    color-mix(in oklch, var(--sp-color-primary) 10%, transparent) 0%,
    color-mix(in oklch, var(--sp-color-primary) 6%, transparent) 40%,
    color-mix(in oklch, var(--sp-color-primary) 2%, transparent) 70%,
    transparent 100%
  );
  animation: pulse-soft 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

.guide-background::after {
  content: '';
  position: fixed;
  bottom: -300px;
  right: -300px;
  width: 700px;
  height: 700px;
  border-radius: var(--sp-radius-full);
  background: radial-gradient(
    circle,
    color-mix(in oklch, var(--sp-color-primary) 8%, transparent) 0%,
    color-mix(in oklch, var(--sp-color-primary) 4%, transparent) 45%,
    color-mix(in oklch, var(--sp-color-primary) 1%, transparent) 75%,
    transparent 100%
  );
  animation: pulse-soft 8s cubic-bezier(0.4, 0, 0.6, 1) infinite 2s;
  pointer-events: none;
}

.guide-shape-left {
  position: fixed;
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border-radius: var(--sp-radius-full);
  background: radial-gradient(
    circle,
    color-mix(in oklch, var(--sp-color-primary) 8%, transparent) 0%,
    color-mix(in oklch, var(--sp-color-primary) 4%, transparent) 40%,
    color-mix(in oklch, var(--sp-color-primary) 1%, transparent) 70%,
    transparent 100%
  );
  animation: pulse-soft 8s cubic-bezier(0.4, 0, 0.6, 1) infinite 4s;
  pointer-events: none;
  z-index: var(--sp-z-behind);
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.9; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateY(-50%) scale(1.05); }
}



* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 1rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--sp-color-bg);
  color: var(--sp-color-text-primary);
  font-family: var(--sp-font-sans);
  line-height: 1.6;
}


.guide-list main a,
.guide-post a,
.post-content a {
  color: var(--sp-color-text-secondary);
  text-decoration: none;
  transition: color var(--sp-duration-fast) var(--sp-ease-default);
}

.guide-list main a:hover,
.guide-post a:hover,
.post-content a:hover {
  color: var(--sp-color-text-primary);
}

.guide-list main a:visited,
.guide-post a:visited,
.post-content a:visited {
  color: var(--sp-color-text-secondary);
}


.guide-post svg {
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .guide-background::before,
  .guide-background::after,
  .guide-shape-left {
    animation: none;
  }

  .guide-list main a,
  .guide-post a,
  .post-content a {
    transition: none;
  }
}



main:not(.guide-post) {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--sp-header-height) + 2rem) var(--sp-space-6) var(--sp-space-12);
}

.guide-post {
  max-width: 780px;
  margin: 0 auto;
}

.guide-layout > .guide-post {
  max-width: none;
}

.post-header {
  max-width: 680px;
  margin: 0 auto var(--sp-space-12);
  text-align: center;
}

article .post-header h1,
.post-header h1 {
  font-family: var(--sp-font-heading);
  font-size: var(--sp-text-3xl);
  line-height: var(--sp-leading-snug);
  margin-bottom: var(--sp-space-4);
  letter-spacing: -0.03em;
  color: var(--sp-color-text-primary);
  text-transform: uppercase;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-space-4);
  color: var(--sp-color-text-secondary);
  font-size: var(--sp-text-sm);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  font-size: var(--sp-text-sm);
  color: var(--sp-color-text-secondary);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.breadcrumb::-webkit-scrollbar {
  display: none;
}

.breadcrumb a {
  color: var(--sp-color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--sp-duration-fast) var(--sp-ease-default);
}

.breadcrumb a:hover {
  color: var(--sp-color-text-primary);
}

.breadcrumb__separator {
  color: var(--sp-color-text-muted);
  flex-shrink: 0;
}

.breadcrumb__current {
  color: var(--sp-color-text-disabled);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-header {
  margin-bottom: var(--sp-space-12);
}

.page-header h1 {
  font-family: var(--sp-font-heading);
  font-size: var(--sp-text-3xl);
  font-weight: var(--sp-font-weight-bold);
  letter-spacing: -0.03em;
  color: var(--sp-color-text-primary);
  margin-bottom: var(--sp-space-2);
  text-transform: uppercase;
}

.page-header .subtitle {
  font-size: var(--sp-text-lg);
  color: var(--sp-color-text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

@media (max-width: 768px) {
  .breadcrumb {
    justify-content: flex-start;
    white-space: nowrap;
  }

  .breadcrumb__current {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .breadcrumb__current {
    max-width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breadcrumb a {
    transition: none;
  }
}



.homepage-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-space-12) var(--sp-space-6);
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-family: var(--sp-font-heading);
  font-size: var(--sp-text-4xl);
  font-weight: var(--sp-font-weight-bold);
  color: var(--sp-color-text-primary);
  margin-bottom: var(--sp-space-4);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: var(--sp-leading-tight);
}

.hero-subtitle {
  font-size: var(--sp-text-xl);
  color: var(--sp-color-text-secondary);
  margin-bottom: var(--sp-space-8);
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--sp-space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-space-6);
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-space-2);
  padding: var(--sp-space-4) var(--sp-space-8);
  background: var(--sp-color-text-primary);
  color: var(--sp-color-bg);
  border-radius: var(--sp-corners-md);
  text-decoration: none;
  font-weight: var(--sp-font-weight-bold);
  font-size: var(--sp-text-md);
  transition: background-color var(--sp-duration-fast) var(--sp-ease-default), color var(--sp-duration-fast) var(--sp-ease-default), transform var(--sp-duration-fast) var(--sp-ease-default), box-shadow var(--sp-duration-fast) var(--sp-ease-default);
}

.hero-cta-primary:hover {
  background: var(--sp-color-primary-dark);
  color: var(--sp-color-text-on-primary);
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow-lg);
}

.hero-cta-primary .arrow-icon {
  transition: transform var(--sp-duration-fast) var(--sp-ease-default);
}

.hero-cta-primary:hover .arrow-icon {
  transform: translateX(4px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-space-4) var(--sp-space-8);
  background: transparent;
  color: var(--sp-color-text-primary);
  border: 1px solid var(--sp-color-text-primary);
  border-radius: var(--sp-corners-md);
  text-decoration: none;
  font-weight: var(--sp-font-weight-medium);
  font-size: var(--sp-text-md);
  transition: border-color var(--sp-duration-fast) var(--sp-ease-default), background-color var(--sp-duration-fast) var(--sp-ease-default);
}

.hero-cta-secondary:hover {
  border-color: var(--sp-color-text-primary);
  background: color-mix(in oklch, var(--sp-color-primary) 10%, transparent);
}


.hero-tagline {
  font-family: var(--sp-font-sans);
  font-size: var(--sp-text-xl);
  color: var(--sp-color-text-secondary);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto var(--sp-space-6);
  text-align: center;
}


@media (max-width: 768px) {
  .hero-title {
    font-size: var(--sp-text-3xl);
  }

  .hero-subtitle {
    font-size: var(--sp-text-lg);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--sp-space-2);
  }

  .stat-separator {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta-primary,
  .hero-cta-secondary,
  .hero-cta-primary .arrow-icon {
    transition: none;
  }

  .hero-cta-primary:hover {
    transform: none;
  }

  .hero-cta-primary:hover .arrow-icon {
    transform: none;
  }
}



.guide-post .featured-image {
  margin: 0 -60px var(--sp-space-12);
  border-radius: var(--sp-corners-lg);
  overflow: hidden;
  box-shadow: var(--sp-shadow-lg);
  line-height: 0;
  font-size: 0;
}

.guide-post .featured-image picture {
  display: block;
  line-height: 0;
}

.guide-post .featured-image .image-placeholder.is-hidden {
  display: none;
}

.guide-post .featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1200 / 630;
}

.post-content {
  font-size: var(--sp-text-lg);
  line-height: 1.75;
  color: var(--sp-color-text-primary);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: var(--sp-font-heading);
  font-weight: var(--sp-font-weight-bold);
  line-height: var(--sp-leading-snug);
  color: var(--sp-color-text-primary);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  letter-spacing: var(--sp-tracking-tight);
  text-transform: uppercase;
}

.post-content h2 {
  font-size: var(--sp-text-2xl);
  border-bottom: 1px solid var(--sp-color-border);
  padding-bottom: 0.25em;
  scroll-margin-top: calc(var(--sp-header-height) + 1.5rem);
}

.post-content h3 {
  scroll-margin-top: calc(var(--sp-header-height) + 1.5rem);
}

.post-content .heading-anchor {
  color: var(--sp-color-text-muted);
  text-decoration: none;
  font-weight: var(--sp-font-weight-regular);
  margin-left: var(--sp-space-2);
  opacity: 0;
  transition: opacity var(--sp-duration-fast) var(--sp-ease-default);
}

.post-content h2:hover .heading-anchor,
.post-content h3:hover .heading-anchor {
  opacity: 1;
}

.post-content .heading-anchor:hover {
  color: var(--sp-color-primary);
}

.post-content h3 {
  font-size: var(--sp-text-xl);
}

.post-content h4 {
  font-size: var(--sp-text-lg);
}

.post-content p {
  margin-bottom: 1.5em;
}

.post-content a {
  color: var(--sp-color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--sp-duration-fast) var(--sp-ease-default), text-decoration-thickness var(--sp-duration-fast) var(--sp-ease-default);
}

.post-content a:hover {
  color: var(--sp-color-text-primary);
  text-decoration-thickness: 2px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.75em;
}

.post-content li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.post-content blockquote {
  margin: 2em 0;
  padding: var(--sp-space-6) var(--sp-space-8);
  border-left: 4px solid var(--sp-color-primary);
  background: var(--sp-color-surface-variant);
  border-radius: var(--sp-radius-sm);
  font-style: italic;
  color: var(--sp-color-text-secondary);
}

.post-content hr {
  border: none;
  border-top: 2px solid var(--sp-color-border);
  margin: 3em 0;
  opacity: 0.5;
}

.post-content img {
  width: calc(100% + 120px);
  max-width: none;
  margin: 2em -60px;
  height: auto;
  display: block;
  border-radius: var(--sp-corners-md);
  box-shadow: var(--sp-shadow-sm);
}

.post-content code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  background: var(--sp-color-surface-variant);
  border: 1px solid var(--sp-color-border);
  border-radius: var(--sp-radius-xs);
  color: var(--sp-color-text-primary);
}

.post-content pre {
  margin: 2em 0;
  border-radius: var(--sp-corners-md);
  background: var(--sp-syntax-bg);
  overflow-x: auto;
  box-shadow: var(--sp-shadow-md);
}

.post-content pre code {
  display: block;
  padding: var(--sp-space-6);
  font-size: var(--sp-text-sm);
  line-height: 1.6;
  background: none;
  border: none;
  color: var(--sp-syntax-fg);
  overflow-x: auto;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9em;
}

.post-content th,
.post-content td {
  padding: 0.75em 1em;
  text-align: left;
  border-bottom: 1px solid var(--sp-color-border);
}

.post-content th {
  background: var(--sp-color-surface-variant);
  font-weight: var(--sp-font-weight-bold);
  color: var(--sp-color-text-primary);
}

.post-content tr:hover {
  background: var(--sp-color-surface-variant);
}

.post-content pre {
  position: relative;
}



.social-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-space-4);
  margin-top: var(--sp-space-6);
  padding-top: var(--sp-space-6);
  border-top: 1px solid var(--sp-color-border);
}

.social-action-bar__label {
  font-size: var(--sp-text-sm);
  color: var(--sp-color-text-secondary);
  font-weight: var(--sp-font-weight-medium);
}

.social-action-bar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--sp-radius-full);
  color: var(--sp-color-text-secondary);
  background: var(--sp-color-surface-variant);
  border: 1px solid var(--sp-color-border);
  transition: color var(--sp-duration-fast) var(--sp-ease-default), background-color var(--sp-duration-fast) var(--sp-ease-default), border-color var(--sp-duration-fast) var(--sp-ease-default), transform var(--sp-duration-fast) var(--sp-ease-default), box-shadow var(--sp-duration-fast) var(--sp-ease-default);
  text-decoration: none;
}

.social-action-bar__link:hover {
  color: var(--sp-color-text-primary);
  background: var(--sp-color-surface);
  border-color: var(--sp-color-primary);
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow-md);
}

.social-action-bar__link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-action-bar__link--linkedin:hover {
  color: var(--sp-color-brand-linkedin);
  border-color: var(--sp-color-brand-linkedin);
}

.social-action-bar__link--twitter:hover {
  color: var(--sp-color-text-primary);
  border-color: var(--sp-color-text-primary);
}

.social-action-bar__link--github:hover {
  color: var(--sp-color-text-primary);
  border-color: var(--sp-color-text-primary);
}

.social-action-bar__link--share {
  cursor: pointer;
  font: inherit;
}

.social-action-bar__link--share:hover {
  color: var(--sp-color-primary);
  border-color: var(--sp-color-primary);
}

.social-action-bar--hero {
  border-top: none;
  padding-top: 0;
  margin-top: var(--sp-space-4);
}

.social-action-bar--hero .social-action-bar__link {
  background: oklch(1.00 0 0 / 0.1);
  border-color: oklch(1.00 0 0 / 0.2);
  color: oklch(1.00 0 0 / 0.9);
}

.social-action-bar--hero .social-action-bar__link:hover {
  background: oklch(0 0 0 / 0.05);
  color: var(--sp-color-text-primary);
}

.social-action-bar--hero .social-action-bar__label {
  color: var(--sp-color-text-secondary);
}



.social-content {
  margin: var(--sp-space-12) 0;
  padding: var(--sp-space-6);
  background: color-mix(in oklch, var(--sp-color-primary) 3%, transparent);
  border: 1px solid var(--sp-color-border);
  border-radius: var(--sp-corners-md);
}

.social-content h2 {
  font-family: var(--sp-font-heading);
  font-size: var(--sp-text-lg);
  margin-bottom: var(--sp-space-2);
  text-transform: uppercase;
}

.social-content p {
  font-size: var(--sp-text-sm);
  color: var(--sp-color-text-secondary);
  margin-bottom: var(--sp-space-4);
}

.social-content ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-4);
}

.social-content li a {
  display: inline-block;
  padding: var(--sp-space-1) var(--sp-space-4);
  background: var(--sp-color-surface-variant);
  border: 1px solid var(--sp-color-border);
  border-radius: var(--sp-radius-full);
  color: var(--sp-color-text-secondary);
  text-decoration: none;
  font-size: var(--sp-text-sm);
  transition: border-color var(--sp-duration-fast) var(--sp-ease-default), color var(--sp-duration-fast) var(--sp-ease-default);
}

.social-content li a:hover {
  border-color: var(--sp-color-primary);
  color: var(--sp-color-text-primary);
}


@media (max-width: 768px) {
  .social-action-bar {
    gap: var(--sp-space-2);
    flex-wrap: wrap;
  }

  .social-action-bar__link {
    width: 36px;
    height: 36px;
  }

  .social-action-bar__link svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-action-bar__link,
  .social-content li a {
    transition: none;
  }

  .social-action-bar__link:hover {
    transform: none;
  }
}
