:root {
  --blood: #5b080d;
  --brown: #6f3029;
  --ink: #211612;
  --paper: #f1eee3;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #090909 url("assets/theme/backgroundblack.png") repeat;
  font: 15px/1.32 "Architects Daughter", cursive;
}

a { color: var(--blood); }

.page-shell {
  display: grid;
  grid-template-columns: 578px 310px;
  gap: 28px;
  width: 946px;
  max-width: calc(100% - 28px);
  margin: 24px auto 60px;
}

.notebook {
  position: relative;
  padding-top: 54px;
  background:
    url("assets/theme/notebook-top.png") top center/100% 96px no-repeat,
    url("assets/theme/notebookbackgroundbrownedges.png") center top/100% auto repeat-y;
  box-shadow: 0 4px 16px rgba(0,0,0,.7);
}

.notebook::after {
  display: block;
  height: 90px;
  content: "";
  background: url("assets/theme/notebookbottombrownedge.png") bottom center/100% 90px no-repeat;
}

.notebook-header {
  padding: 24px 0 5px;
}

.notebook-header img {
  display: block;
  width: 100%;
  height: auto;
}

.view-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.post {
  position: relative;
  margin: 0 0 8px;
}

.post-inner {
  position: relative;
  padding: 36px 67px 48px;
}

.post-inner > time { display: none; }

.post-title {
  margin: 0 0 15px;
  font-size: 26px;
  font-weight: normal;
  text-transform: uppercase;
}
.post-title a { color: #1d1715; text-decoration: none; }
.post-title a:hover { color: var(--blood); }

.date-badge {
  position: absolute;
  top: 36px;
  left: -5px;
  z-index: 2;
  width: 45px;
  min-height: 56px;
  padding: 9px 5px 6px;
  color: white;
  background: var(--blood);
  clip-path: polygon(0 0, 100% 7%, 92% 100%, 0 91%);
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-2deg);
  font-family: "Special Elite", serif;
}
.date-badge span { display: block; font-size: 16px; line-height: 1; }
.date-badge small { font-size: 10px; }

.post-content { overflow-wrap: anywhere; }
.post-content p { margin: 0 0 14px; }
.post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px auto;
  border: 9px solid #f8f6ef;
  box-shadow: 0 3px 7px rgba(47,25,18,.35);
  transform: rotate(-.25deg);
}
.post-photo { margin: 16px 0; }
.post-content iframe {
  width: 100%;
  height: 290px;
  border: 0;
}
.post-content audio { width: 100%; }
.post-content blockquote {
  position: relative;
  margin: 18px 0;
  padding: 32px 40px;
  color: #3c2722;
  background: rgba(255,255,255,.34);
  font-size: 23px;
  transform: rotate(-.4deg);
}
.post-content blockquote::before {
  position: absolute;
  top: -10px;
  left: 44%;
  width: 72px;
  height: 23px;
  content: "";
  background: url("assets/theme/tape.png") center/contain no-repeat;
}
.quote-source { text-align: right; }

.post-footer {
  padding-top: 13px;
  border-top: 1px dashed rgba(88,53,43,.25);
  font-family: "Special Elite", serif;
  font-size: 10px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.post-tags a::before { content: "#"; }
.post-tags a,
.post-notes { color: #73423a; text-decoration: none; }

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 62px 0;
  padding: 15px 19px;
  border: 1px dashed rgba(82,49,41,.35);
  background: rgba(255,255,255,.22);
  font-family: "Special Elite", serif;
}
.pagination a { text-decoration: none; }
.pagination .disabled { opacity: .35; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 30px 58px;
}
.archive-month {
  padding: 16px 18px;
  background: rgba(255,255,255,.28);
  transform: rotate(-.35deg);
}
.archive-month:nth-child(even) { transform: rotate(.4deg); }
.archive-month h2 {
  margin: 0 0 10px;
  color: var(--blood);
  font-family: "Special Elite", serif;
  font-size: 17px;
}
.archive-month ul { margin: 0; padding-left: 18px; }
.archive-month li { margin-bottom: 7px; }

.side-column {
  align-self: start;
  display: grid;
  gap: 22px;
}

.image-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.image-nav a {
  display: block;
  height: 37px;
  overflow: hidden;
}
.image-nav img {
  display: block;
  width: auto;
  height: 75px;
  max-width: 100%;
  transition: transform .15s ease;
}
.image-nav a:hover img { transform: translateY(-50%); }

.found-note {
  min-height: 250px;
  padding: 12px;
  color: #17100e;
  background: #f1eee4 url("assets/theme/infobackgroundcream.png") repeat;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0,0,0,.55);
  font: 13px/1.17 "Special Elite", serif;
  transform: rotate(.25deg);
}
.found-note .avatar {
  float: left;
  width: 96px;
  height: 96px;
  margin: 0 11px 5px 0;
  object-fit: cover;
  border: 5px solid #eee8da;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.found-note p { margin: 0 0 8px; }

.search-note {
  padding: 17px;
  color: #211612;
  background: #ede8db;
  box-shadow: 0 2px 5px rgba(0,0,0,.5);
  transform: rotate(-.35deg);
}
.search-note label {
  display: block;
  margin-bottom: 9px;
  font-family: "Special Elite", serif;
}
.search-note div { display: flex; }
.search-note input,
.search-note button {
  border: 1px solid #9f8d79;
  padding: 8px;
  font: inherit;
}
.search-note input { width: 100%; min-width: 0; }
.search-note button { color: white; background: var(--blood); }

.steam-link {
  padding: 16px 20px;
  color: #eee7dc;
  border: 1px solid #583029;
  background: #170e0d url("assets/theme/leatherblack.png") repeat;
  text-decoration: none;
  text-align: center;
  font-family: "Special Elite", serif;
}
.steam-link:hover { color: white; border-color: #8d4940; }

.empty-state {
  margin: 35px 60px;
  padding: 30px;
  background: rgba(255,255,255,.25);
  text-align: center;
}

body > footer {
  padding: 25px;
  color: #6c625d;
  text-align: center;
  font: 11px "Special Elite", serif;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: minmax(0, 578px);
    justify-content: center;
  }
  .side-column {
    grid-row: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .image-nav,
  .steam-link { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .page-shell { max-width: calc(100% - 10px); margin-top: 8px; }
  .side-column { grid-template-columns: 1fr; }
  .found-note,
  .search-note,
  .steam-link,
  .image-nav { grid-column: auto; }
  .image-nav { justify-content: center; }
  .notebook { padding-top: 38px; }
  .notebook-header { padding-top: 14px; }
  .post-inner { padding: 28px 34px 40px 49px; }
  .date-badge { top: 28px; left: 0; width: 41px; }
  .post-title { font-size: 22px; }
  .post-content iframe { height: 220px; }
  .pagination { margin-left: 34px; margin-right: 34px; }
  .archive-grid { grid-template-columns: 1fr; padding: 25px 34px; }
}
