@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

:root {
  --motion-transition-short: 100ms;
  --motion-transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-transition-props: background-color, border-color, color, fill, stroke;
  --post-gradient-start: #4f46e5;
  --post-gradient-end: #1e3a8a;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

html {
  scroll-behavior: smooth;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3,
h4 {
  font-weight: 600;
}

.nav-menu ul {
  flex-wrap: wrap;
}

a,
button,
[role="button"],
.nav-link,
.transition-short {
  transition-property: var(--motion-transition-props);
  transition-duration: var(--motion-transition-short);
  transition-timing-function: var(--motion-transition-ease);
}

.transition,
.transition-all,
.transition-colors,
.transition-opacity,
.transition-shadow,
.transition-transform {
  transition-duration: var(--motion-transition-short);
  transition-timing-function: var(--motion-transition-ease);
}

#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--post-gradient-start) 0%, var(--post-gradient-end) 100%);
  width: 0%;
  z-index: 9999;
  transition: width var(--motion-transition-short) ease;
}

.post-header {
  background: linear-gradient(135deg, var(--post-gradient-start) 0%, var(--post-gradient-end) 100%);
}

.post-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.motion-page-banner {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.motion-page-banner__image {
  height: clamp(12rem, 32vw, 20rem);
}

.motion-page-title {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
}

.motion-page-icon-wrap--offset {
  transform: translateY(-60%);
}

.motion-content {
  color: rgb(55, 53, 47);
  line-height: 1.6;
}

.motion-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: rgb(55, 53, 47);
}

.motion-content h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: rgb(55, 53, 47);
}

.motion-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: rgb(55, 53, 47);
}

.motion-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  color: rgb(55, 53, 47);
}

.motion-content strong {
  font-weight: 600;
  color: rgb(55, 53, 47);
}

.motion-content a {
  color: rgb(55, 53, 47);
  text-decoration: underline;
  text-decoration-color: rgba(55, 53, 47, 0.4);
  text-underline-offset: 2px;
}

.motion-content a:hover {
  text-decoration-color: rgb(55, 53, 47);
  background-color: rgba(55, 53, 47, 0.08);
}

.motion-content li {
  font-size: 1rem;
  line-height: 1.7;
  padding: 0.25rem 0;
  color: rgb(55, 53, 47);
  list-style-position: outside;
  margin-left: 1.5rem;
}

.motion-content ul {
  margin: 0.5rem 0 1rem 0;
}

.motion-content li::marker {
  color: rgba(55, 53, 47, 0.4);
}

.motion-embed {
  position: relative;
  padding-top: 56.25%;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.motion-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.motion-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.65);
}

@keyframes motion-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.motion-404 .float-animation {
  animation: motion-float 3s ease-in-out infinite;
}

.motion-post-neighbors {
  margin-top: 2.5rem;
}

.motion-neighbor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 1.5rem;
}

.motion-neighbor-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: rgb(55, 53, 47);
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  min-width: 220px;
  justify-content: space-between;
}

.motion-neighbor-nav__link:hover {
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.motion-neighbor-nav__link--prev {
  justify-content: flex-start;
}

.motion-neighbor-nav__link--next {
  justify-content: flex-end;
  margin-left: auto;
}

.motion-neighbor-nav__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.motion-neighbor-nav__kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(100, 116, 139, 0.9);
}

.motion-neighbor-nav__title {
  font-size: 0.95rem;
  font-weight: 600;
}

.motion-neighbor-nav__arrow {
  font-size: 1.1rem;
  color: rgba(100, 116, 139, 0.9);
}

.motion-section-nav {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.motion-children-nav__title,
.motion-subdir-nav__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: rgb(55, 53, 47);
}

.motion-children-nav__list,
.motion-subdir-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.motion-children-nav__link,
.motion-subdir-nav__link {
  text-decoration: none;
  color: rgb(55, 53, 47);
  font-weight: 500;
}

.motion-children-nav__link:hover,
.motion-subdir-nav__link:hover,
.motion-subdir-nav__heading:hover {
  color: rgb(15, 23, 42);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.motion-subdir-nav__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.motion-subdir-nav__column {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.motion-subdir-nav__heading {
  display: inline-flex;
  font-weight: 600;
  color: rgb(55, 53, 47);
  margin-bottom: 0.65rem;
  text-decoration: none;
}

.motion-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.motion-footer__title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: rgba(100, 116, 139, 0.9);
  margin-bottom: 0.8rem;
}

.motion-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.motion-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.motion-footer__link,
.motion-footer__nav a,
.motion-footer__button {
  color: rgb(55, 53, 47);
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.motion-footer__link:hover,
.motion-footer__nav a:hover,
.motion-footer__button:hover {
  color: rgb(15, 23, 42);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.motion-footer__empty {
  font-size: 0.9rem;
  color: rgba(100, 116, 139, 0.9);
}

.motion-footer__meta {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.sitemap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.sitemap__group {
  margin-bottom: 0.4rem;
}

.sitemap__group-label {
  font-weight: 600;
  color: rgb(55, 53, 47);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.sitemap__group-list {
  list-style: none;
  margin: 0 0 0.8rem 0.8rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.sitemap__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sitemap__link {
  color: rgb(55, 53, 47);
  text-decoration: none;
}

.sitemap__link:hover {
  color: rgb(15, 23, 42);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sitemap__item--hidden,
.sitemap__item--draft {
  opacity: 0.6;
}

.sitemap__icon {
  color: rgba(100, 116, 139, 0.9);
}
