/* Notes — 저널 · 기록 (포트폴리오 미디어아트 톤) */

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

body.media-portfolio.notes-page main.page-main {
  position: relative;
  z-index: 20;
}

.nt-hero--journal {
  position: relative;
  padding: clamp(5.5rem, 14vw, 8rem) 1rem clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  overflow: hidden;
}

.nt-hero--journal::before {
  content: "";
  position: absolute;
  inset: -25% -20% auto;
  height: 70%;
  background: radial-gradient(
    ellipse 55% 48% at 50% 0%,
    rgba(61, 214, 195, 0.18),
    rgba(100, 116, 139, 0.06),
    transparent 68%
  );
  pointer-events: none;
}

.nt-hero-spine {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  width: 2px;
  height: min(180px, 22vh);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(61, 214, 195, 0.55),
    rgba(142, 240, 228, 0.25),
    transparent
  );
  border-radius: 2px;
  opacity: 0.65;
  pointer-events: none;
}

.nt-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin: 0 auto;
}

.nt-hero-kicker {
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(142, 240, 228, 0.88);
  margin-bottom: 1rem;
}

.nt-title--journal {
  margin: 0;
  font-size: clamp(2.5rem, 6.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  background: linear-gradient(
    125deg,
    #f0f8ff 0%,
    #8ef0e4 35%,
    #5eead4 55%,
    #94a3b8 85%,
    #e2e8f0 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 32px rgba(0, 0, 0, 0.42));
  animation: nt-title-shift 22s ease-in-out infinite alternate;
}

@keyframes nt-title-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.nt-hero-lead {
  margin: 1.2rem auto 0;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: rgba(215, 225, 238, 0.92);
}

.nt-hero-lead strong {
  color: #fff;
  font-weight: 600;
}

.nt-divider {
  height: 1px;
  max-width: min(88%, 560px);
  margin: clamp(2rem, 5vw, 3rem) auto;
  border: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(61, 214, 195, 0.4),
    rgba(148, 163, 184, 0.25),
    transparent
  );
}

.nt-body-section {
  padding: 0 1rem clamp(3.5rem, 9vw, 5.5rem);
}

.nt-body-inner {
  width: min(92%, 880px);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.35rem, 3vw, 1.85rem);
}

.nt-card {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2rem);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 9, 18, 0.5);
  backdrop-filter: blur(16px) saturate(1.06);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.nt-card:hover {
  border-color: rgba(61, 214, 195, 0.22);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.42),
    0 0 40px rgba(61, 214, 195, 0.06);
}

.nt-card--featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    rgba(61, 214, 195, 0.9),
    rgba(94, 234, 212, 0.35),
    rgba(148, 163, 184, 0.2)
  );
}

.nt-card--featured {
  padding-left: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 641px) {
  .nt-card--featured {
    padding-left: clamp(1.75rem, 3.5vw, 2.25rem);
  }
}

.nt-card--subtle {
  background: rgba(4, 8, 16, 0.38);
  border-color: rgba(255, 255, 255, 0.06);
}

.nt-card--subtle:hover {
  border-color: rgba(148, 163, 184, 0.18);
}

.nt-card-label {
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(142, 240, 228, 0.75);
  margin-bottom: 0.5rem;
}

.nt-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.6rem);
  font-weight: 800;
  color: #f0f4f8;
  letter-spacing: -0.02em;
}

.nt-card-desc {
  margin: 0.85rem 0 0;
  font-size: 0.96rem;
  line-height: 1.78;
  color: rgba(205, 215, 235, 0.92);
}

.nt-card-desc + .nt-card-desc {
  margin-top: 1rem;
}

.nt-list {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.nt-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.35rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(180, 195, 218, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nt-list li:last-child {
  border-bottom: none;
}

.nt-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3dd6c3, #5eead4);
  box-shadow: 0 0 10px rgba(61, 214, 195, 0.45);
}

.nt-links {
  margin-top: 1.5rem;
}

.nt-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #061018;
  background: linear-gradient(
    135deg,
    rgba(167, 243, 228, 0.98) 0%,
    rgba(45, 212, 191, 0.92) 50%,
    rgba(52, 211, 153, 0.88) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(45, 212, 191, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nt-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(45, 212, 191, 0.22);
}

.nt-btn-primary span[aria-hidden="true"] {
  font-size: 1.05em;
  opacity: 0.85;
}

.nt-closing {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nt-closing p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(160, 180, 205, 0.88);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.nt-closing strong {
  color: rgba(200, 230, 220, 0.95);
  font-weight: 600;
}

.nt-footer-mini {
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(130, 155, 180, 0.72);
  padding: 0 1rem 2.5rem;
  text-align: center;
}

.nt-back {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(142, 240, 228, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 214, 195, 0.35);
  padding-bottom: 0.12rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nt-back:hover {
  color: #fff;
  border-color: rgba(142, 240, 228, 0.65);
}

@media (max-width: 768px) {
  body.media-portfolio.notes-page .nt-hero--journal {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  body.media-portfolio.notes-page .nt-body-inner {
    width: min(100%, 100vw - 1.5rem);
  }

  body.media-portfolio.notes-page .nt-card--featured::before {
    display: none;
  }

  body.media-portfolio.notes-page .nt-card--featured {
    padding-left: clamp(1.15rem, 3vw, 1.5rem);
  }
}
