* {
  box-sizing: border-box;
}

:root {
  --top-space: 52px;
  --side-space: 24px;
  --text-size: 8px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: #ddd;
  font-family: "Times New Roman", Times, serif;
  font-size: var(--text-size);
  line-height: 1.15;
  font-weight: normal;
}

a {
  color: #ddd;
  text-decoration: underline;
  font-weight: normal;
}

a:hover {
  color: #fff;
}

/* homepage */

body.home {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #000;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)),
    url("home.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.site {
  position: relative;
  min-height: 100vh;
}

.home-image {
  display: none;
}

.home-menu {
  position: fixed;
  right: var(--side-space);
  bottom: var(--side-space);
  z-index: 4;
  text-align: left;
  font-size: 10.5px;
  line-height: 1.15;
  font-weight: normal;
  color: #f4f4f4;
  text-transform: lowercase;
  text-shadow: none;
}

.home-menu h1 {
  margin: 0 0 18px 0;
  font-size: 10.5px;
  line-height: 1.15;
  font-weight: normal;
  text-transform: lowercase;
  text-shadow: none;
}

.home-menu nav a {
  display: block;
  margin-bottom: 4px;
  text-decoration: none;
  font-weight: normal;
  color: #f4f4f4;
  text-transform: lowercase;
  text-shadow: none;
}

.home-menu nav a::before {
  content: "> ";
}

.home-menu nav a:hover {
  text-decoration: none;
}

/* inner pages */

body.page {
  padding: var(--top-space) var(--side-space);
  line-height: 1.15;
}

.page main {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.page h1 {
  margin: 0 0 30px 0;
  font-size: var(--text-size);
  line-height: 1.15;
  font-weight: bold;
  text-transform: lowercase;
}

.page p {
  margin: 0 0 8px 0;
  line-height: 1.15;
}

.section-label {
  margin: 0 0 12px 0;
  font-size: var(--text-size);
  line-height: 1.15;
  font-weight: bold;
}

.writing-entry {
  margin-bottom: 8px;
  font-size: var(--text-size);
  line-height: 1.15;
}

/* publications */

.publication-section {
  margin-bottom: 28px;
}

.publication-section:last-child {
  margin-bottom: 0;
}

/* dispatches */

.dispatches-page {
  font-size: var(--text-size);
  line-height: 1.15;
}

.dispatch-year-fixed {
  position: fixed;
  top: var(--top-space);
  right: var(--side-space);
  font-size: 20px;
  line-height: 1;
  font-weight: bold;
  white-space: nowrap;
}

.dispatch-list {
  margin-top: 76px;
}

.dispatch {
  margin-bottom: 32px;
}

.dispatch h2 {
  margin: 0 0 10px 0;
  font-size: 10px;
  line-height: 1.15;
  font-weight: bold;
  text-transform: lowercase;
}

.dispatch p {
  margin: 0 0 8px 0;
  line-height: 1.15;
}

.dispatch .dispatch-time {
  margin: 0 0 2px 0;
  font-size: var(--text-size);
  line-height: 1.15;
  font-weight: bold;
}

.dispatch-prose {
  margin: 0 0 8px 0;
  line-height: 1.15;
}

.dispatch-indent {
  display: block;
  text-indent: 16px;
}

.dispatch-image {
  display: block;
  width: 40%;
  max-width: 320px;
  height: auto;
  margin: 0 0 8px 0;
}

/* misc */

.misc-tools {
  max-width: 360px;
}

.misc-tool {
  margin-bottom: 18px;
}

.tool-button {
  display: block;
  margin: 0 0 4px 0;
  padding: 0;
  border: none;
  background: none;
  color: #ddd;
  font-family: "Times New Roman", Times, serif;
  font-size: var(--text-size);
  line-height: 1.15;
  font-weight: normal;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.tool-button:hover {
  color: #fff;
}

.tool-output {
  margin: 4px 0 0 12px;
  font-size: var(--text-size);
  line-height: 1.15;
}

/* mmm food */

.mmm-minimal-page main {
  max-width: none;
  margin: 0;
  padding-bottom: 100px;
}

.mmm-minimal {
  padding-top: 0;
}

.mmm-corner-year {
  position: fixed;
  top: 54px;
  right: var(--side-space);
  z-index: 4;
  font-size: 19px;
  line-height: 1.15;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.mmm-banner {
  position: fixed;
  left: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  z-index: 3;
}

.mmm-top-banner {
  top: 18px;
}

.mmm-bottom-banner {
  bottom: 18px;
}

.mmm-banner-track {
  display: inline-block;
  padding-left: 0;
  font-size: 12px;
  line-height: 1.15;
  font-weight: normal;
  letter-spacing: 0.18em;
}

.mmm-banner-track-right {
  animation: mmm-scroll-right 24s linear infinite;
}

.mmm-banner-track-left {
  animation: mmm-scroll-left 42s linear infinite;
}

@keyframes mmm-scroll-right {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100vw);
  }
}

@keyframes mmm-scroll-left {
  from {
    transform: translateX(100vw);
  }

  to {
    transform: translateX(-100%);
  }
}

.mmm-section {
  margin-top: 64px;
  max-width: 420px;
}

.mmm-section .section-label {
  font-size: 9px;
}

.mmm-minimal-page .home-arrow {
  bottom: 48px;
}

/* back arrow */

.home-arrow {
  position: fixed;
  right: var(--side-space);
  bottom: var(--side-space);
  font-size: var(--text-size);
  line-height: 1.15;
  display: inline-block;
  transform: scaleX(2.2);
  transform-origin: right center;
  text-decoration: none;
}