:root {
  color-scheme: light;
  --snow: #eeeffb;
  --ink: #222029;
  --muted: #53505c;
  --accent: #90463f;
  --serif: "Songti SC", "Noto Serif CJK SC", STSong, SimSun, serif;
  --sans: system-ui, "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--serif);
}

button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

a:focus-visible, button:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }

.landscape {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.landscape video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% center;
}

.masthead {
  position: absolute;
  inset: clamp(22px, 4vw, 58px) clamp(25px, 5vw, 76px) auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.masthead h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .28em;
}

.masthead h1 a { color: inherit; text-decoration: none; }
.masthead h1 a:hover, .archive-link:hover { color: var(--accent); }

.motion {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgb(83 80 92 / 26%);
  border-radius: 50%;
  background: rgb(238 239 251 / 72%);
  backdrop-filter: blur(8px);
  color: var(--muted);
}

.motion:hover { border-color: var(--accent); background: #eeeffb; color: var(--accent); }
.play-icon, .motion.is-paused .pause-icon { display: none; }
.motion.is-paused .play-icon { display: inline; }

.home {
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding: 92px 6vw 64px 61vw;
}

.reading { max-width: 32rem; }

.eyebrow, .meta, .archive-link {
  font-family: var(--sans);
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
}

.titles {
  list-style: none;
  margin: 0;
  padding: 0;
}

.titles {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  height: clamp(300px, 45svh, 420px);
}

.entry {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  text-align: left;
}

.entry-title {
  display: block;
  color: inherit;
  font-size: clamp(20px, 2.25vw, 39px);
  line-height: 1.22;
  letter-spacing: -.025em;
  text-decoration: none;
}

.entry-title:hover { color: var(--accent); }
.entry :is(.entry-title, .meta) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { font-size: 11px; letter-spacing: .08em; }

.archive-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
  letter-spacing: .16em;
  text-decoration: none;
  border-bottom: 1px solid #30283340;
}

@media (max-width: 740px) and (orientation: portrait) {
  .landscape { position: absolute; height: clamp(250px, 44svh, 460px); }
  .landscape video { object-position: 13% center; }
  .landscape::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 72px;
    background: linear-gradient(transparent, var(--snow));
  }
  .home {
    display: block;
    padding: clamp(242px, 42svh, 446px) 8vw 32px;
  }
  .reading { max-width: 26rem; margin: auto; }
  .titles { height: 292px; }
  .entry-title { font-size: 26px; }
  .eyebrow { margin-bottom: 16px; }
}

@media (max-height: 510px) and (orientation: landscape) {
  .home { padding-top: 50px; padding-bottom: 14px; }
  .titles { height: 232px; }
  .eyebrow { margin-bottom: 12px; }
  .entry { gap: 3px; }
}
