@font-face {
  font-family: "fragile times";
  src: url("./Times New Roman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --text: 11.5pt;
  --cell: 22px;
  --col-gap: 24px;
  --row-gap: 24px;
  --calendar-height: 274px;
  --hairline: 0.5px;
  --stable-viewport-height: 100vh;
  --viewport-height: var(--stable-viewport-height);
  --stage-bottom: calc(var(--stable-viewport-height) * 0.2);
  --entry-bottom: calc(var(--stable-viewport-height) * 0.18);
  --image-max-tall: calc(var(--stable-viewport-height) * 0.86);
  --image-max-short: calc(var(--stable-viewport-height) * 0.774);
}

@supports (height: 100svh) {
  :root {
    --stable-viewport-height: 100svh;
  }
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  min-height: var(--viewport-height);
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "fragile times", "Times New Roman", Times, serif;
  font-size: var(--text);
  font-style: normal;
  font-weight: 400;
  line-height: 1.15;
}

a,
button {
  color: var(--black);
  font: inherit;
  font-style: normal;
  font-weight: 400;
}

a {
  text-decoration: none;
}

button {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
  scroll-margin-top: 20px;
}

.site-title {
  position: fixed;
  top: 27px;
  left: 28px;
  z-index: 30;
}

.site-title:hover,
.site-title:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: var(--hairline);
  text-underline-offset: 2px;
}

.index-toggle {
  position: fixed;
  bottom: 27px;
  left: 28px;
  z-index: 35;
  cursor: pointer;
}

.index-toggle:hover,
.index-toggle:focus-visible,
.is-index .index-toggle {
  text-decoration: underline;
  text-decoration-thickness: var(--hairline);
  text-underline-offset: 2px;
}

.calendar {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 20;
  width: calc((var(--cell) * 7) + (var(--col-gap) * 6));
  height: var(--calendar-height);
  transform: translate(-50%, -50%);
  text-align: left;
}

.month {
  display: grid;
  gap: 2px;
  justify-content: center;
  margin: 0 auto 20px;
  text-align: center;
}

.month-row {
  display: grid;
  grid-template-columns: var(--cell) minmax(48px, max-content) var(--cell);
  column-gap: 8px;
  align-items: center;
  justify-content: center;
}

.month-arrow {
  position: relative;
  width: var(--cell);
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.month-arrow.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, var(--cell));
  column-gap: var(--col-gap);
  row-gap: var(--row-gap);
  align-items: center;
  justify-content: center;
}

.weekdays {
  margin-bottom: 25px;
}

.weekdays span {
  display: block;
  width: max-content;
  margin: 0 auto;
  border-bottom: var(--hairline) solid currentColor;
  line-height: 0.95;
  text-align: center;
}

.days button,
.empty-day {
  position: relative;
  width: var(--cell);
  min-height: 1em;
  text-align: center;
}

.empty-content-day,
.empty-content-day:disabled {
  opacity: 1;
  pointer-events: none;
  user-select: none;
}

.is-today::before {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--black);
  content: "";
  transform: translateX(-50%);
}

.has-entry-day {
  color: var(--black);
  cursor: pointer;
}

.has-entry-day .day-number {
  color: var(--black);
}

.has-entry-day:hover .day-number,
.has-entry-day.is-active .day-number {
  box-shadow: 0 var(--hairline) 0 currentColor;
  line-height: 0.95;
}

.note {
  position: fixed;
  top: 31px;
  right: 28px;
  z-index: 25;
  width: 320px;
  text-align: right;
  opacity: 0;
  pointer-events: none;
}

.note time {
  display: block;
  margin-bottom: 18px;
}

.note [data-note-text] {
  line-height: 1.4;
}

.note [data-note-text] p {
  margin: 0;
}

.note [data-note-text] p + p {
  margin-top: 8px;
}

.has-entry .note {
  opacity: 1;
}

.stage {
  min-height: var(--viewport-height);
  padding-bottom: var(--stage-bottom);
}

.entry {
  min-height: var(--viewport-height);
  scroll-margin-top: 0;
}

.entry-collage {
  position: relative;
  width: 100%;
  min-height: 1460px;
  margin-bottom: var(--entry-bottom);
  padding: 0 0 150px;
}

.entry-collage img,
.entry-collage video {
  position: absolute;
}

.entry-collage .image-a {
  top: 0;
  left: 17.8vw;
  width: 31.6vw;
}

.entry-collage .image-b {
  top: 0;
  left: 51vw;
  width: 28.8vw;
}

.entry-collage .image-c {
  top: 700px;
  left: 17.8vw;
  width: 31.6vw;
}

.entry-collage .image-d {
  top: 700px;
  left: 51vw;
  width: 28.8vw;
}

.entry-columns-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 76vw;
  min-height: var(--viewport-height);
  margin: 0 0 var(--entry-bottom) 6vw;
}

.entry-columns-2 img,
.entry-columns-2 video {
  width: 100%;
  max-height: var(--image-max-tall);
  object-fit: contain;
}

.entry-columns-2 img + img,
.entry-columns-2 img + video,
.entry-columns-2 video + img,
.entry-columns-2 video + video {
  margin-top: 0;
}

.entry-columns-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 88vw;
  min-height: var(--viewport-height);
  margin: 0 0 var(--entry-bottom) 6vw;
}

.entry-columns-3 img,
.entry-columns-3 video {
  width: 100%;
  max-height: var(--image-max-short);
  object-fit: contain;
}

.entry-columns-1 {
  min-height: var(--viewport-height);
  margin-bottom: var(--entry-bottom);
}

.entry-columns-1 img,
.entry-columns-1 video {
  width: min(56vw, calc(100vw - 17.8vw - 390px));
  max-height: var(--image-max-tall);
  margin-left: 17.8vw;
  object-fit: contain;
}

.entry-columns-1 img + img,
.entry-columns-1 img + video,
.entry-columns-1 video + img,
.entry-columns-1 video + video {
  margin-top: 20px;
}

.is-landing .stage {
  display: none;
}

.index-view {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: none;
  gap: 24px;
  padding: 120px 28px 80px;
  overflow: auto;
  background: var(--white);
}

.is-index .index-view {
  display: grid;
}

.is-index .stage {
  visibility: hidden;
}

.is-index .calendar,
.is-index .note {
  opacity: 0;
  pointer-events: none;
}

.index-row {
  display: block;
}

.index-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.index-thumb {
  width: 9.2vw;
  cursor: pointer;
}

.index-thumb img,
.index-thumb video {
  width: 9.2vw;
  height: auto;
}

@media (max-width: 900px) {
  :root {
    --mobile-entry-top: 118px;
  }

  body {
    font-size: 10px;
  }

  .site-title {
    top: 18px;
    left: 16px;
  }

  .index-toggle {
    bottom: 18px;
    left: 16px;
  }

  .note {
    position: fixed;
    top: 18px;
    right: 16px;
    width: min(42vw, 220px);
    padding: 0;
    text-align: right;
  }

  .note time {
    margin-bottom: 8px;
  }

  .note [data-note-text] {
    line-height: 1.32;
  }

  .note [data-note-text] p + p {
    margin-top: 5px;
  }

  .has-entry .note {
    opacity: 1;
  }

  .calendar {
    width: calc((var(--cell) * 7) + (18px * 6));
    height: 255px;
  }

  .weekdays,
  .days {
    column-gap: 18px;
    row-gap: 21px;
  }

  .days button::after,
  .month-arrow::after,
  .index-toggle::after,
  .site-title::after {
    position: absolute;
    inset: -10px;
    content: "";
  }

  .entry-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 95vw;
    min-height: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 125px 0 8px;
  }

  .entry-collage img,
  .entry-collage video,
  .entry-collage .image-a,
  .entry-collage .image-b,
  .entry-collage .image-c,
  .entry-collage .image-d {
    position: static;
    width: 100%;
  }

  .entry-columns-1 {
    padding-top: var(--mobile-entry-top);
  }

  .entry-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 95vw;
    margin: 0 0 var(--entry-bottom);
    margin-left: auto;
    margin-right: auto;
    padding: var(--mobile-entry-top) 0 0;
  }

  .entry-columns-2 img,
  .entry-columns-2 video {
    width: 100%;
  }

  .entry-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 95vw;
    min-height: var(--viewport-height);
    margin: 0 auto var(--entry-bottom);
    padding: var(--mobile-entry-top) 0 0;
  }

  .entry-columns-3 img,
  .entry-columns-3 video {
    width: 100%;
    max-height: none;
  }

  .entry-columns-1 img,
  .entry-columns-1 video {
    width: 95vw;
    max-height: none;
    margin-left: auto;
    margin-right: auto;
  }

  .index-view {
    gap: 22px;
    padding: 90px 16px 70px;
  }

  .index-row {
    display: block;
  }

  .index-images {
    gap: 14px;
  }

  .index-thumb,
  .index-thumb img,
  .index-thumb video {
    width: 20.7vw;
  }
}
