/* sora.garden — midnight courtyard, modernist collage, spotlight */

:root {
  --midnight: #0a1428;
  --indigo-deep: #0e1830;
  --indigo: #141e32;
  --blue-mid: #2a3a5a;
  --blue-warm: #3a5a8a;
  --pink-fade: #c4848a;
  --bone: #e0e4ea;
  --gold-soft: #b8a468;
  --line: rgba(224, 228, 234, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--midnight);
  color: var(--bone);
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* hidden patterns visible only via spotlight */
.hidden-pattern {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle 220px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
  mask-image: radial-gradient(circle 220px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
}

/* spotlight glow */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle 220px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(58,90,138,0.18) 0%, rgba(196,132,138,0.08) 30%, transparent 70%);
  transition: background 0.05s linear;
}

/* topbar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(10,20,40,0.85), transparent);
}
.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--bone);
}
.topnav { display: flex; gap: 28px; }
.topnav a {
  text-decoration: none;
  color: var(--bone);
  opacity: 0.65;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.topnav a:hover { opacity: 1; color: var(--pink-fade); }

/* hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 24px;
  z-index: 2;
}
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(50px, 9vw, 120px);
  letter-spacing: 0.18em;
  color: var(--bone);
  line-height: 1;
  animation: titleSpread 1.8s ease 0.4s both;
}
@keyframes titleSpread {
  from { letter-spacing: 0.02em; opacity: 0; }
  to   { letter-spacing: 0.18em; opacity: 1; }
}
.hero-glyphs {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--blue-warm);
}
.hero-glyphs .ja {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  color: var(--bone);
  opacity: 0.75;
}
.hero-glyphs .ko {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  color: var(--pink-fade);
  opacity: 0.85;
}
.hero-glyphs .dot {
  width: 4px; height: 4px;
  background: var(--gold-soft);
  border-radius: 50%;
}
.hero-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--bone);
  opacity: 0.55;
  max-width: 460px;
  line-height: 1.7;
}
.hero-foot {
  position: absolute;
  bottom: 36px;
  left: 36px;
  right: 36px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.4;
}

/* sections */
section {
  padding: 140px 8vw;
  position: relative;
  z-index: 2;
}
.block-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue-warm);
  margin-bottom: 32px;
  font-weight: 500;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin-bottom: 56px;
}

/* courtyard */
.courtyard {
  position: relative;
  min-height: 80vh;
}
.grid-wrap { max-width: 760px; }
.section-prose {
  color: var(--bone);
  opacity: 0.72;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.85;
  font-weight: 300;
  max-width: 620px;
}
.floating-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mark {
  position: absolute;
  font-family: 'Noto Serif KR', serif;
  color: var(--blue-warm);
  opacity: 0.18;
  font-size: clamp(60px, 8vw, 120px);
  line-height: 1;
}
.mark.m1 { top: 22%; right: 10%; color: var(--blue-warm); }
.mark.m2 { top: 50%; right: 22%; color: var(--pink-fade); opacity: 0.14; }
.mark.m3 { bottom: 18%; right: 6%; color: var(--gold-soft); opacity: 0.16; }
.mark.m4 { top: 36%; right: 36%; color: var(--bone); opacity: 0.08; font-size: clamp(40px, 5vw, 80px); }

/* artifacts */
.artifact-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.artifact {
  display: grid;
  grid-template-columns: 80px 200px 1fr;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease;
  align-items: start;
}
.artifact:hover {
  background: linear-gradient(90deg, rgba(58,90,138,0.08), transparent);
}
.artifact-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: var(--blue-warm);
  font-size: 14px;
  letter-spacing: 0.18em;
}
.artifact-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.artifact-tag {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pink-fade);
}
.artifact-date {
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  color: var(--gold-soft);
  opacity: 0.85;
}
.artifact-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--bone);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.artifact p {
  color: var(--bone);
  opacity: 0.7;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  max-width: 580px;
}

/* poetry */
.poem-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 720px;
}
.poem {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 24px;
  border-left: 1px solid var(--blue-warm);
}
.poem .ko-line,
.poem .ja-line {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--bone);
  letter-spacing: 0.04em;
  font-weight: 400;
}
.poem .ko-line { color: var(--pink-fade); opacity: 0.95; }
.poem .ja-line { color: var(--bone); opacity: 0.75; }
.poem .en-line {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--bone);
  opacity: 0.55;
  margin-top: 8px;
  line-height: 1.7;
}

/* leaves form */
.leaf-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  max-width: 760px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.leaf-field { display: flex; flex-direction: column; gap: 8px; }
.leaf-field.full { grid-column: 1 / -1; }
.leaf-field span {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-warm);
}
.leaf-field input,
.leaf-field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--bone);
  outline: none;
  transition: border-color 0.3s ease;
}
.leaf-field select { color: var(--bone); }
.leaf-field input::placeholder { color: rgba(224,228,234,0.3); }
.leaf-field input:focus,
.leaf-field select:focus { border-color: var(--pink-fade); }
.leaf-submit {
  grid-column: 1 / -1;
  justify-self: start;
  background: transparent;
  border: 1px solid var(--bone);
  color: var(--bone);
  padding: 14px 36px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.leaf-submit:hover {
  background: var(--pink-fade);
  border-color: var(--pink-fade);
  color: var(--midnight);
}

.leaf-list {
  list-style: none;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}
.leaf-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.leaf-entry .lname {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: var(--bone);
  font-size: 14px;
}
.leaf-entry .lline {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 300;
  color: var(--bone);
  opacity: 0.78;
}
.leaf-entry .ltag {
  font-family: 'Noto Serif KR', serif;
  color: var(--pink-fade);
  opacity: 0.85;
  font-size: 14px;
}

/* footer */
.site-footer {
  padding: 60px 36px 36px;
  border-top: 1px solid var(--line);
  z-index: 2;
  position: relative;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand-foot {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bone);
  margin-right: 14px;
}
.site-footer .ja,
.site-footer .ko {
  font-family: 'Noto Serif KR', serif;
  color: var(--pink-fade);
  opacity: 0.75;
  font-size: 14px;
}
.foot-meta {
  display: flex;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.5;
}

/* responsive */
@media (max-width: 720px) {
  .topbar { padding: 14px 18px; }
  .topnav { gap: 14px; }
  .topnav a { font-size: 10px; }
  .hero-foot { left: 18px; right: 18px; bottom: 24px; flex-direction: column; gap: 6px; align-items: flex-start; }
  section { padding: 80px 6vw; }
  .artifact { grid-template-columns: 1fr; gap: 8px; }
  .leaf-form { grid-template-columns: 1fr; }
  .leaf-entry { grid-template-columns: 1fr; gap: 4px; }
}
