/* ============================================================
   schrottrecorder — simple stylesheet
   Light theme, two columns, dark code blocks. No animations.
   ============================================================ */

/* ---------- base ---------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f4f1;
  color: #2b2b2b;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: #0b6e4f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline; /* plain state change, no animation */
}

/* ---------- banner ---------- */

#banner {
  background: #232323;
  padding: 1.5rem 2.5rem;
}

#banner h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#banner h1 a {
  color: #ffffff;
}

.description {
  display: block;
  margin-top: 0.25rem;
  color: #9aa0a6;
  font-size: 0.95rem;
}

/* ---------- layout ---------- */

#container {
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* ---------- sidebar ---------- */

#links {
  width: 260px;
  flex-shrink: 0;
}

.sidetitle {
  margin: 1.4rem 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #d8d8d2;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a7a74;
}

/* hide the empty sidetitle block */
.sidetitle:empty {
  display: none;
}

.side,
.side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side li {
  margin: 0.3rem 0;
  font-size: 0.92rem;
}

.side a {
  color: #444;
}

.side a:hover {
  color: #0b6e4f;
}

.powered {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  color: #8a8a84;
}

/* ---------- main content ---------- */

#content {
  flex: 1;
  min-width: 0; /* lets long pre blocks scroll instead of breaking layout */
}

.item {
  background: #ffffff;
  border: 1px solid #e3e3dd;
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.5rem;
}

h2.date {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a8a84;
}

h3.title {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f1f1f;
}

.item-description p,
.item-description div {
  margin-bottom: 0.8rem;
}

/* ---------- code blocks ---------- */

pre {
  background: #2b2b2b;
  color: #e8e8e8;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  overflow-x: auto; /* long lines scroll horizontally */
  font-size: 0.875rem;
  line-height: 1.5;
}

code {
  font-family: Consolas, Menlo, "DejaVu Sans Mono", monospace;
}

/* ---------- footer / top link ---------- */

.menu {
  margin-top: 1.2rem;
  text-align: center;
}

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  #container {
    flex-direction: column;
    padding: 1rem;
  }

  /* show the articles before the long "recent entries" list on phones */
  #content {
    order: -1;
    width: 100%;
  }

  #links {
    width: 100%;
  }
}
