@font-face {
  font-family: Nightingale;
  src: url("/DTNightingale-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

:root {
  color-scheme: dark;
  --ink: #f7f3e8;
  --mute: #d8cfbe;
  --bg: #111;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100svh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.home {
  display: grid;
  place-items: center;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
}

main {
  position: relative;
  text-align: center;
  width: min(40rem, 100%);
}

.mark,
nav a,
.bar a,
.posts a {
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 400;
}

h1 {
  margin: 0;
  font-family: Nightingale, serif;
  font-weight: 300;
  font-size: clamp(3.2rem, 16vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--ink);
  -webkit-text-stroke: 0.55px currentColor;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.5rem;
  margin-top: 1.6rem;
}

.mark {
  margin: 0 0 0.2rem;
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  letter-spacing: 0.04em;
  color: var(--ink);
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

body.list {
  display: block;
  min-height: 100dvh;
}

body.list main {
  width: min(34rem, 100%);
  margin: 0 auto;
  padding: 2.75rem 1.35rem 4rem;
  text-align: left;
}

.posts,
.posts li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.posts {
  display: grid;
  gap: 1.35rem;
  margin: 0;
  width: 100%;
}

.posts a,
.posts a:visited {
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(1.2rem, 2.6vw, 1.4rem);
  line-height: 1.35;
}

.posts a:hover {
  color: var(--mute);
}

.bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #2a2a2a;
}

.bar a.word,
.bar a.word:visited {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.bar nav {
  margin: 0;
  gap: 1rem;
  justify-content: flex-end;
}

body.embed {
  display: flex;
  flex-direction: column;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
}

body.play {
  display: flex;
  flex-direction: column;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

body.play .bar {
  flex: 0 0 auto;
  background: var(--bg);
}

body.play iframe {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: var(--bg);
}

body.post {
  padding-bottom: 4rem;
}

body.post .bar {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}

@media (max-height: 520px) {
  body.home h1 {
    font-size: clamp(2.4rem, 22vh, 5rem);
  }

  body.list {
    padding-top: 1.5rem;
  }
}

@media (max-width: 520px) {
  nav a,
  .bar a.word {
    letter-spacing: 0;
  }
}
