/* ==========================================================
   jonquass.com — Cassiopeia user.css
   Put this file at: css/user.css in your Cassiopeia template
   (System → Site Templates → Cassiopeia Details and Files → New File)
   ========================================================== */

:root {
  --jq-ink: #1c1f2b;
  --jq-muted: #5b6072;
  --jq-bg: #f4f3ef;
  --jq-surface: #ffffff;
  --jq-line: #e3e1da;
  --jq-indigo: #2b2f6b;
  --jq-indigo-deep: #1a1d45;
  --jq-accent: #9aa8ff;
  --jq-link: #3a46b8;
  --jq-width: 52rem;

  /* Feed Cassiopeia's own variables so its built-in bits match */
  --cassiopeia-color-primary: var(--jq-indigo-deep);
  --cassiopeia-color-link: var(--jq-link);
  --cassiopeia-color-hover: var(--jq-indigo);
}

/* ---- Page: footer sits at the bottom even on short pages ---- */
body.site {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--jq-bg);
  color: var(--jq-ink);
}
body.site > .site-grid {
  flex: 1 0 auto;
  width: 100%;
}

/* ---- Header ---- */
.container-header {
  background-color: var(--jq-indigo-deep);
  background-image: none;
  box-shadow: none;
  border-bottom: 3px solid var(--jq-accent);
}
.container-header .grid-child {
  max-width: var(--jq-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container-header .navbar-brand {
  padding-block: 2.25rem 0.25rem;
}
.container-header .brand-logo {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.container-header .brand-logo:hover,
.container-header .brand-logo:focus {
  color: var(--jq-accent);
  text-decoration: none;
}
.container-header .site-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* Menu: pills instead of the underline */
.container-header .container-nav {
  padding-block: 0.75rem 1.25rem;
}
.container-header .mod-menu {
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-left: -0.85rem;
}
.container-header .mod-menu > li > a {
  display: inline-block;
  white-space: nowrap;
}
.container-header .mod-menu > li > a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.container-header .metismenu > li > a::after,
.container-header .metismenu > li > button::before {
  display: none;
}

/* ---- Main content: centred, readable width, on a card ---- */
.site-grid {
  padding-block: 2rem 4rem;
  align-content: start;
}
.site-grid .container-component {
  width: 100%;
  max-width: var(--jq-width);
  margin-inline: auto;
  justify-self: center;
  padding-inline: 1.25rem;
}
.container-component main {
  background: var(--jq-surface);
  border: 1px solid var(--jq-line);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

/* Typography */
.page-header h1,
.com-content-article h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.com-content-article__body {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.com-content-article__body h2 {
  font-size: 1.45rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--jq-line);
}
.com-content-article__body a {
  color: var(--jq-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.com-content-article__body a:hover {
  text-decoration-thickness: 2px;
}
.com-content-article__body code {
  background: #eeedf6;
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}

/* Prev / Next buttons */
.pagenavigation .btn {
  border-radius: 999px;
  border-color: var(--jq-line);
  color: var(--jq-indigo);
  text-decoration: none;
}
.pagenavigation .btn:hover {
  background: var(--jq-indigo);
  border-color: var(--jq-indigo);
  color: #fff;
}

/* ---- Footer ---- */
.container-footer {
  background-color: var(--jq-indigo-deep);
  background-image: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-top: 0;
}
.container-footer .grid-child {
  max-width: var(--jq-width);
  margin-inline: auto;
  padding: 2rem 1.25rem;
}
.container-footer a {
  color: #fff;
  text-decoration: none;
}
.container-footer a:hover {
  color: var(--jq-accent);
}
.jq-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
  width: 100%;
}
.jq-footer p {
  margin: 0;
}
.jq-footer ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Back-to-top button */
.back-to-top-link {
  background-color: var(--jq-indigo);
  border-radius: 999px;
}

.container-header .mod-menu > li::after {
  content: none !important;
  display: none !important;
}

/* Projects page: one card per project */
body.layout-blog .container-component main {
  background: none;
  border: 0;
  padding: 0;
}
body.layout-blog .blog-item {
  background: var(--jq-surface);
  border: 1px solid var(--jq-line);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

/* Quieter titles */
.blog-item h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.blog-item h2 a {
  color: var(--jq-ink);
  text-decoration: none;
}
.blog-item h2 a:hover {
  color: var(--jq-link);
  text-decoration: underline;
}

/* "Read more" as a link, not a button */
.blog-item .readmore .btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--jq-link);
  font-weight: 600;
}
.blog-item .readmore .btn:hover {
  text-decoration: underline;
}

/* Footer links in one row, clearly links */
.mod-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mod-footer .footer2 {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mod-footer a {
  color: #fff;
  text-decoration: none;
}
.mod-footer a:hover {
  color: var(--jq-accent);
  text-decoration: underline;
}

/* Homepage */
.jq-intro {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 1rem;
}
.jq-photo {
  flex: 0 0 15rem;
  width: 15rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}
.jq-intro p:last-child {
  margin-bottom: 0;
}
.jq-lead {
  margin-top: 0;
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 500;
}
@media (max-width: 640px) {
  .jq-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .jq-photo {
    flex-basis: auto;
    width: 100%;
  }
}
.jq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.jq-tags li {
  background: #eeedf6;
  color: var(--jq-indigo);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  font-size: 0.9rem;
}
.jq-role {
  border-left: 3px solid var(--jq-accent);
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
}
.jq-role h3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 1rem;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.jq-when {
  color: var(--jq-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

/* Skills: three levels of emphasis */
.jq-skill-label {
  margin: 1.25rem 0 0.5rem;
  color: var(--jq-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.jq-tags--primary li {
  background: var(--jq-indigo);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.35rem 1.1rem;
}
.jq-tags--quiet li {
  background: none;
  border: 1px solid var(--jq-line);
  color: var(--jq-muted);
  font-size: 0.85rem;
}
