:root {
  --sand: #b7a16f;
  --sand-light: #e9e1cf;
  --ink: #45474c;
  --muted: #c7baa2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #ece4d5 url("assets/theme/8c2c06751f4fbe4fb66dda90af4a72e16716f5fa.jpg") repeat;
  font: 14px/1.5 "ABeeZee", sans-serif;
}

a { color: inherit; }

.hero {
  position: relative;
  overflow: hidden;
  background: #7bd8f6 url("assets/theme/1e62255d81b2976d6bc5910055b2106a38c824e6.jpg") center/cover;
}

.hero a,
.hero img {
  display: block;
  width: 100%;
}

.hero img {
  height: min(50vw, 640px);
  object-fit: cover;
  object-position: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 40px;
  color: white;
  background: #b19e71 url("assets/theme/70798d9c7901b4ee3823c09136750f138b3a0d0b.jpg") repeat;
  box-shadow: 0 2px 8px rgba(79,67,46,.16);
}

.topbar > div {
  display: flex;
  align-items: center;
  width: min(1000px, calc(100% - 28px));
  height: 100%;
  margin: auto;
}

.topbar a {
  margin-left: 18px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
}
.topbar a:hover { color: white; }
.topbar .home { margin-left: 0; font-size: 16px; }
.nav-spacer { flex: 1; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 230px;
  gap: 50px;
  width: min(1000px, calc(100% - 28px));
  margin: 45px auto 65px;
}

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

.post {
  position: relative;
  margin-bottom: 40px;
  border-radius: 9px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 3px rgba(91,75,50,.12);
}

.post-inner {
  padding: 65px 170px 55px 50px;
  min-height: 210px;
}

.post-inner > time {
  position: absolute;
  top: 68px;
  right: 48px;
  width: 110px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
}

.post-title {
  margin: 0 0 25px;
  color: #6e614a;
  font-size: 25px;
  font-weight: normal;
}
.post-title a { text-decoration: none; }
.post-title a:hover { color: #aa9262; }

.post-content { overflow-wrap: anywhere; }
.post-content p { margin: 0 0 18px; }
.post-content a { color: #92805c; }
.post-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto 18px;
}
.post-photo { margin: 0; }
.post-content iframe {
  width: 100%;
  height: 290px;
  border: 0;
}
.post-content audio { width: 100%; }
.post-content blockquote {
  margin: 18px 0;
  padding: 18px 24px;
  border-left: 4px solid #cdbb92;
  background: #f8f5ef;
}

.post-footer {
  position: absolute;
  top: 105px;
  right: 48px;
  width: 120px;
  color: #c8bba4;
  font-size: 10px;
  text-transform: uppercase;
}

.post-tags {
  margin: 15px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #eee8dc;
  list-style: none;
}
.post-tags li { margin-bottom: 5px; }
.post-tags a,
.post-notes { color: #c0b49f; text-decoration: none; }
.post-tags a:hover,
.post-notes:hover { color: #9a845b; }
.post-notes { display: inline-block; margin-top: 7px; }

.date-badge { display: none; }

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

.sidebar section,
.sidebar form {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 3px rgba(91,75,50,.1);
}

.prequel img {
  display: block;
  width: 100%;
  height: auto;
}
.prequel p { margin: 0; padding: 18px; }
.prequel a { color: #97835b; }

.about-card,
.links-card,
.search-card { padding: 22px; }
.sidebar h2 {
  margin: 0 0 14px;
  color: #8c7853;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}
.about-card p { margin: 0; color: #76736d; font-size: 12px; }

.search-card label {
  display: block;
  margin-bottom: 9px;
  color: #8c7853;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
}
.search-card div { display: flex; }
.search-card input {
  width: 100%;
  min-width: 0;
  padding: 9px;
  border: 1px solid #e7e0d2;
  font: inherit;
}
.search-card button {
  width: 38px;
  border: 0;
  color: white;
  background: #b39f72;
}

.links-card { display: grid; gap: 8px; }
.links-card h2 { margin-bottom: 7px; }
.links-card a {
  color: #8b805f;
  text-decoration: none;
  font-size: 12px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  padding: 18px 25px;
  border-radius: 8px;
  color: #8f7b56;
  background: rgba(255,255,255,.94);
}
.pagination a { text-decoration: none; }
.pagination .disabled { opacity: .35; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.archive-month {
  padding: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
}
.archive-month h2 {
  margin: 0 0 12px;
  color: #927c52;
  font-size: 17px;
}
.archive-month ul { margin: 0; padding-left: 18px; }
.archive-month li { margin-bottom: 7px; }
.archive-month a { color: #77736c; }

.empty-state {
  padding: 35px;
  border-radius: 8px;
  background: white;
  text-align: center;
}

body > footer {
  padding: 24px;
  color: #aa9c81;
  background: rgba(255,255,255,.6);
  text-align: center;
  font-size: 11px;
}

@media (max-width: 850px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  .hero img { height: 58vw; }
  .topbar a { margin-left: 12px; font-size: 9px; }
  .layout { width: min(100% - 18px, 720px); margin-top: 20px; }
  .sidebar { grid-template-columns: 1fr; }
  .prequel { display: none; }
  .post-inner { padding: 38px 24px 35px; }
  .post-inner > time {
    position: static;
    width: auto;
    margin-bottom: 12px;
  }
  .post-footer {
    position: static;
    width: auto;
    margin-top: 28px;
  }
  .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
  }
  .post-content iframe { height: 220px; }
  .archive-grid { grid-template-columns: 1fr; }
}
