/* Alffis Blog — 2000s/2010s personal-blog aesthetic: hard offset shadows,
   dashed dividers, serif headings, monospace metadata. See
   docs/DATASHEET.md for the design-token reference. */

* { box-sizing: border-box; }

body.blog-body {
  margin: 0;
  background: #f6f1e4;
  color: #24312e;
  font-family: Verdana, Geneva, sans-serif;
  min-height: 100vh;
}

a { color: #2b6e6e; }
a:hover { color: #d98c2b; }
::selection { background: #d98c2b; color: #fff; }

/* Header */

.site-header {
  background: #234441;
  border-bottom: 4px solid #d98c2b;
  padding: 22px 40px;
}
.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-title-link { text-decoration: none; }
.site-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: bold;
  font-size: 34px;
  color: #f6f1e4;
  letter-spacing: 0.5px;
}
.site-tagline {
  font-size: 11px;
  color: #b9d6cf;
  font-family: 'Courier New', monospace;
  margin-top: 2px;
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: bold;
  color: #f6f1e4;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav-tab-active { border-bottom-color: #d98c2b; }
.nav-photos-link {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: bold;
  color: #ffd9a0;
  text-decoration: none;
  border: 1px solid #ffd9a0;
  border-radius: 2px;
  margin-left: 6px;
}

/* Layout */

.page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 40px 60px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
}
.main-col { min-width: 0; }

.section-heading {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: bold;
  border-bottom: 2px solid #234441;
  padding-bottom: 8px;
  margin: 0 0 20px;
  color: #1c2624;
}
.empty-note, .admin-empty-note { color: #46524d; }

/* Post cards */

.post-card {
  background: #fffdf7;
  border: 1px solid #234441;
  box-shadow: 3px 3px 0 rgba(35, 68, 65, 0.2);
  padding: 22px 26px;
  margin-bottom: 22px;
}
.post-meta {
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: #8a8272;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.post-title {
  display: block;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 23px;
  margin: 6px 0 8px;
  color: #1c2624;
  text-decoration: none;
}
.post-excerpt { font-size: 14.5px; line-height: 1.6; color: #46524d; margin: 0 0 12px; }
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.read-more { font-size: 13px; color: #2b6e6e; font-weight: bold; text-decoration: none; }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-pill {
  font-size: 11px;
  font-family: 'Courier New', monospace;
  border: 1px solid #d98c2b;
  color: #b06a10;
  padding: 3px 9px;
  border-radius: 10px;
}

/* Post detail */

.back-link {
  display: inline-block;
  cursor: pointer;
  font-size: 12px;
  color: #2b6e6e;
  font-family: 'Courier New', monospace;
  margin-bottom: 14px;
  text-decoration: none;
}
.post-detail-panel {
  background: #fffdf7;
  border: 1px solid #234441;
  box-shadow: 4px 4px 0 rgba(35, 68, 65, 0.25);
  padding: 30px 34px;
}
.post-detail-title {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 30px;
  margin: 8px 0 16px;
  color: #1c2624;
}
.post-body-para { font-size: 15.5px; line-height: 1.7; color: #33403c; margin: 0 0 14px; }

/* Projects */

.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-card {
  background: #fffdf7;
  border: 1px solid #234441;
  box-shadow: 3px 3px 0 rgba(35, 68, 65, 0.2);
  display: flex;
  flex-direction: column;
}
.project-thumb-img, .project-thumb-placeholder {
  height: 110px;
  width: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-category-badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-family: 'Courier New', monospace;
  background: #234441;
  color: #d9ead6;
  padding: 3px 8px;
  border-radius: 2px;
}
.project-title { font-family: Georgia, serif; font-weight: bold; font-size: 17px; color: #1c2624; }
.project-desc { font-size: 13.5px; line-height: 1.55; color: #46524d; margin: 0; flex: 1; }
.project-tech-row { gap: 10px; }
.project-tech-item { font-size: 10.5px; font-family: 'Courier New', monospace; color: #2b6e6e; }
.view-project-link { font-size: 12.5px; font-weight: bold; margin-top: 4px; text-decoration: none; }

/* About */

.about-panel {
  background: #fffdf7;
  border: 1px solid #234441;
  box-shadow: 4px 4px 0 rgba(35, 68, 65, 0.2);
  padding: 30px 34px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.about-avatar-img, .about-avatar-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  font-size: 10.5px;
  text-align: center;
}
.about-body { flex: 1; min-width: 260px; }
.about-heading { font-family: Georgia, serif; font-weight: bold; font-size: 24px; margin: 0 0 10px; color: #1c2624; }
.about-bio-para { font-size: 15px; line-height: 1.7; color: #33403c; margin: 0 0 12px; }
.about-interests-label {
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: #8a8272;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Resume */

.resume-panel {
  background: #fffdf7;
  border: 1px solid #234441;
  box-shadow: 4px 4px 0 rgba(35, 68, 65, 0.2);
  padding: 30px 34px;
}
.resume-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.resume-heading { font-family: Georgia, serif; font-weight: bold; font-size: 24px; color: #1c2624; margin: 0; }
.resume-download-btn {
  font-size: 13px;
  font-weight: bold;
  background: #234441;
  color: #f6f1e4;
  padding: 9px 18px;
  border-radius: 2px;
  text-decoration: none;
}
.section-label {
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: #8a8272;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 10px;
  border-bottom: 1px solid #d8cfb8;
  padding-bottom: 4px;
}
.section-label:first-of-type { margin-top: 0; }
.exp-item { margin-bottom: 16px; }
.exp-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.exp-role { font-weight: bold; font-size: 15.5px; color: #1c2624; }
.exp-dates { font-size: 12.5px; color: #8a8272; font-family: 'Courier New', monospace; }
.exp-desc { font-size: 14px; line-height: 1.55; color: #46524d; margin: 4px 0 0; }
.edu-item { margin-bottom: 10px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.edu-school { font-weight: bold; font-size: 15px; color: #1c2624; }
.edu-dates { font-size: 12.5px; color: #8a8272; font-family: 'Courier New', monospace; }
.skills-row { display: flex; gap: 6px; flex-wrap: wrap; }
.skill-chip {
  font-size: 11.5px;
  font-family: 'Courier New', monospace;
  background: #eee5d0;
  color: #46524d;
  padding: 4px 10px;
  border-radius: 2px;
}

/* Sidebar */

.sidebar-col { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: #fffdf7;
  border: 1px solid #234441;
  box-shadow: 3px 3px 0 rgba(35, 68, 65, 0.2);
  padding: 18px 20px;
}
.widget-title {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 15px;
  border-bottom: 2px solid #234441;
  padding-bottom: 6px;
  margin-bottom: 10px;
  color: #1c2624;
}
.widget-avatar-img, .widget-avatar .placeholder-thumb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 10px;
  object-fit: cover;
}
.widget-about-blurb { font-size: 13px; line-height: 1.55; color: #46524d; margin: 0 0 8px; }
.widget-more-link { font-size: 12.5px; font-weight: bold; cursor: pointer; text-decoration: none; }

.cat-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 5px 0;
  border-bottom: 1px dashed #d8cfb8;
}
.cat-row:last-child { border-bottom: none; }
.cat-count { color: #8a8272; font-family: 'Courier New', monospace; }
.cat-empty { color: #8a8272; font-style: italic; }

.elsewhere-list { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.elsewhere-list a { text-decoration: none; }

.novelty-box {
  background: #eee5d0;
  border: 1px dashed #8a8272;
  padding: 14px 18px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: #6b6353;
  text-align: center;
}

/* Footer */

.site-footer {
  background: #234441;
  color: #b9d6cf;
  text-align: center;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  padding: 18px;
  border-top: 4px solid #d98c2b;
}
.footer-link { color: #ffd9a0; }

/* Placeholder art (used until a real image is uploaded from the admin panel) */

.placeholder-thumb {
  background: repeating-linear-gradient(45deg, #e4ddc9, #e4ddc9 10px, #dcd4bd 10px, #dcd4bd 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #8a8272;
  text-align: center;
}
.placeholder-round { border-radius: 50%; }

/* Error pages */

.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.error-panel {
  background: #fffdf7;
  border: 1px solid #234441;
  box-shadow: 4px 4px 0 rgba(35, 68, 65, 0.25);
  padding: 40px;
  text-align: center;
  max-width: 420px;
}
.error-code { font-family: Georgia, serif; font-weight: bold; font-size: 40px; color: #1c2624; margin-bottom: 10px; }

@media (max-width: 800px) {
  .page-wrap { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-panel { flex-direction: column; }
}
