/* ============================================================
   STYLE.CSS
   All the visual design lives in this one file, organized into
   labeled sections. Find the section you want to change (use
   your editor's search / Ctrl+F) and edit the values there.

   Colors and spacing are defined once at the top as "variables"
   (the --something: value; lines) so you can change the whole
   site's color scheme by editing just a few lines in one place.
   ============================================================ */

:root {
  /* ---- COLORS ---- */
  --color-text: #1a1a1a;        /* main body text */
  --color-background: #ffffff;  /* page background */
  --color-muted: #6b6b6b;       /* secondary/lighter text */
  --color-border: #e5e5e5;      /* thin dividing lines */
  --color-accent: #1a1a1a;      /* buttons, active nav link */
  --color-accent-text: #ffffff; /* text on top of accent color */

  /* ---- FONT ---- */
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- SPACING ---- */
  --page-max-width: 1200px;
  --page-padding: 2rem;

  p {
  margin-bottom: 1.5rem; /* increase this number for more space, decrease for less */
}
}

/* ---- RESET ----
   Removes inconsistent default spacing/styles browsers add. */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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


/* ============================================================
   HEADER / NAV BAR
   ============================================================ */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 2rem var(--page-padding);
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 1rem;
  color: var(--color-text);
}

.nav-link:hover {
  text-decoration: underline;
}

.nav-link--active {
  text-decoration: underline;
  font-weight: 500;
}


/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
.site-main {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding) 4rem;
}


/* ============================================================
   HERO SECTION (homepage: big title + photo)
   ============================================================ */
.hero {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  padding-top: 3rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem); /* scales down smoothly on small screens */
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--color-text);
}

.hero-image {
  flex: 1;
  min-width: 280px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 4px;
}

/* Stack the hero vertically on narrow/mobile screens */
@media (max-width: 800px) {
  .hero {
    flex-direction: column;
  }
  .hero-text {
    padding-top: 0;
  }
}


/* ============================================================
   ACCORDION (used for "About EA / About us / What we do" on the
   homepage, and for week-by-week syllabus content on other pages)
   ============================================================ */
.accordion {
  border-top: 1px solid var(--color-border);
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

/* The clickable title row. "summary" is the built-in HTML
   element for a <details> block's always-visible heading. */
.accordion-item summary {
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* removes the default triangle marker */
}

/* Add our own custom expand/collapse arrow */
.accordion-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  font-size: 1.5rem;
}

.accordion-item[open] summary::after {
  content: "\2212"; /* minus sign, shown when expanded */
}

.accordion-item summary::-webkit-details-marker {
  display: none; /* removes default arrow in Safari/Chrome */
}

.accordion-item p {
  margin-top: 1rem;
  color: var(--color-muted);
  max-width: 65ch; /* keeps long paragraphs readable */
}

/* ---- Quote block inside accordion weeks ---- */
.week-quote {
  background-color: #f2efe9;   /* soft background so it stands out */
  border-left: 4px solid var(--color-text);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.1rem;
  max-width: 60ch;
}

.week-quote-author {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ---- Simple highlighted textblock ---- */
.texthighlightbox {
  background-color: #f2efe9;
  padding: 1rem 1rem 1rem 2rem;  /* more padding-left to compensate */
  margin: 1.5rem 0 1.5rem 0rem;   /* negative left margin pulls the box left */
  font-style: normal;
  font-size: 1rem;
  max-width: 700px;
}





/* ---- Informative section ---- */
.week-info {
  margin: 1.5rem 0;
}

/* ---- Required readings ---- */
.week-readings {
  margin-top: 1.5rem;
}

.week-readings h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.week-readings ul {
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.week-readings a {
  text-decoration: underline;
}



/* ============================================================
   GENERIC PAGE CONTENT (Events / STAIR / Arete placeholder pages)
   ============================================================ */
.page-content {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.event-item {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.event-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.event-item p {
  color: var(--color-muted);
}


/* ============================================================
   FOOTER (participation call-to-action on every page)
   ============================================================ */
.site-footer {
  background-color: #f7f7f7;
  border-top: 1px solid var(--color-border);
  padding: 4rem var(--page-padding);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.footer-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-text {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.footer-button {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-accent-text);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
}

.footer-button:hover {
  opacity: 0.85;
  text-decoration: none;
}

.footer-meta {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}



/* ============================================================
   PUBLICATIONS (Arete Fellowship page)
   Add this whole section to the end of assets/css/style.css.
   Uses the same --color-* variables as the rest of the site,
   so it stays in sync if you ever change the palette up top.
   ============================================================ */

.publications-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}

.publications-search {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-text);
}

.publications-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pub-filter-btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-muted);
  cursor: pointer;
  font-family: var(--font-main);
}

.pub-filter-btn:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.pub-filter-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-text);
}

.publications-list {
  border-top: 1px solid var(--color-border);
}

.publication-entry {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.publication-entry[hidden] {
  display: none;
}

.publication-entry summary {
  cursor: pointer;
  list-style: none;
}

.publication-entry summary::-webkit-details-marker {
  display: none;
}

.pub-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.pub-title {
  font-size: 1.15rem;
  font-weight: 600;
  max-width: 65ch;
}

.pub-expand-icon {
  font-size: 1.3rem;
  color: var(--color-muted);
  flex-shrink: 0;
}

.publication-entry[open] .pub-expand-icon::before {
  content: "\2212"; /* minus */
}
.pub-expand-icon::before {
  content: "+";
}

.pub-meta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.pub-topic-tag {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: #f2efe9;
  color: var(--color-text);
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.pub-abstract {
  margin-top: 0.75rem;
  color: var(--color-muted);
  max-width: 65ch;
}

.pub-preview {
  margin-top: 1.25rem;
}

.pub-preview embed {
  width: 100%;
  height: 600px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.pub-preview-fallback {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.pub-download-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
}

.publications-empty {
  padding: 2rem 0;
  color: var(--color-muted);
  font-style: italic;
}

@media (max-width: 600px) {
  .pub-title-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  .pub-preview embed {
    height: 400px;
  }
}


/* ---- Footer icon links (Instagram / Email) ---- */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
}

.footer-link:hover {
  color: var(--color-text);
}

.footer-link svg {
  flex-shrink: 0;
}
/* ---- Footer CTA buttons side by side ---- */
.footer-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}