/* Andrew 2026: subtle warm neutral + moss accent + breathing room */

:root{
  /* Backgrounds: warmer than white, but very subtle */
  --bg: #faf8f4;          /* toned-down warm background */
  --panel: #ffffff;
  --panel-soft: #f7f3ea;  /* sidebar / soft panels */

  /* Text: slightly darker than Editorial default for better contrast on warm bg */
  --text: #656d73;        /* replaces #7f888f feel */
  --text-strong: #3d4449; /* matches theme headings */

  /* Accent: deep olive/moss */
  --accent: #4f6f52;
  --accent-hover: #5b7c5e;
  --accent-active: #456447;
}

/* Page background + base text */
body{
  background: var(--bg);
  color: var(--text);
}

/* Slight readability lift without making it airy */
p{ line-height: 1.75; }

/* Accent colour replacements */
a{ color: var(--accent); }
a:hover{
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
}

header.major > :last-child{ border-bottom-color: var(--accent); }
#header{ border-bottom-color: var(--accent); }

/* Buttons */
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"]{
  box-shadow: inset 0 0 0 2px var(--accent);
  color: var(--accent) !important;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover{
  background-color: rgba(79,111,82,0.06);
}
.button.primary,
button.primary,
input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary{
  background-color: var(--accent);
}
.button.primary:hover,
button.primary:hover,
input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover{
  background-color: var(--accent-hover);
}
.button.primary:active,
button.primary:active,
input[type="submit"].primary:active,
input[type="reset"].primary:active,
input[type="button"].primary:active{
  background-color: var(--accent-active);
}

/* Focus rings */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* Sidebar warmth */
#sidebar{ background-color: var(--panel-soft); }
#sidebar > .inner > .alt{ background-color: #f4efe5; }

/* A touch more vertical breathing room */
#header{ padding-top: 6.25em; padding-bottom: 1.35em; }
#banner{ padding-bottom: 4.5em; }
#main > .inner > section{ padding-top: 6.25em; padding-bottom: 4.5em; }

/* Projects grid: fixed thumbnail height */
.posts article .image{
  height: 240px !important;
  overflow: hidden !important;
}
.posts article .image img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Adjust crop position for George W. Welch tile */
.posts article > a.image.gww img{
  object-position: center 25% !important;
}

/* Do not crop Aural Diversity logo */
.posts article > a.image.ad img{
  object-fit: contain !important;
  background: #ffffff;
}

/* Restrict size but keep entire image visible */
.music-hero img {
  max-width: 500px;   /* adjust to taste */
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;    /* centre it */
}

@media screen and (max-width: 736px){
  .music-hero img{ max-height: 240px; }
}

.music-hero figcaption {
  text-align: center;
  margin-top: 0.75em;
  font-size: 0.9em;      /* optional: slightly lighter */
  color: #666;           /* optional: softer tone */
}

/* ------------------------------------------------------------
   MENU: clearer hover/focus cues for submenu items
   (makes submenu links feel as interactive as the green headers)
------------------------------------------------------------ */

/* Submenu links (second level) */
#menu ul ul a{
  transition: background-color 0.12s ease, color 0.12s ease, padding-left 0.12s ease, border-left-color 0.12s ease;
  border-left: 3px solid transparent;
  padding-left: 1.1em; /* keeps alignment tidy */
}

/* Hover and keyboard focus */
#menu ul ul a:hover,
#menu ul ul a:focus-visible{
  background: rgba(79,111,82,0.08);   /* very light moss wash */
  border-left-color: rgba(79,111,82,0.45);
  padding-left: 1.35em;               /* tiny “engage” nudge */
  color: var(--text-strong);
  text-decoration: none;
  outline: none;
}

/* Optional: show current submenu item (if you add li.active or aria-current) */
#menu ul ul li.active > a,
#menu ul ul a[aria-current="page"]{
  background: rgba(79,111,82,0.10);
  border-left-color: rgba(79,111,82,0.65);
  font-weight: 600;
}

/* Inline section links (used on Compositions + Publications) */
.section-links{
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.section-links a{
  border-bottom: 0;
}

.section-links a:hover{
  border-bottom: 1px solid var(--accent);
}

/* --- Composition page pattern --- */

.meta {
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0.75;
  font-size: 0.95em;
}

.piece-figure {
  text-align: center;
  margin: 1.25rem 0 1.5rem 0;
}

.piece-figure img {
  max-width: 440px;   /* adjust to taste: 380–520 */
  width: 100%;
  height: auto;
  display: inline-block;
}

/* A compact “facts” block */
.piece-facts {
  display: grid;
  grid-template-columns: 10ch 1fr;
  gap: 0.25rem 1rem;
  margin: 1rem 0 1.5rem 0;
}

.piece-facts dt {
  font-weight: 600;
}

.piece-facts dd {
  margin: 0;
  opacity: 0.95;
}

.recording-list {
	margin: 1.5rem 0;
}

.recording-list li {
	margin-bottom: 0.75rem;
}

.work-list {
  list-style: none;
  padding-left: 0;
}

.work-list li {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 0.6em 0.9em;
  margin: 0.35em 0;
}

.work-list li:nth-child(odd) {
  background: #f7f7f7;
}

.work-list li:nth-child(even) {
  background: #f2f2f2;
}

.work-list {
  margin-top: 1em;
}

/* ===============================
   Composition catalogue styling
   =============================== */

.work-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.75em;
}

.work-list li {
  background: #fafafa;
  border: 1px solid rgba(210,210,210,0.6);
  border-radius: 4px;
  padding: 0.55em 0.8em;
  margin: 0.4em 0;
  line-height: 1.45;
}

.work-list li a {
  font-weight: 600;
}

.work-list li i {
  color: #555;
}

.work-list li {
  color: #444;
}

.highlights {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.highlights li {
  margin: 0.25em 0;
}

.highlights a {
  font-weight: 600;
}