/* shinjinho.com
   하루가 저무는 순서대로: 새벽의 소개, 낮의 PicParcel, 저녁까지 빨래가 마르는 Wash This?, 밤의 Night View */

:root {
  --dawn: #E9EEF5;
  --ink: #10203A;
  --sky: #BCD7F2;
  --sky-ink: #0E2744;
  --aqua: #CDEAE2;
  --aqua-ink: #0B312F;
  --night: #0D1322;
  --night-ink: #E6EAF3;
  --moon: #F3D58B;

  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --band-y: clamp(4.5rem, 10vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Hahmlet Variable', 'Hahmlet', 'Apple SD Gothic Neo', 'Noto Serif KR', serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--dawn);
  word-break: keep-all;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
  text-decoration-color: currentColor;
  transition: text-decoration-color .2s, opacity .2s;
}
a:hover { text-decoration-color: transparent; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.wordmark {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--pad-x) clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(to bottom, var(--dawn) 55%, var(--sky) 100%);
}

.hero__main { max-width: 1280px; width: 100%; margin: 0 auto; }
.hero > .wordmark { max-width: 1280px; width: 100%; margin: 0 auto; }

.hero__title {
  font-weight: 800;
  font-size: clamp(2.9rem, 14vw, 9.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.line { display: block; overflow: hidden; padding-block: 0.06em; }
.line > span {
  display: inline-block;
  transform: translateY(0);
  animation: rise 1s cubic-bezier(.2, .75, .2, 1) both;
  animation-delay: calc(var(--i) * 140ms + 120ms);
}

@keyframes rise {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}

.hero__text {
  max-width: 33em;
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.8;
  text-wrap: pretty;
}

/* ---------- Bands ---------- */

.band { padding: var(--band-y) var(--pad-x); }

.band__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.band__inner--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.band__inner--flip .visual { order: -1; }

.band--sky   { background: var(--sky);   color: var(--sky-ink); }
.band--aqua  { background: linear-gradient(to bottom, var(--sky) 0, var(--aqua) 9rem), var(--aqua); color: var(--aqua-ink); }
.band--night { background: var(--night); color: var(--night-ink); }

.app-name {
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 5.25rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}
.app-name small {
  display: block;
  margin-top: 0.7rem;
  font-size: clamp(1.0625rem, 1.8vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: .72;
}

.lede {
  max-width: 21em;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.status { font-size: .95rem; line-height: 1.7; opacity: .78; max-width: 34em; }

.features { margin: 2.25rem 0 2rem; max-width: 34em; }
.features li {
  padding: 1.1rem 0;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.features li:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.features h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.5; margin-bottom: .2rem; }
.features p { font-size: .98rem; line-height: 1.75; opacity: .88; }

.who { max-width: 34em; margin-bottom: 1.5rem; }

.out { font-weight: 700; }

/* ---------- 공통 시각물 ---------- */

.visual { display: grid; place-items: center; }
.visual figcaption { margin-top: 1rem; font-size: .9rem; opacity: .7; text-align: center; }

/* ---------- PicParcel ---------- */

.pp { width: 100%; max-width: 600px; height: auto; display: block; overflow: visible; }

/* ---------- Wash This? : 세탁 택 ---------- */

.tag {
  width: 100%;
  max-width: 440px;
  transform: rotate(-3deg);
  background: #FBFBF7;
  color: var(--aqua-ink);
  padding: 14px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(11, 49, 47, .18);
}

.tag__face {
  padding: 1.6rem 1.5rem 1.5rem;
  outline: 2px dashed rgba(11, 49, 47, .5);
  outline-offset: -2px;
  border-radius: 2px;
}

.tag__title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 1.4rem;
}

.symbols {
  display: flex;
  gap: .9rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(11, 49, 47, .25);
}
.symbols svg { width: 3rem; height: 3rem; flex: none; }

.bundles li { display: grid; gap: .1rem; padding: .7rem 0; line-height: 1.55; }
.bundles li + li { border-top: 1px solid rgba(11, 49, 47, .18); }
.bundles strong { font-weight: 800; font-size: 1.1875rem; }
.bundles span { font-size: 1.0625rem; }
.bundles em { font-style: normal; font-size: .95rem; opacity: .72; }

/* ---------- 저녁에서 밤으로 ---------- */

.dusk {
  height: clamp(8rem, 22vw, 18rem);
  background: linear-gradient(to bottom, var(--aqua), #9DB3CD 34%, #35466B 70%, var(--night));
}

/* ---------- Night View : 밝음/어두움 비교 ---------- */

.nv {
  --pos: 50%;
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 5 / 4;
  border-radius: 14px;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}

.nv__win { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 1rem; }
.nv__win--light { background: #fff; color: #1d2330; }
.nv__win--dark  { background: #141A2B; color: #E4E8F2; clip-path: inset(0 0 0 var(--pos)); }

.nv__bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .8rem 1rem;
  background: #EEF0F4;
  border-bottom: 1px solid #dde0e7;
}
.nv__win--dark .nv__bar { background: #1B2236; border-color: #29314a; }
.nv__bar i { width: .7rem; height: .7rem; border-radius: 50%; background: #c9cdd6; }
.nv__win--dark .nv__bar i { background: #3b4562; }
.nv__bar span {
  margin-left: .75rem; flex: 1;
  padding: .15rem .8rem;
  font-size: .8rem; line-height: 1.6;
  border-radius: 999px;
  background: #fff; color: #667084;
}
.nv__win--dark .nv__bar span { background: #0F1424; color: #8c96b3; }

.nv__page { padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.nv__h { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.3; }
.nv__p { font-size: .98rem; line-height: 1.6; }
.nv__lines { display: grid; gap: .5rem; }
.nv__lines b { display: block; height: .55rem; border-radius: 3px; background: #d6dae3; }
.nv__lines b.short { width: 60%; }
.nv__win--dark .nv__lines b { background: #2c3550; }
.nv__img { flex: 1; min-height: 3.5rem; border-radius: 8px; background: linear-gradient(135deg, #cfe1f7, #f7e4c9); }
.nv__win--dark .nv__img { background: linear-gradient(135deg, #1f2c4a, #3a3350); }
.nv__btn {
  align-self: flex-start;
  padding: .35rem 1rem;
  font-size: .9rem; font-weight: 700;
  border-radius: 999px;
  background: #1d2330; color: #fff;
}
.nv__win--dark .nv__btn { background: var(--moon); color: #1b1f2e; }

.nv__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; pointer-events: none;
}

.nv__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: var(--moon);
  pointer-events: none;
}
.nv__handle span {
  position: absolute; top: 50%; left: 50%;
  width: 2.5rem; height: 2.5rem; margin: -1.25rem 0 0 -1.25rem;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 0 4px rgba(13, 19, 34, .55);
}
.nv__handle span::before, .nv__handle span::after {
  content: ''; position: absolute; top: 50%;
  width: 0; height: 0; margin-top: -5px;
  border: 5px solid transparent;
}
.nv__handle span::before { left: 6px;  border-right-color: #1b1f2e; border-left-width: 0; }
.nv__handle span::after  { right: 6px; border-left-color:  #1b1f2e; border-right-width: 0; }

.nv__range:focus-visible ~ .nv__handle span { outline: 3px solid #fff; outline-offset: 3px; }

.band--night a:hover { text-decoration-color: transparent; }
.band--night .out { color: var(--moon); }

/* ---------- Footer ---------- */

.foot { background: var(--night); color: var(--night-ink); padding: 0 var(--pad-x) clamp(2.5rem, 5vw, 4rem); }
.foot__inner {
  max-width: 1280px; margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(230, 234, 243, .18);
  display: grid; gap: .35rem;
}
.foot__inner p { text-wrap: balance; }
.foot__small { font-size: .875rem; opacity: .6; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .band__inner, .band__inner--flip { grid-template-columns: minmax(0, 1fr); }
  .band__inner--flip .visual { order: 0; }
  .visual { margin-top: .5rem; }
  .tag { margin-inline: auto; }
}

@media (max-width: 420px) {
  .symbols { gap: .6rem; }
  .symbols svg { width: 2.25rem; height: 2.25rem; }
  .tag__title { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line > span { animation: none; }
  a { transition: none; }
}
