:root {
  --nav-glass: rgba(10, 15, 20, 0.72);
  --nav-glass-scrolled: rgba(10, 15, 20, 0.9);
  --hero-overlay: linear-gradient(180deg, rgba(10, 15, 20, 0.18) 0%, rgba(10, 15, 20, 0.72) 100%);
  --article-max: 78ch;
}

.site-body {
  position: relative;
}

.app-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  height: var(--nav-expanded);
  padding-inline: clamp(0.75rem, 2vw, 1.25rem);
  background: var(--nav-glass);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  transition: height 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.app-nav.is-scrolled {
  height: var(--nav-collapsed);
  background: var(--nav-glass-scrolled);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.nav__brand,
.nav__menu,
.nav__end {
  display: flex;
  align-items: center;
}

.nav__brand {
  gap: 0.75rem;
}

.nav__menu {
  flex: 1 1 auto;
  min-width: 0;
  gap: 1rem;
}

.nav__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.nav__logo img {
  height: clamp(48px, 7vw, 88px);
  width: auto;
  transition: height 0.22s ease, transform 0.22s ease;
}

.app-nav.is-scrolled .nav__logo img {
  height: 42px;
}

.nav__burger {
  display: none;
  place-items: center;
  gap: 0.2rem;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-scroll {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav__start {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding-right: 3rem;
}

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

.nav-scroll::before,
.nav-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.nav-scroll::before {
  left: 0;
  background: linear-gradient(90deg, rgba(10, 15, 20, 0.66), rgba(10, 15, 20, 0));
}

.nav-scroll::after {
  right: 3rem;
  background: linear-gradient(90deg, rgba(10, 15, 20, 0), rgba(10, 15, 20, 0.66));
}

.nav-scroll.is-overflowing::before,
.nav-scroll.is-overflowing::after {
  opacity: 1;
}

.nav-scroll-btn {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  cursor: pointer;
}

.nav-scroll.is-overflowing .nav-scroll-btn {
  display: grid;
}

.nav__end {
  gap: 0.45rem;
  margin-left: auto;
}

.nav-article {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-article:hover,
.nav-article:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.nav-article--y {
  background: var(--accent-yellow);
  color: #111;
}

.nav-article--r {
  background: var(--accent-rose);
}

.nav-article--b {
  background: var(--accent-blue);
}

.nav-article--g {
  background: var(--accent-green);
  color: #111;
}

.nav-shortcut-btn,
.hero-cta {
  position: relative;
  border-radius: 999px;
}

.nav-shortcut-btn {
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.shortcut-logo {
  object-fit: contain;
}

.shortcut-logo--nav {
  width: 36px;
  height: 36px;
}

.shortcut-logo--hero {
  width: 4.75rem;
  height: 4.75rem;
}

.shortcut-icon {
  transition: transform 0.18s ease;
}

.nav-shortcut-btn:hover .shortcut-icon,
.nav-shortcut-btn:hover .shortcut-logo,
.hero-cta:hover .shortcut-icon,
.hero-cta:hover .shortcut-logo {
  transform: scale(1.05);
}

.hero-cover {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
}

.hero-cover::before,
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-cover::before {
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-cover::after {
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 2rem));
  margin-inline: auto;
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(4rem, 8vw, 6rem);
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid rgba(252, 196, 51, 0.9);
  border-radius: 999px;
  color: var(--accent-yellow);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.headline-hero__title,
.heading--1 {
  margin: 0.75rem 0 0;
  color: #fff;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.headline-hero__desc,
.subheading--lg {
  margin: 1rem 0 0;
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  align-self: end;
}

.hero-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: 5.5rem;
  padding: 0.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.hero-cta__icon {
  font-size: 2.8rem;
}

.hero-cta__label {
  font-weight: 700;
  text-align: center;
  font-size: 0.9rem;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  color: rgba(255, 255, 255, 0.92);
  transform: translateX(-50%);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scroll-indicator .arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: indicator-bounce 1.5s infinite;
}

.spine {
  position: fixed;
  top: 74%;
  right: 0.75rem;
  z-index: 900;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right top;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}

.section-block,
.article-section {
  scroll-margin-top: calc(var(--nav-current) + 1rem);
}

.article-section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.sec-light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.sec-gray {
  background: linear-gradient(180deg, rgba(244, 245, 247, 0.92), rgba(255, 255, 255, 0.95));
}

.article-card {
  position: relative;
  overflow: clip;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.35rem;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-yellow), var(--accent-rose), var(--accent-green));
  opacity: 0.84;
}

.article-card__content {
  position: relative;
}

.heading--2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  text-wrap: balance;
}

.subheading--md {
  margin-top: 0.65rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  font-style: italic;
}

.article-card__content > .content {
  max-width: var(--article-max);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(17, 17, 17, 0.08);
  color: var(--text-soft);
  font-size: 0.84rem;
}

.tag--dark {
  background: rgba(17, 17, 17, 0.05);
}

.meta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.meta-row__left,
.meta-row__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.byline {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #111111;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.22);
}

.btn--sm {
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
}

.btn--lg {
  padding: 0.95rem 1.2rem;
}

.btn--primary {
  background: var(--accent-blue);
}

.btn--ghost {
  background: rgba(17, 17, 17, 0.88);
}

.btn--liked {
  background: var(--accent-green);
}

.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #111;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  cursor: pointer;
}

.reaction-chip:hover,
.reaction-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 107, 168, 0.22);
  box-shadow: 0 12px 24px rgba(0, 107, 168, 0.12);
}

.reaction-chip.is-active {
  border-color: rgba(0, 107, 168, 0.45);
  background: rgba(0, 107, 168, 0.08);
}

.reaction-chip[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.reaction-chip__emoji {
  font-size: 1rem;
}

.reaction-chip__label {
  font-weight: 700;
  font-size: 0.85rem;
}

.reaction-chip__count {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
  color: var(--accent-blue);
}

.floating-idea-btn,
.floating-archives-btn {
  position: fixed !important;
  bottom: 1rem;
  z-index: 980;
  border: 0;
  background: transparent !important;
}

.floating-archives-btn {
  right: 1rem;
}

.floating-idea-btn {
  right: 5.65rem;
}

.has-icon-blur::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
  z-index: -1;
}

.floating-idea-btn.has-icon-blur::before {
  background: rgba(0, 107, 168, 0.9);
}

.floating-archives-btn.has-icon-blur::before {
  background: rgba(128, 181, 39, 0.9);
}

.notice-stack {
  position: fixed;
  top: calc(var(--nav-current) + 1rem);
  left: 50%;
  z-index: 1010;
  width: min(92vw, 580px);
  display: grid;
  gap: 0.75rem;
  transform: translateX(-50%);
}

.notice {
  padding: 1rem 1.2rem;
  padding-right: 3rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  position: relative;
}

.notice--success {
  background: rgba(128, 181, 39, 0.92);
  color: #fff;
}

.notice--danger {
  background: rgba(200, 42, 89, 0.92);
  color: #fff;
}

.notice__close,
.modal__close {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  cursor: pointer;
}

.notice__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(6, 11, 16, 0.48);
  backdrop-filter: blur(8px);
}

.modal {
  position: fixed;
  inset: auto min(4vw, 2rem) min(4vh, 2rem);
  top: min(8vh, 4rem);
  z-index: 1110;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.3);
  overflow: hidden;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.modal__title {
  margin: 0;
  font-size: 1.05rem;
}

.modal__body {
  height: min(80vh, 900px);
}

#modalFrame {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  padding: 2.4rem 1rem 5rem;
  background: #090b0f;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer a {
  color: #fff;
}

.editor-shell .site-footer {
  padding-bottom: 2rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.edition-card {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
  color: #fff;
}

.edition-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 16, 0.02) 0%, rgba(6, 11, 16, 0.72) 100%);
}

.edition-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 1.35rem;
}

.edition-card__title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.1;
}

.edition-card__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.embed-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.embed-card {
  width: min(100%, 900px);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.form-shell {
  padding: clamp(7rem, 10vw, 9rem) 0 clamp(3rem, 8vw, 5rem);
}

.form-card {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-control {
  display: grid;
  gap: 0.45rem;
}

.form-control input,
.form-control select,
.form-control textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 1rem;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
  border-color: rgba(0, 107, 168, 0.38);
  box-shadow: 0 0 0 4px rgba(0, 107, 168, 0.12);
  outline: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fx-mask,
.fx-slide-left,
.fx-slide-right,
.fx-fade {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fx-mask {
  transform: translateY(32px);
}

.fx-slide-left {
  transform: translateX(-32px);
}

.fx-slide-right {
  transform: translateX(32px);
}

.is-in .fx-mask,
.is-in .fx-slide-left,
.is-in .fx-slide-right,
.is-in .fx-fade {
  opacity: 1;
  transform: none;
}

.has-bounce.is-bouncing {
  animation: chip-bounce 0.28s ease;
}

@keyframes indicator-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

@keyframes chip-bounce {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

  .fx-mask,
  .fx-slide-left,
  .fx-slide-right,
  .fx-fade,
  .scroll-indicator .arrow,
  .has-bounce.is-bouncing {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .hero-content__grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    justify-content: flex-start;
  }

  .spine {
    display: none;
  }
}

@media (max-width: 860px) {
  .app-nav {
    height: var(--nav-collapsed);
    flex-wrap: wrap;
    padding-block: 0.6rem;
  }

  .nav__burger {
    display: grid;
  }

  .nav__menu {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0.75rem;
    right: 0.75rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 1.5rem;
    background: rgba(10, 15, 20, 0.96);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav-scroll,
  .nav__start {
    width: 100%;
  }

  .nav__start {
    padding-right: 3rem;
  }

  .nav__end {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .headline-hero__title,
  .heading--1 {
    font-size: clamp(2.2rem, 9vw, 4rem);
  }

  .form-shell {
    padding-top: 6.5rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100vw - 1rem, 1180px);
  }

  .hero-content {
    padding-top: 7rem;
  }

  .hero-cta {
    min-width: 0;
    width: calc(50% - 0.5rem);
  }

  .nav-article {
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
  }

  .meta-row {
    align-items: flex-start;
  }

  .reaction-chip__label {
    display: none;
  }

  .floating-idea-btn {
    right: 4.9rem;
  }

  .floating-archives-btn,
  .floating-idea-btn {
    bottom: 0.85rem;
  }

  .modal {
    inset: auto 0.65rem 0.65rem;
    top: 4rem;
  }
}
