/* ==========================
   Aural Diversity 2026
   Calm academic refresh
   Palette: #4EACDC (light), #24395F (dark)
   ========================== */

/* ----- Design tokens ----- */
:root{
  --brand: #4EACDC;
  --brand-dark: #24395F;

  --ink: #1f2937;         /* readable near-black */
  --muted: #4b5563;
  --paper: #fbfbfc;       /* very slight off-white */
  --panel: #f2f5f8;       /* sidebar/panel background */
  --line: #d6dde6;

  --link: #24395F;        /* keep links in the brand family */
  --link-hover: #16304d;

  --radius: 12px;
  --maxw: 980px;
  --readw: 760px;
}

/* ----- Baseline ----- */
*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 Georgia, "Times New Roman", Times, serif;
}

/* Links: visible, accessible, calm */
a{
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a:hover{ color: var(--link-hover); }
a:focus-visible{
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Images never overflow */
img{ max-width: 100%; height: auto; }

/* ----- Global layout alignment ----- */
#main{ width: 100%; }

/* Header bar */
#header{
  background: var(--brand-dark);
  border-bottom: 4px solid var(--brand);
}

/* Align header contents to the same width as page */
#logo, #menubar{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 16px;
}

/* ==========================
   Header motif (logo circle)
   ========================== */

#logo{
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Logo mark (pseudo-element so you don't need extra HTML) */
#logo::before{
  content: "";
  display: block;
  width: 70px;
  height: 70px;
  background: url("../images/AuralDiversity_logo_White.png") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
  opacity: 0.92;
}

@media (max-width: 520px){
  #logo::before{
    width: 56px;
    height: 56px;
  }
}

/* Logo text */
#logo_text h1{
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
}
#logo_text h1 a{
  color: #fff;
  text-decoration: none;
}
.logo_colour{ color: var(--brand); }

#logo_text h2{
  margin: 6px 0 0 0;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 400;
  color: #e8f3ff;
}

/* ----- Menu: simple, wrapping, consistent ----- */
#menubar{ padding-top: 0; }

ul#menu{
  list-style: none;
  margin: 0;
  padding: 10px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

ul#menu li{ margin: 0; padding: 0; }

ul#menu li a{
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
}

ul#menu li a:hover{
  background: rgba(78,172,220,0.18);
  border-color: rgba(78,172,220,0.45);
}

ul#menu li.selected a,
ul#menu li.selected a:hover{
  background: var(--brand);
  border-color: var(--brand);
  color: #0b1a2b;
}

/* Optional: make Subscribe a gentle button
   Only works if you add class="subscribe" to that <li> */
ul#menu li.subscribe a{
  background: var(--brand);
  border-color: var(--brand);
  color: #0b1a2b;
}
ul#menu li.subscribe a:hover{
  background: rgba(78,172,220,0.85);
  border-color: rgba(78,172,220,0.85);
}

/* ----- Main page area ----- */
#site_content{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 16px 28px 16px;

  /* Sidebar below content */
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#content{ order: 1; }
.sidebar{ order: 2; }

/* Single reading column + sidebar panel underneath */
#content, .sidebar{
  width: 100%;
  max-width: var(--readw);
  margin: 0 auto;
}

/* Spacing */
#content{ padding: 0; }
.sidebar{ margin-top: 18px; }

/* Sidebar styling */
.sidebar{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--muted);
}
.sidebar h3, .sidebar h4{
  color: var(--brand-dark);
}

/* Headings in content */
#content h1{
  margin-top: 0;
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--brand-dark);
}
#content h2{
  margin-top: 1.4em;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--brand-dark);
}
#content h3{
  margin-top: 1.1em;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--brand-dark);
}
#content h4{
  margin-top: 1em;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--brand-dark);
}

/* Lists: calmer rhythm */
#content ul{ padding-left: 1.2em; }
#content li{ margin: 0.25em 0; }

/* Horizontal rule */
hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.6em 0;
}

/* Footer */
#footer{
  background: var(--brand-dark);
  color: #e8f3ff;
  padding: 18px 16px;
  border-top: 4px solid var(--brand);
}
#footer a{ color: #fff; }

/* Small screens: slightly tighter header text */
@media (max-width: 520px){
  #logo_text h1{ font-size: 1.7rem; }
  #logo_text h2{ font-size: 1rem; }
  ul#menu li a{ padding: 8px 10px; }
}

/* ==========================
   Content components
   ========================== */

.book-cover{
  display: block;
  max-width: 240px;
  margin: 1.5em auto;
}

/* Centered lead text block (home page) */
.centered-lead{
  text-align: center;
  max-width: 700px;
  margin: 2.25em auto 1.5em auto;
}

/* Home page hero image */
.centered-figure{
  text-align: center;
  max-width: 650px;          /* adjust if needed */
  margin: 18px auto 28px auto;
}

.centered-figure img{
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;

  /* If the image feels a bit gloomy, uncomment ONE of these:
     filter: brightness(1.06) contrast(1.02);
     filter: brightness(1.08);
  */
}

.centered-figure figcaption{
  margin-top: 0.75em;
  font-size: 0.9em;
  color: var(--muted);
}

.centered-cta{
  text-align: center;
  margin: 1.5em 0 3em 0;
  font-weight: 500;
}

/* Utility text */
.lead{
  margin-top: 0.5rem;
  font-size: 1.05rem;
}
.small-note{
  color: var(--muted);
  font-size: 0.95em;
}
.note{
  margin: 0 0 1.2em 0;
  color: var(--muted);
  font-size: 0.98em;
}

/* ==========================
   Impact page helpers (optional)
   ========================== */
.impact-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 1em 0 1.6em 0;
}

@media (min-width: 860px){
  .impact-grid{
    grid-template-columns: 1fr 1fr;
  }
}

/* A compact variant of .event (use in a grid if you want) */
.impact-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 14px;
}

.impact-card h3{
  margin: 0 0 0.4em 0;
}

/* ==========================
   Conference page helpers
   ========================== */

.breadcrumb{
  margin: 0.4em 0 1.2em 0;
  font-size: 0.95em;
  color: var(--muted);
}
.breadcrumb a{ color: var(--link); }

/* ==========================
   Events page helpers
   ========================== */

.event{
  margin: 1.25em 0 1.75em 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.event h3{ margin-top: 0; }

.event-list{
  padding-left: 1.1em;
}
.event-list li{
  margin: 0.35em 0;
}

/* Collapsible archive blocks (details/summary) */
.archive-block{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  margin: 12px 0;
}

.archive-block summary{
  cursor: pointer;
  color: var(--brand-dark);
}

.archive-block[open] summary{
  margin-bottom: 8px;
}

.archive-block ul{
  margin: 0.75em 0 0.25em 1.1em;
}

/* Meta line (optional) */
.meta{
  color: var(--muted);
  font-size: 0.95em;
}
.meta a{ text-decoration: underline; }

/* Book cover styling for Research page */

.book-cover {
  float: right;
  max-width: 180px;
  height: auto;
  margin-left: 1.5em;
}

.caption {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5em;
}