/* ==========================================================================
   Feras Aldahlawi (frs) - Minimal Personal Site
   Color Palette: Deep Maroon (#800000), Warm Gray (#ebe8e1), White Paper
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: #ebe8e1;
  color: #222222;
  font-family: "MS PGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", Tahoma, "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 24px 12px;
  line-height: 1.6;
  font-size: 14px;
}

h1, h2, h3, h4 {
  font-family: "MS PGothic", "Hiragino Kaku Gothic ProN", Tahoma, "Segoe UI", Arial, sans-serif;
  font-weight: bold;
  color: #800000;
  margin-top: 0;
}

a {
  color: #800000;
  text-decoration: underline;
}

a:hover {
  color: #d11a2a;
}

/* --- Main Page Sheet --- */
.page {
  max-width: 760px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid #7c776e;
  box-shadow: 2px 2px 0 #b8b2a8;
  padding: 28px 34px;
}

/* --- Header --- */
.site-header {
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 2px solid #800000;
}

.site-header h1 {
  font-size: 24px;
  margin: 0 0 6px 0;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.handle {
  font-weight: normal;
  font-size: 16px;
  color: #666666;
}

.meta-links {
  margin: 0;
  font-size: 13px;
  color: #555555;
  line-height: 1.7;
}

.meta-links .sep {
  margin: 0 6px;
  color: #b8b2a8;
}

.breadcrumb {
  margin: 0 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #800000;
  font-size: 13px;
  font-weight: bold;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* --- Bio --- */
.bio {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.profile-picture {
  flex-shrink: 0;
  display: block;
}

.profile-photo {
  width: 128px;
  height: 128px;
  border: 2px solid #800000;
  box-shadow: 2px 2px 0 #b8b2a8;
  background-color: #ffffff;
  display: block;
  object-fit: cover;
}

.bio-text p {
  margin: 0 0 10px 0;
}

.bio-text p:last-child {
  margin-bottom: 0;
}

.focus-note {
  color: #555555;
  font-style: italic;
  font-size: 13px;
  border-left: 3px solid #800000;
  padding-left: 10px;
}

/* --- Sections & Lists --- */
.section {
  margin-bottom: 26px;
}

.section h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #d4cfc7;
}

.section h3 {
  font-size: 14px;
  margin: 16px 0 6px 0;
  color: #800000;
}

.section h2 + h3 {
  margin-top: 8px;
}

.section-note {
  margin: 0 0 10px 0;
  color: #444444;
  font-size: 13px;
}

.entry-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry-list li {
  margin-bottom: 6px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.entry-date {
  font-family: ui-monospace, "Courier New", Consolas, monospace;
  font-size: 12px;
  color: #666666;
  flex-shrink: 0;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.plain-list li {
  margin-bottom: 5px;
}

.note-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.note-list li {
  margin-bottom: 7px;
}

/* --- Leaf Pages (Blog Posts & User Manual) --- */
.doc-title {
  font-size: 21px;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.post-meta {
  font-family: ui-monospace, "Courier New", Consolas, monospace;
  font-size: 12px;
  color: #666666;
  margin-bottom: 16px;
}

.manual-nav {
  margin: 0 0 20px 0;
  padding: 8px 12px;
  background-color: #faf9f6;
  border: 1px solid #d4cfc7;
  font-size: 12px;
  line-height: 1.8;
}

.manual-nav a {
  margin-right: 10px;
  white-space: nowrap;
}

.doc-body h2 {
  font-size: 16px;
  margin: 22px 0 8px 0;
  padding-bottom: 3px;
  border-bottom: 1px solid #e0dcd4;
}

.doc-body h3 {
  font-size: 14px;
  margin: 18px 0 6px 0;
}

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

.doc-body ul,
.doc-body ol {
  margin: 0 0 14px 0;
  padding-left: 22px;
}

.doc-body li {
  margin-bottom: 4px;
}

.doc-body blockquote {
  margin: 16px 0;
  padding: 8px 14px;
  border-left: 3px solid #800000;
  background-color: #fbf7f4;
  color: #555555;
  font-style: italic;
}

.doc-body blockquote p:last-child {
  margin-bottom: 0;
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.doc-body th,
.doc-body td {
  border: 1px solid #b8b2a8;
  padding: 6px 10px;
  text-align: left;
}

.doc-body th {
  background-color: #f2eee6;
  color: #800000;
  font-weight: bold;
}

.doc-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
  border: 1px solid #b8b2a8;
}

.doc-body hr {
  border: none;
  border-top: 1px dashed #b8b2a8;
  margin: 24px 0;
}

pre {
  background-color: #242424;
  color: #efefef;
  border: 1px solid #7c776e;
  padding: 12px 14px;
  font-family: ui-monospace, "Courier New", Consolas, monospace;
  font-size: 12px;
  overflow-x: auto;
  line-height: 1.45;
  margin: 14px 0;
}

code {
  background-color: #f0ece4;
  border: 1px solid #d4cfc7;
  padding: 1px 4px;
  font-family: ui-monospace, "Courier New", Consolas, monospace;
  font-size: 12px;
  color: #800000;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.doc-footnote {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px dotted #c8c4bc;
  font-size: 13px;
  color: #555555;
}

/* --- Footer --- */
.site-footer {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid #d4cfc7;
  font-size: 12px;
  color: #666666;
}

/* --- Mobile --- */
@media (max-width: 600px) {
  body {
    padding: 0;
    background-color: #ffffff;
  }

  .page {
    border: none;
    box-shadow: none;
    padding: 20px 16px;
  }

  .bio {
    flex-direction: column;
    gap: 14px;
  }

  .profile-photo {
    width: 108px;
    height: 108px;
  }

  .entry-list li {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
  }
}
