/* ==========================================================================
   devbase.at – main stylesheet
   Orange accent: #ec430f  |  Hover: #044cd0  |  Text: #252525  |  Background: #fff
   ========================================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif;
  color: #252525;
  background: #fff;
  line-height: 1.5;
}

a { color: #ec430f; text-decoration: none; }
a:hover, a:focus, a:active { color: #044cd0; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.2; margin-bottom: 0.5em; font-weight: 500; }
h1 { font-size: 2.25rem; margin-bottom: 0.75em; }
h2 { font-size: 1.4rem; margin-top: 1.5em; }

p { margin-bottom: 1em; }

ul, ol { padding-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: 0.25em; }

hr { border: none; border-top: 1px solid #ddd; margin: 2em 0; }

code, pre { font-family: 'Fira Mono', 'Courier New', monospace; font-size: 0.9em; }
pre { background: #f5f5f5; padding: 1em; overflow-x: auto; border-radius: 3px; margin-bottom: 1em; }
code { background: #f5f5f5; padding: 0.1em 0.3em; border-radius: 2px; }
pre code { background: none; padding: 0; }

/* ---------- Layout wrapper ---------- */
.site-header .header-inner,
main#main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.site-header .header-inner {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  height: 80px;
  background: #fff;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 99;
}

.header-inner {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  color: inherit;
  white-space: nowrap;
}
.site-logo:hover { text-decoration: none; }

.logo-name {
  font-size: 1.5rem;
  font-weight: 400;
  color: #ec430f;
}

.logo-subtitle {
  font-size: 1rem;
  color: #252525;
}

/* ---------- Navigation ---------- */
.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 -0.9375rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  color: #252525;
  font-size: 0.875rem;
  padding: 0.25rem 0.9375rem;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #ec430f;
}

.site-nav a.active {
  color: #ec430f;
  font-weight: 500;
}

/* Hamburger button – hidden on wide screens */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: #222;
  border-radius: 1px;
}

/* ---------- Main content ---------- */
main#main-content {
  padding-top: 3.75rem;
  padding-bottom: 4.375rem;
  min-height: 60vh;
}

/* ---------- Home page ---------- */
.home-content h1 { font-size: 2.2rem; }
.home-content ul { list-style: disc; }

/* ---------- Section / list pages ---------- */
.category-group { margin-bottom: 2rem; }

.category-heading {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #252525;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

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

.entry-item {
  margin-bottom: 1.25rem;
}

.entry-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.entry-title { font-size: 1rem; }

.entry-date {
  font-size: 0.875rem;
  color: #777;
  white-space: nowrap;
}

.entry-summary {
  margin-top: 0.2em;
  margin-bottom: 0;
  color: #444;
  font-size: 0.95rem;
}

/* ---------- Single / article pages ---------- */
.single-page h1 { margin-bottom: 0.5rem; }

.page-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15em 1em;
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 1.75rem;
  border-left: 3px solid #e5e5e5;
  padding-left: 0.75rem;
}
.page-meta dt { font-weight: 600; }

.entry-body {}

/* ---------- Piano page ---------- */
.composer {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.downloads-block,
.midi-block,
.references-block { margin-top: 1.5rem; }

.midi-block midi-player { display: block; width: 100%; max-width: 300px; }
.midi-block small { color: #777; }

.disclaimer {
  font-size: 0.85rem;
  color: #777;
  margin-top: 1rem;
}

/* ---------- Repo block ---------- */
.repo-block { margin-top: 2rem; border-top: 1px solid #e5e5e5; padding-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #171717;
  color: #aaa;
  font-size: 0.875rem;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer a { color: #a2a2a2; }
.site-footer a:hover, .site-footer a:focus { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .menu-toggle { display: flex; }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    margin-left: 0;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }
  .site-nav li { border-top: 1px solid #eee; }
  .site-nav a { display: block; padding: 0.5rem 0; line-height: 1.5; }

  .site-header { height: auto; min-height: 80px; padding: 0.75rem 0; }
  .header-inner { flex-wrap: wrap; height: auto; }

  h1 { font-size: 1.6rem; }
}
