/* -----------------------------
   Base sizing & typography
   ----------------------------- */

html {
  font-size: 62.5%;
  height: 100%;
  background: #f3dfff; /* purple background spans full page, alt: f5d4ff */ 
}

body {
  font-size: 1.8em;
  line-height: 1.7;
  font-weight: normal;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #25112B;

  min-height: 100%;
  margin: 25px auto;
  max-width: 800px;

  background: transparent; /* no extra background box */
}

/* Center the about section */
#about {
  max-width: 800px;   /* narrower than the main column */
  margin: 0 auto;     /* center the block itself */
  text-align: center; /* center all text + image inside */
}

#publications ul {
  list-style: disc;
  padding-left: 1.5rem;  /* keeps bullets aligned */
}

#publications li {
  margin-bottom: 1.2em;  /* space between each reference */
  line-height: 1.6;      /* easier to read multi-line entries */
}
#publications li:last-child {
  margin-bottom: 0;
}

/* -----------------------------
   Links
   ----------------------------- */

/* Base link styles (applies everywhere: header, footer, content) */
a {
  font-weight: bold;
  text-decoration: none;
  color: #4b0082;                /* consistent purple */
  text-underline-offset: 0.12em;
  text-decoration-thickness: 0.08em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus {
  color: #c084fc;                /* darker purple on hover/focus */
  text-decoration: underline;
  text-decoration-color: #c084fc;
}

a:focus {
  outline: 2px solid rgba(167,125,194,0.35);
  outline-offset: 2px;
}

small {
  font-size: 75%;
}

/* -----------------------------
   Headings
   ----------------------------- */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1.4rem;
  font-weight: 500;
  text-rendering: optimizeLegibility;
}

h1 { font-size: 3.8rem; line-height: 1.25; }
h2 { font-size: 3.2rem; line-height: 1.28; }
h3 { font-size: 2.6rem; line-height: 1.30; }
h4 { font-size: 2.0rem; line-height: 1.40; }
h5 { font-size: 1.8rem; line-height: 1.50; }
h6 { font-size: 1.6rem; line-height: 1.50; }

/* -----------------------------
   Paragraphs
   ----------------------------- */

p {
  margin: 0 auto 1.2em auto;
}

/* -----------------------------
   Quotes & Blockquotes
   ----------------------------- */

q {
  quotes: '\00201C' '\00201D';
}
q:before { content: open-quote; }
q:after  { content: close-quote; }

blockquote {
  border-left: 2px solid #AFC0D2;
  margin: 1.6em 10%;
  padding: .9em 1.2em;
  font-size: 1.9rem;
  background: rgba(255,255,255,0.2); /* soft white tint for readability */
}
blockquote p:last-child { margin-bottom: 0; }

/* -----------------------------
   Layout sections
   ----------------------------- */

/* remove “bubble panels” — keep content transparent */
header, #content, footer {
  background: transparent;
  padding: 25px;
  color: #25112B;
}

/* Figure captions */
figcaption {
  color: #25112B;
  font-size: 1em;
  padding: 1px;
  text-align: center;
}

/* Media elements scale within content */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.lead-figure img {
  max-width: 60%;   /* or 100% if you want edge-to-edge */
  height: auto;
  margin: 0 auto;   /* center horizontally */
  display: block;
}

/* -----------------------------
   Menu (top nav)
   ----------------------------- */

ul.main-menu {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  list-style: none;
  gap: .5rem 0;
}
ul.main-menu li a {
  margin-right: 20px;
  font-size: 2.0rem;
  border-bottom: solid transparent 3px;
}

ul.main-menu li a:hover,
ul.main-menu li a:focus {
  border-bottom-color: #a77dc2;  /* underline effect in nav */
}

/* -----------------------------
   Utility classes
   ----------------------------- */

.hide { display: none; }
.show { display: block; }

/* -----------------------------
   Footer tweaks
   ----------------------------- */

footer {
  text-align: center;
  color: #25112B;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* -----------------------------
   Responsive touch
   ----------------------------- */

@media (min-width: 900px) {
  header { padding-top: 30px; }
}
