/* ============================================================
   Slowmorn Studio — home
   Hyper-minimal, one screen, no scroll. Own sheet so the shared
   style.css (privacy, terms, app pages) stays untouched.
   ============================================================ */

:root {
  --paper:     #f8f8f9;
  --ink:       #22242b;
  --ink-soft:  #565a63;
  --ink-faint: #8d909a;
  --line:      #dededf;
  --accent:    #6f7888;

  --glass:        rgba(255,255,255,0.42);
  --glass-hover:  rgba(255,255,255,0.68);
  --glass-edge:   rgba(255,255,255,0.85);
  --glass-shadow: 0 1px 0 rgba(255,255,255,0.9) inset,
                  0 10px 30px -14px rgba(34,36,43,0.22);

  --gutter: clamp(20px, 4vw, 72px);
  --ease: cubic-bezier(.22, .68, .15, 1);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

::selection { background: rgba(111,120,136,0.20); }

a { color: inherit; text-decoration: none; }

/* two soft slate glows — just enough behind the glass for it to read */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.ambient span:first-child {
  width: 46vw; height: 46vw;
  top: -18vw; right: -10vw;
  background: rgba(120,128,144,0.20);
}
.ambient span:last-child {
  width: 40vw; height: 40vw;
  bottom: -20vw; left: -12vw;
  background: rgba(112,120,136,0.14);
}

/* ---------- one screen ---------- */
.page {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--gutter);
}

/* top bar */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(20px, 3.2vh, 36px);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* glass pill */
.glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.glass:hover { background: var(--glass-hover); transform: translateY(-1px); }

/* centre mark */
.center {
  display: grid;
  place-content: center;
  text-align: center;
}
h1 {
  font-weight: 500;
  font-size: clamp(20px, 4.2vw, 68px);
  line-height: 1;
  letter-spacing: 0.14em;
  /* tracking also trails the last letter; pull it back so it centres true */
  margin-right: -0.14em;
}

/* works — just the names, small, under the title */
.works {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 2.4vw, 36px);
  margin-top: clamp(20px, 3.2vh, 32px);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.works a {
  color: var(--ink-faint);
  transition: color .3s var(--ease);
}
.works a:hover { color: var(--ink); }

/* bottom line */
/* copyright · contact · (empty) — equal side columns keep Contact centred */
.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0 clamp(18px, 3vh, 30px);
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- entrance ---------- */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.1s var(--ease) forwards;
}
.d2 { animation-delay: .15s; }
.d3 { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .works { font-size: 12px; }
}
