/* -------------------------------------------------------------------
   TheShandyNews — overrides on top of hugo-theme-terminal v4.2.5

   The theme loads this file LAST (see the `static/style.css` block in
   themes/terminal/layouts/partials/head.html), after every stylesheet in
   themes/terminal/assets/css/. Same-specificity rules here therefore win
   over the theme's own.
   ------------------------------------------------------------------- */

/* Accent color: theme default #eec35e -> green.
   Drives links-in-terms, buttons, code, list markers, blockquote rules,
   <hr>, figcaptions, kbd and mark throughout the theme. */
:root {
  --accent: #71c167;
  --background: #000;
}

body {
  background-color: #000;
}

/* -------------------------------------------------------------------
   Link styles copied from hugo-theme-sam.

   Source: themes/sam/assets/sass/style.sass (the `a` block), with the
   Sass variables resolved from themes/sam/assets/sass/_vars.sass:
       $links       = darken($white, 20%) = #ccc
       $links-hover = $white              = #fff
       +ease(0.5s)  = transition: 0.5s ease
   Verified byte-identical to the compiled rules served at
   victoria.dev/hugo-theme-sam/css/main.min.*.css
   ------------------------------------------------------------------- */
a {
  color: #ccc;
  text-decoration: none;
  border-bottom: 2px solid #ccc;
  transition: 0.5s ease;
}

a:hover {
  color: #fff;
  font-style: none; /* verbatim from sam; `none` is not a valid font-style, so this is inert */
}

a:active {
  color: #ccc;
}

/* sam leaves footer links unadorned (.footer a in sam's stylesheet).
   sam also sets `display: contents` there; omitted because terminal's
   footer relies on flex layout for its copyright row. */
.footer a {
  border-bottom: none;
}

/* Post titles inherit the theme's 1.54em body line-height, which leaves a wide
   gap between the text and the sam-style 2px underline on `a`. */
.post-title a {
  line-height: normal;
}
