/* =========================================================
   Ayumi site styles (clean version)
   - Fonts: Poppins (headings), Source Sans 3 (body)
   - Home News: date -> title, single row, no big box
   - News page (.page-news): grid layout, 3 columns
========================================================= */

/* -----------------------------
   1) Design tokens
------------------------------ */
:root {
  --ink: #13505b;
  --muted: #6b7280;

  --primary: #13505b;
  --accent: #cc741a;
  --highlight: #F4A460;

  --bg: #f8f9fa;
  --panel: #f6f8fb;
  --border: #e5eaf0;

  --radius: 14px;
}


/* -----------------------------
   2) Base / typography
------------------------------ */
body {
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.03rem;
}

h1, h2, h3, h4 {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

main#quarto-document-content {
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0.35em;
}

h2 {
  margin-top: 2.4em;
  padding-bottom: 0.35em;
  border-bottom: none;
}
h3 {
  margin-top: 1.6em;
  color: var(--primary);
}

.soft-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1em 1.2em;
}


/* -----------------------------
   3) Navbar
------------------------------ */
.navbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
}
.navbar .nav-link {
  font-weight: 600;
}
.navbar .nav-link:hover {
  color: var(--accent);
}


/* -----------------------------
   4) Footer
------------------------------ */
footer.footer {
  border-top: 1px solid var(--border);
  margin-top: 3em;
  padding-top: 1.2em;
  color: var(--muted);
}


/* =========================================================
   5) NEWS LISTING
========================================================= */

/* ---------------------------------------
   5A) Home page listing
   - date + title, centered, one row
---------------------------------------- */
body:not(.page-news) .quarto-listing {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 0.8em;
}

body:not(.page-news) .quarto-listing .quarto-post {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  padding: 0.15rem 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--border);
}

body:not(.page-news) .quarto-listing .quarto-post:last-child {
  border-bottom: none;
}

body:not(.page-news) .quarto-listing .quarto-post .metadata {
  order: 1 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

body:not(.page-news) .quarto-listing .quarto-post .body {
  order: 2 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

body:not(.page-news) .quarto-listing .quarto-post .body h3 {
  margin: 0;
}

body:not(.page-news) .quarto-listing .listing-date {
  font-size: 0.9rem !important;
  color: var(--muted) !important;
  white-space: nowrap;
}

body:not(.page-news) .quarto-listing .listing-title a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
body:not(.page-news) .quarto-listing .listing-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.more-news {
  text-align: center;
  margin-top: 0.7rem;
}
.more-news a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.more-news a:hover {
  color: var(--accent);
}


/* ---------------------------------------
   5B) News page (.page-news)
   - grid layout, 3 columns, no card box
---------------------------------------- */
body.page-news main#quarto-document-content {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

body.page-news .quarto-listing {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 1em;
}

body.page-news .quarto-grid-item {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 0 1.2em 0 !important;
  border-bottom: 1px solid var(--border) !important;
}

body.page-news .quarto-listing-cols-3,
body.page-news .quarto-listing-cols-2,
body.page-news .quarto-listing-cols-1 {
  grid-template-columns: repeat(3, 1fr) !important;
}

body.page-news .quarto-grid-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

body.page-news .quarto-grid-item .listing-title a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
body.page-news .quarto-grid-item .listing-title a:hover {
  color: var(--accent);
}

body.page-news .quarto-grid-item .listing-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2em;
}

body.page-news .quarto-grid-item .listing-description {
  font-size: 0.95rem;
  color: #4a5568;
  margin-top: 0.4em;
  line-height: 1.6;
}


/* =========================================================
   6) ABOUT PAGE
========================================================= */
.about-intro {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2em;
  align-items: stretch;
  margin-bottom: 2em;
}

.about-intro .about-photo {
  align-self: stretch;
  height: 100%;
}

.about-intro .about-photo p {
  margin: 0;
  height: 100%;
}

.about-intro .about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.about-intro .about-current {
  min-width: 0;
}

.about-current {
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  .about-intro .about-photo p {
    height: auto;
  }
  .about-intro .about-photo img {
    height: auto;
  }
}

.social-icons {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.9rem !important;
  flex-wrap: nowrap !important;
  margin: 0.6rem 0 !important;
}

.social-icons .social-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  color: var(--primary) !important;
  line-height: 1 !important;
}

.social-icons .social-icon svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}

.social-icons .social-icon:hover {
  color: var(--accent) !important;
}

.profile-links a {
  color: #8B3A62;
}

.cv-links a {
  color: #8B3A62;
}

.update-entry {
  display: flex;
  gap: 1em;
  padding: 0.15rem 0;
  border-bottom: none;
  align-items: baseline;
}
.update-entry:last-child {
  border-bottom: none;
}
.update-date {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  flex: 0 0 auto;
}
.update-text {
  font-size: 1.0rem;
  color: var(--ink);
  text-align: left;
}


/* -----------------------------
   Search icon colour
------------------------------ */
#quarto-search .aa-DetachedSearchButton,
#quarto-search .quarto-search-button,
.quarto-search-button {
  color: var(--primary) !important;
}

#quarto-search .aa-DetachedSearchButton:hover,
#quarto-search .quarto-search-button:hover,
.quarto-search-button:hover {
  color: var(--accent) !important;
}

#quarto-search .aa-DetachedSearchButton svg,
#quarto-search .quarto-search-button svg,
.quarto-search-button svg {
  stroke: currentColor !important;
  fill: none !important;
}