:root {
  --bg-main: #f4e7d7;
  --bg-post: #f6ebdd;
  --bg-sidebar: #d9cec2;
  --bg-banner: #4a3a35;
  --accent-blue: teal;
  --accent-date: teal;
  --text-main: #534234;
  --text-muted: #534234;
  --divider: #534234;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-main);
  font-family: "Courier New", monospace;
  color: var(--text-main);
  line-height: 1.5;
  position: relative;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 32px 64px; /* top padding removed */
}

/* header */

.site-header {
  margin-bottom: 20px;
}

.header-image {
  width: 100%;
  margin: 0;
  display: flex;
}

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

.logo-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-mark {
  position: relative;
  display: inline-block;
  padding: 32px 48px 28px;
  font-family: "Courier New", monospace;
  font-size: 32px;
  letter-spacing: 0.24em;
  text-transform: lowercase;
  color: #534234;
}

.logo-mark::before {
  content: "";
  position: absolute;
  border: 2px solid #534234;
  inset: 12px 6px 10px 6px;
  pointer-events: none;
}

.logo-text {
  position: relative;
  z-index: 1;
}

nav.site-nav {
  font-size: 14px;
  text-transform: lowercase;
  white-space: nowrap;
  margin-left: 4px;
}

nav.site-nav a {
  color: var(--text-main);
}

nav.site-nav a.active {
  font-weight: bold;
}

nav.site-nav span.sep {
  margin: 0 6px;
  color: var(--text-main);
}

/* updates bar */

.updates-bar {
  margin-top: 6px;
  background: var(--bg-banner);
  color: #f6f2ee;
  display: flex;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.updates-left,
.updates-right {
  padding: 6px 14px;
  display: flex;
  align-items: center;
}

.updates-left {
  background: #3c302b;
  min-width: 220px;
  gap: 6px;
  border-right: 1px solid #6b5b54;
}

.updates-left-label {
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 11px;
}

.updates-left span.text {
  margin-left: 8px;
}

.updates-right {
  justify-content: flex-end;
  flex: 1;
  color: #f5e9dd;
  text-transform: lowercase;
}

.updates-right a {
  color: #f5e9dd;
  text-decoration: none;
}

.updates-right a:hover {
  text-decoration: underline;
}

/* main layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 3.3fr) minmax(260px, 1.2fr);
  gap: 20px;
  margin-top: 18px;
}

/* posts/archives column */

.posts-column {
  background: var(--bg-post);
  padding: 24px 28px 34px;
  border: 1px solid var(--divider);
}

/* archive styles */

.archive-intro {
  font-size: 13px;
  margin-bottom: 18px;
  text-transform: lowercase;
}

.archive-intro strong {
  font-size: 14px;
}

.archive-header {
  font-size: 20px;
  font-weight: bold;
  text-transform: lowercase;
  margin-bottom: 4px;
}

.archive-squiggle {
  font-size: 14px;
  margin: 0 0 18px 0;
  display: block;
}

.archive-month {
  font-weight: bold;
  margin: 18px 0 6px;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}

.archive-item {
  margin-bottom: 18px;
  max-width: 720px;
  font-size: 13px;
}

.archive-item strong a {
  font-size: 13px;
}

.archive-back {
  margin-top: 26px;
  font-size: 12px;
}

/* sidebar */

.sidebar {
  background: var(--bg-sidebar);
  padding: 16px 12px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height:auto;
}

.sidebar-card {
  background: #f6ebdd;
  padding: 14px 14px 16px;
  font-size: 11px;
  border: 4px #534234;
  color: var(--text-main);
}

.sidebar-card.hero {
  padding: 16px 14px 16px;
}

.sidebar-hero-image {
  width: 100%;
  height: 150px;
  background: #534234;
  margin-bottom: 10px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('https://64.media.tumblr.com/8f508065b4f6c67ae3a3944850d2fb56/8a5632724d50233f-0e/s2048x3072/d1c1c2c45b94a93018e3131408b68239202ecc19.pnj');
}

.sidebar-card p {
  margin: 0 0 6px;
}

.sidebar-title {
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: bold;
  text-transform: lowercase;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 3px;
}

.projects-list {
  list-style: disc;
  padding-left: 16px;
  margin: 2px 0 0;
}

.projects-list li {
  margin: 2px 0;
}
/* posts page only */

.post {
  border-bottom: 1px solid var(--divider);
  padding-bottom: 26px;
  margin-bottom: 30px;
}

.post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.post-date {
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent-date);
  margin-bottom: 10px;
}

.post-header-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 16px;
}

.post-toggle {
  width: 40px;
  background: #3b342e;
  color: #f5efe7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding-top: 2px;
}

.post-title-bar {
  flex: 1;
  background: #d7cec4;
  padding: 10px 18px 11px;
  font-weight: bold;
  font-size: 18px;
  text-transform: lowercase;
}

.post-body {
  font-size: 15px;
  color: var(--text-main);
}

.post-body p {
  margin: 0 0 12px;
}

.post-quote {
  font-style: italic;
  color: var(--accent-blue);
  margin: 4px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--divider);
  max-width: 420px;
}

.post-footer {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  border-top: 1px solid var(--divider);
  padding-top: 6px;
}

.post-footer span.label {
  color: var(--text-main);
}

/* post images */

.post-image {
  margin: 0 0 12px;
  border: 1px solid var(--divider);
  background: #e4d6c7;
  padding: 4px;
}

.post-image img {
  display: block;
  width: 100%;
  height: auto;
}

.post-image-caption {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: lowercase;
}

/* archive callout */

.read-archive {
  margin-top: 28px;
  padding: 10px 14px;
  font-size: 18px;
  text-align: center;
  text-transform: lowercase;
}

.read-archive a {
  font-weight: bold;
  text-decoration: none;
}

.read-archive a:hover {
  text-decoration: underline;
}

.about-page {
  background: var(--bg-post);
  padding: 34px 40px 50px;
  border: 1px solid var(--divider);
  margin-top: 24px;
}

.about-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
  text-transform: lowercase;
}

.about-subtitle {
  font-size: 14px;
  margin-bottom: 26px;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.about-page p {
  margin: 0 0 16px;
  font-size: 15px;
  max-width: 620px;
}


/* footer */

.site-footer {
  margin-top: 28px;
  font-size: 11px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--divider);
  padding-top: 10px;
}

.site-footer a {
  color: var(--accent-blue);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* responsive */

@media (max-width: 880px) {
  .page {
    padding: 24px 18px 40px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }
}

@media (max-width: 540px) {
  .logo-mark {
    padding: 26px 36px 20px;
    font-size: 26px;
  }

  .updates-bar {
    flex-direction: column;
  }

  .updates-right {
    justify-content: flex-start;
  }

  .posts-column {
    padding: 18px 16px 26px;
  }
}

