/* 夕凪 — 日没に立ち会う。語らない。 */
:root { --ink: #efe4cd; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body { font-family: "Shippori Mincho", serif; color: var(--ink); background: #0d0b09; }

#sky { position: fixed; inset: 0; transition: background 4s linear; }
#sun {
  position: fixed; left: 50%; width: 42vmin; height: 42vmin; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(255, 236, 200, .55), rgba(255, 210, 160, .18) 45%, transparent 70%);
  transition: top 4s linear, opacity 4s linear;
}
.grain { position: fixed; inset: -60px; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }

.mark {
  position: fixed; top: 26px; left: 30px;
  font-family: "Yuji Syuku", serif; font-size: 19px; letter-spacing: .5em;
  opacity: .55; pointer-events: none; user-select: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
}

.stage {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; text-align: center;
}
.line { font-size: clamp(17px, 2.6vw, 24px); letter-spacing: .34em; text-indent: .34em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .4); transition: opacity 2s ease; }
.sub { font-size: 12px; letter-spacing: .3em; text-indent: .3em; opacity: .6;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .4); }
.keep {
  margin-top: 10px; background: none; border: 1px solid rgba(239, 228, 205, .3);
  border-radius: 999px; padding: 10px 26px; cursor: pointer;
  font-family: "Shippori Mincho", serif; font-size: 13px; letter-spacing: .26em; text-indent: .26em;
  color: var(--ink); opacity: .8; transition: opacity .4s, border-color .4s;
}
.keep:hover { opacity: 1; border-color: rgba(239, 228, 205, .6); }

.place { position: fixed; right: 30px; bottom: 24px; font-size: 11px; letter-spacing: .3em; opacity: .5; }

/* 昼は空が明るいので、文字は墨色に(暮れとともに生成りへ還る) */
body[data-phase="day"] { --ink: #3a3226; }
body[data-phase="day"] .line, body[data-phase="day"] .sub,
body[data-phase="day"] .mark, body[data-phase="day"] .place { text-shadow: none; }
.line, .sub, .mark, .place, .keep { transition: color 4s linear, text-shadow 4s linear; }
