:root {
  --bg: #fff;
  --ink: #002fa7;
  --muted: #3156b7;
  --line: #e7e7e7;
  --soft: #f4f4f4;
  --measure: 620px;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Futura, "Futura PT", "Avenir Next", Avenir, "Century Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

p a,
.archive a,
.plain-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

p a:hover,
.archive a:hover,
.plain-list a:hover {
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 3vh;
  background: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.site-shell {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  margin: 1.35rem 0 1.25rem;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
}

nav {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

nav a {
  display: inline-block;
  font-size: 1.02rem;
}

nav a:not(:last-child)::after {
  content: "/";
  display: inline-block;
  margin-left: 0.44rem;
  padding-right: 0.32rem;
  font-style: normal;
}

nav a.is-active {
  font-style: italic;
}

main {
  min-height: 100vh;
  padding: calc(3vh + 5.7rem) 20px 3vh;
}

.view {
  display: none;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
}

.view.is-active {
  display: block;
}

.view--home.is-active {
  display: flex;
  min-height: calc(100vh - 3vh - 5.7rem - 3vh);
  flex-direction: column;
  justify-content: center;
  max-width: 1080px;
}

.home-stage {
  display: flex;
  min-height: calc(100vh - 3vh - 5.7rem - 3vh);
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  padding-top: 3vh;
}

.hello-list {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  gap: 0.42rem;
  text-align: center;
}

.hello-list li {
  list-style: none;
  font-family: Futura, "Futura PT", "Avenir Next", Avenir, "Century Gothic", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.02;
}

.home-coverflow {
  width: 100%;
  padding-bottom: 0.4rem;
  text-align: center;
  user-select: none;
}

.home-kicker,
.coverflow-title {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.2;
}

.coverflow-title {
  min-height: 1.2rem;
  margin-top: 0.35rem;
  color: var(--ink);
}

.coverflow {
  position: relative;
  overflow: hidden;
  height: clamp(160px, 23vh, 240px);
  margin-top: 0.5rem;
  cursor: grab;
  perspective: 1000px;
  touch-action: pan-y;
}

.coverflow.is-dragging {
  cursor: grabbing;
}

.coverflow-card {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  z-index: var(--z);
  width: clamp(96px, 15vw, 170px);
  aspect-ratio: 1 / 1;
  transform: translateX(calc(-50% + var(--x))) rotateY(var(--rotate)) scale(var(--scale));
  transform-style: preserve-3d;
  opacity: var(--opacity);
  transition: transform 260ms ease, opacity 260ms ease, filter 260ms ease;
  filter: saturate(calc(0.7 + var(--scale) * 0.35));
}

.coverflow-card img {
  height: 100%;
  border: 1px solid rgba(0, 47, 167, 0.18);
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 47, 167, 0.18);
  object-fit: cover;
  -webkit-box-reflect: below 8px linear-gradient(transparent 56%, rgba(255, 255, 255, 0.28));
}

.slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.slider-list {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  width: 100%;
  opacity: 0;
  transition: opacity 350ms cubic-bezier(0.455, 0.03, 0.515, 0.955), visibility 350ms;
}

.slide.is-current {
  position: relative;
  visibility: visible;
  opacity: 1;
}

.slide-link {
  display: block;
  line-height: 0;
}

.slide img {
  max-height: min(68vh, 660px);
  object-fit: contain;
}

.slider-button {
  position: absolute;
  z-index: 3;
  top: 0;
  width: 34%;
  height: 100%;
}

.slider-button--prev {
  left: -20px;
  cursor: w-resize;
}

.slider-button--next {
  right: -20px;
  cursor: e-resize;
}

.captions {
  min-height: 5.2rem;
  margin-top: 1rem;
  text-align: center;
}

.caption {
  display: none;
}

.caption.is-current {
  display: block;
}

.cover-entry .caption {
  display: block;
}

h2 {
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
}

h2 span {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
}

.caption h2,
.article-header h2,
.text-page h2,
.archive h2 {
  margin-bottom: 1rem;
}

.caption p,
figcaption,
.dek,
.eyebrow,
.ratings,
.archive h3,
.archive p,
.plain-list {
  font-size: 0.98rem;
  line-height: 1.35;
}

.caption p,
figcaption,
.dek,
.eyebrow {
  color: var(--muted);
}

.article {
  padding-bottom: 4rem;
}

.collection {
  position: relative;
}

.collection > .article {
  display: none;
}

.collection > .article.is-current {
  display: block;
}

.collection-button {
  position: absolute;
  z-index: 5;
  top: calc((100vh - 3vh - 5.7rem - 3vh) / 2);
  width: 2.2rem;
  height: 2.2rem;
  transform: translateY(-50%);
  color: var(--ink);
  font-family: Futura, "Futura PT", "Avenir Next", Avenir, "Century Gothic", sans-serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
}

.collection-button--prev {
  left: -3.2rem;
}

.collection-button--next {
  right: -3.2rem;
}

.cover-entry {
  display: flex;
  min-height: calc(100vh - 3vh - 5.7rem - 3vh);
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.cover-entry__button {
  display: block;
  width: min(100%, 560px);
  margin: 0 auto;
  line-height: 0;
}

.cover-entry__button img {
  aspect-ratio: 1 / 1;
  max-height: min(68vh, 620px);
  border: 1px solid rgba(0, 47, 167, 0.16);
  background: #fff;
  box-shadow: 0 22px 64px rgba(0, 47, 167, 0.15);
  object-fit: cover;
}

.cover-entry__button:hover img {
  transform: scale(1.018);
}

.cover-entry__button img {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.article-content {
  display: none;
  padding-top: 2rem;
}

.article-content.is-open {
  display: block;
}

.article-header {
  margin: 2rem auto 2rem;
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.55rem;
  letter-spacing: 0.03em;
}

.ratings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.1rem;
  margin-top: 1.1rem;
}

.ratings div {
  display: inline-flex;
  gap: 0.35rem;
}

.ratings dt {
  color: var(--muted);
}

.ratings dd {
  font-style: italic;
}

.article-image {
  margin: 0 auto 1.35rem;
  text-align: center;
}

.article-image figcaption {
  margin-top: 0.75rem;
}

.article-image--small {
  max-width: 340px;
  margin-top: 1.8rem;
  margin-bottom: 1.8rem;
}

.article-body {
  max-width: 560px;
  margin: 0 auto;
  text-align: justify;
}

.article-body p {
  margin-bottom: 1.05rem;
}

.translation {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
  text-align: left;
}

.article-body p + .translation {
  margin-top: -0.45rem;
  margin-bottom: 1.35rem;
}

.listen-links {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.text-page,
.archive {
  padding: 3rem 0 4rem;
  text-align: center;
}

.text-page p {
  margin: 0 auto 1.25rem;
  max-width: 540px;
  text-align: justify;
}

.plain-list {
  list-style: none;
}

.archive-year {
  margin-top: 1.75rem;
}

.archive h3 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
}

.archive p {
  margin-bottom: 1.2rem;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

@media (min-width: 760px) and (min-height: 760px) {
  body {
    font-size: calc(16px + 0.24vh);
  }

  .view,
  .site-shell {
    max-width: min(var(--measure), calc(100vh - 8rem));
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.68;
  }

  .site-header {
    padding-top: 2vh;
  }

  .logo {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
  }

  nav {
    margin-bottom: 1.15rem;
  }

  nav a {
    font-size: 0.98rem;
  }

  main {
    padding-top: calc(2vh + 5.1rem);
  }

  .view--home.is-active {
    min-height: calc(100vh - 2vh - 5.1rem - 3vh);
  }

  .home-stage {
    min-height: calc(100vh - 2vh - 5.1rem - 3vh);
    gap: 0.85rem;
    padding-top: 1vh;
  }

  .hello-list {
    min-height: 0;
  }

  .hello-list li {
    font-size: clamp(2.2rem, 12vw, 4.4rem);
  }

  .cover-entry {
    min-height: calc(100vh - 2vh - 5.1rem - 3vh);
  }

  .collection-button {
    top: calc((100vh - 2vh - 5.1rem - 3vh) / 2);
    width: 2rem;
    height: 2rem;
    font-size: 1.8rem;
  }

  .collection-button--prev {
    left: -0.4rem;
  }

  .collection-button--next {
    right: -0.4rem;
  }

  .slide img {
    max-height: 58vh;
  }

  .cover-entry__button img {
    max-height: 58vh;
  }

  .coverflow {
    height: 150px;
  }

  .coverflow-card {
    width: 94px;
  }

  .slider-button {
    width: 28%;
  }

  .article-body {
    text-align: left;
  }
}
