/* ==========================================================
   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;
  /*
    Pushes "prose/proza" down to roughly the height of
    "Act III" in the drama column on the right, instead
    of sitting immediately under the title. "prose/proza"
    still lines up horizontally with "hypostalogy" above
    it (same left edge) — only its vertical position moved.
  */
  margin-top: 123px;
}

.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
================================ */

/*
  The whole block — "24/7" and all five acts together —
  starts around the 3/4 mark of the page, well separated
  from the left-hand navigation text.
*/
.drama {
  position: absolute;
  top: 24px;
  left: 75vw;
  right: 24px;
  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; }

/* ================================
   RUNNING TICKER — one line of
   random sentences pulled from the
   texts, scrolling right to left,
   fixed 3/4 of the way down the page.
================================ */

.ticker {
  position: fixed;
  top: 75vh;
  left: 0;
  width: 100vw;
  overflow: hidden;
  white-space: nowrap;
  background: #fff;
  padding: 10px 0;
  z-index: 20;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 120s linear infinite;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-track a {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  transition: text-decoration-color 0.05s ease;
}

.ticker-track a:hover {
  text-decoration: underline;
}

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

.ticker-sep {
  font-weight: 700;
  margin: 0 12px;
}

/* ================================
   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;
  font-weight: 700;
  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;
}

/* ================================
   PROPHETS/PROROCY GENERATOR
================================ */

.generate-trigger {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  transition: text-decoration-color 0.05s ease;
}

.generate-trigger:hover {
  text-decoration: underline;
}

.generate-trigger.clicked {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.generated-text {
  text-align: left;
  max-width: 60ch;
  margin: 0;
}

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

.upload-date {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #000;
}

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

.story h1 {
  font-size: 15px;
  font-weight: 700;
  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%;
  }

  .navigation {
    margin-top: 0;
  }

  .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; }

  .ticker {
    top: auto;
    bottom: 0;
  }

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

  .story {
    padding-top: 80px;
  }

}
