/* Palette lifted from the old site: brick-red links on a black masthead,
   Lucida Grande throughout. Inverted to black-on-white for the body. */
:root {
  --ink: #111;
  --paper: #fff;
  --band: #000;
  --band-ink: #eee;
  --brick: #900000;
  --brick-light: #8F4341;
  --rule: #dcdcdc;
  --muted: #666;

  --bs-body-font-family: 'Lucida Grande', 'Lucida Sans', 'Lucida Sans Unicode', 'Segoe UI', Helvetica, Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--brick);
  --bs-link-hover-color: var(--brick);
  --bs-border-color: var(--rule);
}

body { font-family: var(--bs-body-font-family); color: var(--ink); background: var(--paper); }
a { color: var(--brick); text-decoration: none; font-weight: bold; }
a:hover { color: var(--brick); text-decoration: underline; }

/* --- the black bands, which carry the old identity --- */
.masthead { background: var(--band); color: var(--band-ink); }
.masthead .navbar { --bs-navbar-color: #bbb; --bs-navbar-hover-color: #fff; --bs-navbar-active-color: #fff; }
.masthead .navbar-brand { color: var(--band-ink); font-weight: bold; letter-spacing: .02em; }
.masthead .nav-link { font-weight: bold; }
.masthead .nav-link.active { color: #fff; box-shadow: inset 0 -3px 0 #fff; }
.masthead a { color: inherit; }
.masthead a:hover { color: #fff; text-decoration: none; }
.masthead .dropdown-menu {
  --bs-dropdown-link-color: var(--brick);
  --bs-dropdown-link-hover-color: var(--brick);
  --bs-dropdown-link-hover-bg: #f2f2f2;
}
.masthead .dropdown-item:hover, .masthead .dropdown-item:focus { color: var(--brick); }

.masthead-band { display: flex; align-items: flex-end; gap: 1.5rem; padding-bottom: 1.25rem; }
.masthead-logo { display: block; color: var(--band-ink); flex: none; line-height: 0; }
.masthead-logo:hover { color: #fff; }
.masthead-logo svg { height: 96px; width: auto; display: block; }

.section-title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: bold;
  line-height: 1;
  margin: 0;
  padding-bottom: .35rem;
  color: var(--band-ink);
}

@media (max-width: 575.98px) {
  .masthead-logo svg { height: 58px; }
  .masthead-band { gap: .85rem; }
}

.site-footer { background: var(--band); color: #999; }
.site-footer a { color: #ccc; font-weight: normal; }
.site-footer a:hover { color: #fff; }

/* --- content --- */
h1, h2, h3, h4 { font-weight: bold; }
main h1 { font-size: 1.9rem; margin-bottom: 1.25rem; }
main h2 { font-size: 1.4rem; margin-top: 2rem; }
main h3 { font-size: 1.15rem; margin-top: 1.5rem; }

.product-icon { width: 128px; height: 128px; object-fit: contain; }
.product-card { border-color: var(--rule); transition: box-shadow .15s ease-in-out; }
.product-card:hover { box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.18) !important; }
.product-card .card-title { color: var(--ink); }

.news h3 { font-size: 1.05rem; margin-top: 1.75rem; }
.news h3 + p { margin-bottom: 0; }

.post img, .product-body img { max-width: 100%; height: auto; }
.post-meta { margin-top: -.25rem; color: var(--muted); }

/* Imported blog comments are blockquotes; the first line is the attribution. */
.post blockquote {
  border-left: 3px solid var(--brick);
  padding: .5rem 0 .5rem 1rem;
  margin: 1rem 0;
  color: #444;
  background: #fafafa;
}
.post blockquote p:first-child strong { color: var(--ink); }

pre { background: #f5f5f5; border: 1px solid var(--rule); padding: 1rem; border-radius: .25rem; overflow-x: auto; }
code { color: var(--brick); }
pre code { color: inherit; }
table { display: block; overflow-x: auto; max-width: 100%; }

.pagination { --bs-pagination-color: var(--brick); --bs-pagination-active-bg: var(--brick); --bs-pagination-active-border-color: var(--brick); }
.btn-primary { --bs-btn-bg: var(--brick); --bs-btn-border-color: var(--brick); --bs-btn-hover-bg: var(--brick-light); --bs-btn-hover-border-color: var(--brick-light); }
.btn-outline-secondary { --bs-btn-color: #444; --bs-btn-border-color: #bbb; --bs-btn-hover-bg: #333; --bs-btn-hover-border-color: #333; }

/* The card links to the product; the buttons are separate targets. No
   stretched-link, which would swallow the clicks meant for them. */
.product-link { display: block; color: inherit; font-weight: normal; }
.product-link:hover { text-decoration: none; color: inherit; }
.product-link:hover .card-title { color: var(--brick); }
.product-slogan { color: var(--muted); font-size: .9rem; }

/* Obsolete products keep their pages; they are just labelled and set apart. */
.obsolete-heading { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.obsolete-badge {
  display: inline-block; vertical-align: middle; margin-left: .4rem;
  font-size: .65rem; font-weight: bold; text-transform: uppercase; letter-spacing: .04em;
  color: #fff; background: #777; border-radius: .2rem; padding: .1rem .35rem;
}
.obsolete-notice {
  border-left: 3px solid #777; background: #f5f5f5; color: #555;
  padding: .75rem 1rem; margin-bottom: 1.5rem; font-size: .95rem;
}
.product-card.is-obsolete { opacity: .82; }
.product-card.is-obsolete:hover { opacity: 1; }
