/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Playfair+Display:wght@400;700&display=swap');

/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #fff7f3;
  color: #3a2c2b;
  font-family: 'Merriweather', serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main {
  flex: 1;
}


img {
  max-width: 100%;
  display: block;
}

/* NOTE: the global background canvas is kept but does not draw petals (footer-only animation) */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(120deg, #fff8f6, #fff7f3); /* warm, neutral */
}

/* NAV (sticky, top-right on desktop) */
header + nav,
nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 12px 36px;
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,249,247,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(58,40,35,0.03);
}

/* Mobile toggle (hamburger) */
.nav-toggle {
  display: none;
  cursor: pointer;
  margin-right: auto;
  border: none;
  background: transparent;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #3a2c2b;
  display: block;
  margin: 4px 0;
  border-radius: 3px;
}

/* Nav buttons */
.nav-btn {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  color: #3a2c2b;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  font-weight: 700;
  transition: all 200ms ease;
}
.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(58,44,43,0.06);
}
.nav-active {
  background: #efe2dd;
  border-color: rgba(58,44,43,0.08);
}

/* Mobile nav behavior */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  nav { flex-direction: column; align-items: stretch; padding: 10px 18px; gap: 8px; }
  .nav-btn { display: none; width: 100%; text-align: right; padding: 10px 16px; }
  nav.show .nav-btn { display: block; }
}

/* HERO (header) */
.hero {
  text-align: left;
  padding: 72px 40px 36px;
  /*background: linear-gradient(180deg, rgba(255,235,239,0.98), rgba(255,247,244,0.95)); */
  
  background: linear-gradient(
  180deg,
  rgba(255, 230, 236, 0.98) 0%,   /* hotter pink at the top */
  rgba(255, 241, 240, 0.96) 50%,  /* gentle soft mid-tone */
  rgba(255, 247, 244, 0.95) 100%  /* very light base at bottom */);

  border-bottom: 1px solid rgba(58,40,35,0.02);
}
.hero-inner { max-width: 1080px; margin: 0 auto; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 6.2vw, 56px);
  font-weight: 700;
  color: #4b3a36;
  margin-bottom: 10px;
}
.hero-sub { color: #6b534e; font-size: 18px; margin-left: 4px; }

/* Page panels */
.panel { padding: 44px 20px; max-width: 1080px; margin: 0 auto; }
.reveal { opacity: 0; transform: translateY(18px); transition: all 580ms cubic-bezier(.2,.9,.25,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Article / publications */
article {
  background: #fff;
  padding: 30px;
  margin: 32px auto;
  border-radius: 12px;
  max-width: 920px;
  box-shadow: 0 10px 32px rgba(55,40,35,0.06);
  transition: transform 260ms cubic-bezier(.2,.9,.25,1), box-shadow 260ms ease;
  border: 1px solid rgba(58,40,35,0.03);
  transform-origin: center top;
  will-change: transform, box-shadow;
}
article:hover {
  transform: translateY(-10px) scale(1.06);
  box-shadow: 0 30px 80px rgba(55,40,35,0.14);
  z-index: 12;
}

/* Titles inside article */
article h1,
article h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #3f2e2d;
  margin-bottom: 8px;
  transition: color 240ms cubic-bezier(.2,.9,.25,1), transform 200ms ease;
}
article h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 6px;
}
article h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: rgba(233,210,206,0.95);
  margin-top: 10px;
}
article h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: rgba(233,210,206,0.95);
  margin-top: 8px;
}
article:hover h1,
article:hover h2 { color: #ff6b81; }

/* Link styling inside articles */
article a { color: #7d514a; text-decoration: none; font-weight: 700; transition: color 180ms ease; }
article a:hover { color: #ff5268; }

.article-note { text-align: right; font-size: 0.9em; color: #6b534e; }

/* Authors line */
.pub-authors {
  font-weight: 700;
  color: #5a3f3a;
  margin-bottom: 20px;
  display: block;
}

/* Publication image */
.publication-image {
  text-align: center;
  margin: 18px 0 22px;
}
.publication-image img {
  max-width: 84%;
  height: auto;
  border-radius: 12px;
  transition: transform 350ms cubic-bezier(.2,.9,.3,1), box-shadow 350ms ease;
  box-shadow: 0 10px 28px rgba(55,40,35,0.08);
  display: inline-block;
  transform-origin: center center;
}
.publication-image img:hover {
  transform: scale(1.04);
  box-shadow: 0 22px 48px rgba(55,40,35,0.16);
}

/* Abstract / paragraph style */
article p { color: #4f3d38; margin-bottom: 16px; line-height: 1.72; }

/* Global link style */
a { color: #7d514a; text-decoration: underline; }

/* Shared action button style */
.preprint-btn,
.contact-form button,
button.action-btn {
  display: inline-block;
  background: #ff6b81;
  color: white;
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 180ms ease, background 180ms ease, box-shadow 160ms ease;
}
.preprint-btn:hover,
.contact-form button:hover,
button.action-btn:hover {
  transform: translateY(-3px);
  background: #ff5268;
  box-shadow: 0 8px 18px rgba(255,82,104,0.12);
}

/* About layout */
.about-content { display: flex; gap: 36px; align-items: stretch; flex-wrap: wrap; }
.about-text { flex: 1 1 60%; padding: 14px 28px 14px 6px; }
.about-image {
  flex: 0 0 34%;
  min-width: 220px;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}
.about-text p {
  margin-bottom: 1em;  /* space after each paragraph */
  margin-top: 1em;     /* optional: adds a bit of space before paragraph */
}

.about-image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; box-shadow: none; }

/* Contact area - form and social icons */
.contact-area { display: flex; gap: 36px; align-items: flex-start; flex-wrap: wrap; }
.contact-form {
  flex: 1 1 58%;
  background: rgba(255,255,255,0.98);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(55,40,35,0.04);
  border: 1px solid rgba(58,40,35,0.03);
}
.contact-form label { display: block; margin-bottom: 6px; color: #5a3f3a; font-weight: 700; font-size: 0.95rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(58,40,35,0.08);
  margin-bottom: 12px;
  font-family: 'Merriweather', serif;
  font-size: 0.98rem;
  color: #3a2c2b;
  background: #fff;
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* Alternate contact column: email + social icons */
.contact-info { flex: 0 0 300px; min-width: 220px; }
.contact-info .email-line {
  background: rgba(255,245,244,0.9);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(58,40,35,0.03);
  font-weight: 600;
  color: #5a3f3a;
  margin-bottom: 14px;
}
.social-icons { display: flex; gap: 12px; margin-top: 10px; }
.social-icons a {
  display: inline-block;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(58,40,35,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.social-icons img { width: 20px; height: 20px; object-fit: contain; opacity: 0.95; }

/* ========================
   FOOTER — clean & consolidated
   ======================== */

.site-footer {
  position: relative;                    
  overflow: hidden;                      
  text-align: center;
  padding: 20px 20px 40px;
  background: linear-gradient(
  180deg, 
  #fff7f3 0%,       /* your current top color */
  #ffe3d1 50%,      /* a gentle peachy-orange mid */
  #ffd6b3 100%      /* warm orange at the bottom */);

  /* background: linear-gradient(180deg, rgba(255,249,247,1), rgba(255,246,244,0));
  border-top: 1px solid rgba(58,40,35,0.03); 
  
  color: #6b534e;*/
  font-size: 14px;
  margin-top: 0;
  box-sizing: border-box;
}

/* single authoritative canvas rule (behind content) */
.footer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;                             
}

/* footer content must sit above the canvas */
.footer-content {
  position: relative;
  z-index: 2;
}

/* signature block */
.footer-signature {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  text-align: center;
}

/* signature image: constrained and responsive */
.footer-signature img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 180px;                      
  object-fit: contain;
  margin: 0 auto;                         /* removed bottom margin */
  transition: transform 0.25s ease;
}
.footer-signature img:hover { transform: scale(1.04); }

/* links and small helpers */
.footer-links a {
  color: #6b534e;
  text-decoration: underline;
  margin: 0 5px;
}
.footer-links a:hover { opacity: 0.8; }

/* consistent spacing for footer children */
.site-footer .container > * { margin: 16px 0; }


/* =========================
   RESPONSIVE & ACCESSIBILITY
   ========================= */

@media (max-width: 820px) {
  .contact-area { gap: 20px; }
  .contact-form, { flex: 1 1 100%; min-width: 0; width: 100%; }
  .contact-web { display: none; }
  .hero { padding: 48px 14px 28px; text-align: center; }
  .hero-sub { margin-left: 0; }
  .publication-image img { max-width: 92%; }
  .panel { padding: 28px 14px; }
  article { margin: 18px 12px; padding: 20px; max-width: 92%; }
  .about-content { flex-direction: column-reverse; gap: 18px; }
  .about-image { width: 80%; margin: 0 auto; justify-content: center; }
  nav { padding: 10px 14px; }
}

/* tiny screens: ensure signature scales nicely */
@media (max-width: 479px) {
  .footer-signature img { max-width: 94%; max-height: 160px; }
}

/* focus outlines for accessibility */
a:focus,
.nav-btn:focus,
.contact-form button:focus,
.preprint-btn:focus {
  outline: 3px solid rgba(255,210,205,0.45);
  outline-offset: 3px;
}

