html {
  min-height: 100%;
  background-image: url("images/backdrop.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, serif;
  color: #222;
  background: transparent;
}

.page {
  max-width: 800px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 20px;
  background: #f4f1ea;
  line-height: 1.6;
}

.site-header {
  border-bottom: 2px solid #222;
  margin-bottom: 30px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.header-text {
  flex: 1;
}

.profile-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 2px solid #222;
}

nav {
  margin-top: 20px;
}

nav a {
  margin-right: 15px;
  color: #222;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

section {
  margin-top: 30px;
}

@media (max-width: 700px) {
  .page {
    padding: 25px 16px;
  }

  .header-top {
    flex-direction: column;
  }

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

  nav a {
    display: inline-block;
    margin-bottom: 8px;
  }
}

/* Subpage layout: IT, Audio-Visual, Music, Blog, Contact */
.subpage .site-header {
  border-bottom: 2px solid #222;
  margin-bottom: 30px;
  padding-bottom: 4px;
}

.subpage nav {
  margin-top: 0;
}

.subpage h1 {
  margin-top: 0;
}

/* Style for projects section */
.projects-section {
  margin-top: 40px;
}

.project-card {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #999;
}

.project-card:last-child {
  border-bottom: none;
}

.project-card h3 {
  margin-bottom: 0;
}

.project-type {
  margin-top: 2px;
  font-style: italic;
  color: #555;
}

.project-card ul {
  margin-top: 10px;
  padding-left: 24px;
}

.project-card li {
  margin-bottom: 6px;
}
/* Github Button -----------------------------*/
.github-button {
  position: fixed;
  left: 24px;
  bottom: 132px;
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e0e0e0;
  border: 2px solid #222;
  z-index: 9999;
  text-decoration: none;
}

.github-button img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.github-button:hover {
  background: #d0dbdb;
  transform: translateY(-2px);
}
/* Youtube Button -----------------------------*/
.youtube-button {
  position: fixed;
  left: 24px;
  bottom: 78px;
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e0e0e0;
  border: 2px solid #222;
  z-index: 9999;
  text-decoration: none;
}

.youtube-button img {
  max-width: 52px;
  max-height: 52px;
  display: block;
  object-fit: contain;
}

.youtube-button:hover {
  background: #d0dbdb;
  transform: translateY(-2px);
}

/* Linkedin Button -----------------------------*/
.linkedin-button {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f2c94c;
  color: #222;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;

  border: 2px solid #222;
  z-index: 9999;
}

.linkedin-button:hover {
  background: #ffd84d;
  text-decoration: none;
  transform: translateY(-2px);
}

.linkedin-button:visited {
  color: #222;
}

/* Music Player -----------------------------*/
.music-library {
  margin-top: 36px;
}

.music-section {
  margin-top: 32px;
  margin-bottom: 36px;
}

.music-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
}

.music-section-header h2 {
  margin: 0;
}

.music-years {
  margin: 0;
  white-space: nowrap;
  font-size: 0.95rem;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 95px 180px;
  align-items: center;
  gap: 10px;
}

.track-play-button {
  width: 32px;
  height: 26px;
  padding: 0;
  font-family: monospace;
  font-size: 0.9rem;
  cursor: pointer;
}

.track-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.track-time {
  font-size: 0.9rem;
  white-space: nowrap;
  text-align: right;
}

.track-slider {
  width: 180px;
}

@media (max-width: 750px) {
  .music-section-header {
    display: block;
  }

  .music-years {
    margin-top: 6px;
  }

  .track-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .track-time {
    grid-column: 2;
    text-align: left;
  }

  .track-slider {
    grid-column: 2;
    width: 100%;
  }
}

/* Music intro -----------------------------*/
.music-intro {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 24px;
  align-items: start;
  margin-bottom: 36px;
}

.music-intro h1 {
  margin-top: 0;
}

.music-page-image {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 2px solid #222;
  margin-top: 6px;
}

@media (max-width: 700px) {
  .music-intro {
    grid-template-columns: 1fr;
  }

  .music-page-image {
    width: 120px;
    height: 120px;
    margin-top: 0;
  }
}
/* Blog stuff -----------------------------*/

.blog-page .page {
  max-width: 1000px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 36px;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

.blog-sidebar {
  font-size: 0.9rem;
}

.blog-sidebar section {
  margin-bottom: 32px;
}

.blog-sidebar h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #555;
  margin-bottom: 12px;
}

.blog-sidebar a {
  color: #222;
  text-decoration: none;
}

.blog-sidebar a:hover {
  text-decoration: underline;
}

.blog-post-preview {
  border-bottom: 1px solid #999;
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.blog-post-preview h2 {
  margin-top: 4px;
  margin-bottom: 10px;
}

.blog-post-preview h2 a {
  color: #222;
  text-decoration: none;
}

.blog-post-preview h2 a:hover {
  text-decoration: underline;
}

.blog-date {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px;
}

.blog-labels {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}

.blog-labels a {
  color: #222;
  text-decoration: none;
}

.blog-labels a:hover {
  text-decoration: underline;
}

.blog-full-post p {
  margin-bottom: 18px;
}

.archive-year,
.archive-month {
  margin-bottom: 8px;
}

.archive-year summary,
.archive-month summary {
  cursor: pointer;
  font-weight: bold;
}

.archive-month {
  margin-left: 16px;
}

.archive-month ul {
  margin-top: 8px;
  margin-bottom: 10px;
  padding-left: 18px;
}

.archive-month li {
  margin-bottom: 6px;
}

.sidebar-labels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 800px) {
  .blog-page .page {
    max-width: 800px;
  }

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

  .blog-sidebar {
    border-top: 1px solid #999;
    padding-top: 24px;
  }
}

/* Blog JS -----------------------------*/
.blog-post-full {
  border-bottom: 1px solid #999;
  padding-bottom: 28px;
  margin-bottom: 34px;
}

.blog-post-full h2 {
  margin-top: 4px;
  margin-bottom: 18px;
}

.blog-post-full h2 a {
  color: #222;
  text-decoration: none;
}

.blog-post-full h2 a:hover {
  text-decoration: underline;
}

.blog-post-body p {
  margin-bottom: 18px;
}

/* Systems Administration page */
.systems-page .page {
  max-width: 900px;
}

.sysadmin-section {
  margin-top: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid #999;
}

.sysadmin-section:last-child {
  border-bottom: none;
}

.sysadmin-section h2 {
  margin-bottom: 14px;
}

.sysadmin-section h3 {
  margin-bottom: 6px;
}

.architecture-diagram {
  background: #e8e2d6;
  border: 1px solid #999;
  padding: 18px;
  overflow-x: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: pre;
}

.project-card {
  margin-top: 26px;
  margin-bottom: 28px;
}

.project-card p {
  margin-top: 6px;
}

.project-card ul,
.sysadmin-section ul,
.runbook ol {
  padding-left: 24px;
}

.project-card li,
.sysadmin-section li,
.runbook li {
  margin-bottom: 7px;
}

.runbook {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #999;
  background: #f8f4ea;
}

.runbook summary {
  cursor: pointer;
  font-weight: bold;
}

.runbook summary:hover {
  text-decoration: underline;
}

.runbook code {
  font-family: "Courier New", Courier, monospace;
  background: #e8e2d6;
  padding: 1px 4px;
}

.note {
  font-style: italic;
  color: #555;
}

/* pinned posts -----------------------------*/

.pinned-post {
  border: 2px solid #999;
  padding: 18px;
  background: #f8f4ea;
}

.pinned-label {
  display: inline-block;
  margin: 0 0 8px 0;
  padding: 2px 8px;
  border: 1px solid #777;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555;
}