/* ==========================================================
   HYPOSTALOGY — SHARED STYLESHEET
   Every page (home, section lists, story pages) loads this
   one file. Change the look here, once, for the whole site.
========================================================== */

@font-face {
  font-family: "Courier Prime";
  src: url("CourierPrime-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Courier Prime";
  src: url("CourierPrime-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #fff;
  color: #000;
}

body {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.25;
  overflow-x: hidden;
}

/* ================================
   PAGE FRAME (used on every page)
================================ */

.page {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  padding: 24px;
}

/* ================================
   BRAND — fixed in the same spot
   on every single page. "hypostalogy"
   is the only bold word, ever.
================================ */

.brand {
  position: absolute;
  top: 24px;
  left: 24px;
}

.brand a {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  display: block;
  width: fit-content;
  transition: text-decoration-color 0.05s ease;
}

.brand a:hover {
  text-decoration: underline;
}

.brand a.clicked {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.brand-title {
  font-weight: 700;
}

.brand-section {
  font-weight: 400;
  margin-top: 2px;
}

/* ================================
   HOME PAGE — LEFT NAVIGATION
================================ */

.left {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 48%;
}

.title {
  font-weight: 700;
  margin: 0 0 42px 0;
  font-size: 15px;
  line-height: 1;
}

.navigation {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.navigation a {
  color: #000;
  text-decoration: none;
  display: block;
  width: fit-content;
  cursor: pointer;
  transition: text-decoration-color 0.05s ease;
}

.navigation a:hover {
  text-decoration: underline;
}

.navigation a.clicked {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.navigation a:nth-child(1) { margin-left: 0; }
.navigation a:nth-child(2) { margin-left: 9vw; }
.navigation a:nth-child(3) { margin-left: 18vw; }
.navigation a:nth-child(4) { margin-left: 27vw; }

/* ================================
   HOME PAGE — DRAMATIC STRUCTURE
================================ */

.drama {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 42%;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 15px;
  line-height: 1.25;
  transition: opacity 0.4s ease;
}

.drama.fade {
  opacity: 0;
}

.time { margin-bottom: 34px; }
.act { margin-bottom: 24px; }
.act-title { margin-bottom: 2px; }
.act-line { margin: 0; }

/* ================================
   SECTION PAGE — TITLE LIST,
   CENTERED
================================ */

.titles {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding: 24px;
}

.titles a {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  max-width: 60ch;
  transition: text-decoration-color 0.05s ease;
}

.titles a:hover {
  text-decoration: underline;
}

.titles a.clicked {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.titles .empty {
  color: #000;
  max-width: 60ch;
}

/* ================================
   STORY PAGE — THE TEXT ITSELF
================================ */

.story {
  max-width: 60ch;
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 100px;
}

.story h1 {
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 42px 0;
  line-height: 1.25;
}

.story p {
  margin: 0 0 18px 0;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 700px) {

  .page {
    padding: 20px;
  }

  .left {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }

  .drama {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    min-height: auto;
    margin-top: 80px;
  }

  .navigation a:nth-child(1),
  .navigation a:nth-child(2),
  .navigation a:nth-child(3),
  .navigation a:nth-child(4) {
    margin-left: 0;
  }

  .navigation a:nth-child(2) { margin-left: 20vw; }
  .navigation a:nth-child(3) { margin-left: 40vw; }
  .navigation a:nth-child(4) { margin-left: 60vw; }

  .titles {
    padding: 20px;
    gap: 32px;
  }

  .story {
    padding-top: 80px;
  }

}
