/*
  CUSTOM.CSS: your own style tweaks. Loads after the theme, so anything here wins.
  Colours are set in config.toml under [extra.colours.dark].
  Each block reads: "find THESE elements { and give them THESE styles; }"
*/

/* Hide the light/dark switch: the site is always dark (see templates/base.html). */
.theme {
  display: none !important;
}

/* Poems: keep line breaks and spaces exactly as typed,
   set slightly in from the left with a thin accent line. */
.poem {
  white-space: pre-wrap;
  font-style: italic;
  line-height: 1.8;
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 0 0 1.5rem;
}

/* ---- Post previews (home and posts pages) ---- */
.list-heading {
  margin-top: 2.5rem;
}
.preview {
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid #2a2a29;
}
.preview:last-of-type {
  border-bottom: none;
}
.preview h2 {
  margin: 0 0 .25rem;
}
.preview h2 a {
  text-decoration: none !important;
}
.preview h2 a:hover {
  text-decoration: underline !important;
}
.preview time {
  display: block;
  opacity: .7;
  margin-bottom: .75rem;
}
.preview p {
  margin-bottom: .75rem;
}
.preview .view {
  font-size: .95rem;
}

/* Profile picture: a circle (the theme's rounded-corner rule for images overrode it). */
img.profile-pic {
  border-radius: 50%;
}

/* A space between the site name and the tagline. */
.header-brand .desc {
  margin-left: .35rem;
}

/* "Nothing posted yet." when there are no posts. */
.empty {
  font-style: italic;
  opacity: .7;
}

/* ---- Portfolio list: TYPE — date — Title ---- */
.portfolio-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 1.5rem;
}
.portfolio-list li {
  padding: .9rem 0;
  border-bottom: 1px solid #2a2a29;
}
.portfolio-list li:last-child {
  border-bottom: none;
}
.portfolio-list a {
  text-decoration: none !important;
}
.portfolio-list a:hover .piece-title {
  text-decoration: underline;
}
.portfolio-list time,
.portfolio-list .sep {
  color: #a0a0a0;
}
.portfolio-list .piece-title {
  font-weight: 600;
}
.piece-type {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85em;
}
.piece-desc {
  text-align: left;
  margin: .35rem 0 0;
  font-size: .95rem;
}
.piece-type-on-page {
  color: var(--accent) !important;
  margin-top: -.75rem;
}
