@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ---------------------------------------------------------------------- */
/* Reset & tokens                                                          */
/* ---------------------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --text-secondary: #444444;
  --text-muted: #888888;
  --border: #e0e0e0;
  --accent-soft: #f5f5f5; /* active tab fill */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 0.5;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 32px;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */

.header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 20px;
}

.header-text {
  flex: 0 0 63%;
}

.header-photo {
  flex: 0 0 calc(37% - 32px); /* leaves room for the 32px gap */
}

.header-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.name {
  font-size: 2.0rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.bio p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
}

.bio p:last-of-type {
  margin-bottom: 0;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.social-link i {
  font-size: 13px;
  color: var(--text-muted);
}

.social-sep {
  color: var(--border);
}

/* ---------------------------------------------------------------------- */
/* Section headers                                                         */
/* ---------------------------------------------------------------------- */

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

section {
  margin-bottom: 48px;
}

/* ---------------------------------------------------------------------- */
/* Category tags                                                           */
/* ---------------------------------------------------------------------- */

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------------- */
/* Category filter                                                         */
/* ---------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.filter-btn {
  font-family: inherit;
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

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

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

.filter-btn:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------- */
/* Publication list                                                        */
/* ---------------------------------------------------------------------- */

.filter-bar + .pub-group {
  margin-top: 24px;
}

.pub-group + .pub-group {
  margin-top: 28px;
}

.pub-group[hidden] {
  display: none;
}

.pub-group-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pub-list {
  list-style: none;
}

.pub {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.pub:first-child {
  border-top: 1px solid var(--border);
}

.pub[hidden] {
  display: none;
}

.pub-authors strong {
  font-weight: 600;
  color: var(--text);
}

.pub-title {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.pub-title:hover {
  text-decoration: underline;
  opacity: 1;
}

.pub-venue em {
  color: var(--text);
}

.pub-tags .tag {
  font-size: 10px;
  padding: 0 6px;
  margin: 0 0 0 4px;
  vertical-align: 1px;
}

.pub-pdf {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.award-badge {
  display: inline-block;
  background: #eee09e;
  color: #4f5357;
  font-size: 10px;
  font-weight: 500;
  padding: 0 6px;
  margin-left: 2px;
  border-radius: 8px;
  vertical-align: 1px;
}

.award-badge i {
  margin-right: 3px;
}

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

.footer {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding-top: 24px;
}

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

@media (max-width: 700px) {
  .container {
    padding: 48px 20px;
  }

  .name {
    font-size: 1.5rem;
  }

  .header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }

  .header-text,
  .header-photo {
    flex: 1 1 auto;
    width: 100%;
  }

  .header-photo {
    max-width: 140px;
  }
}

@media (max-width: 600px) {
  .social-icons {
    gap: 6px 12px;
  }

  .social-link {
    font-size: 13px;
  }
}

@media (max-width: 500px) {
  .container {
    padding: 32px 16px;
  }

  .name {
    font-size: 1.3rem;
  }
}

/* ---------------------------------------------------------------------- */
/* Additions for abouyamourn.github.io                                     */
/* ---------------------------------------------------------------------- */

:root {
  --meth: #7a1f1f;       --meth-bg: #faf0f0;
  --ai: #5c6b2f;         --ai-bg: #f3f5ec;
  --method: #4f6275;     --method-bg: #eff2f5;
}

/* Tag chips */
.tags { margin-bottom: 8px; }
.tags .tag { margin-right: 4px; margin-bottom: 4px; }
.tag.area-meth  { color: var(--meth);   border-color: var(--meth);   background: var(--meth-bg); }
.tag.area-ai    { color: var(--ai);     border-color: var(--ai);     background: var(--ai-bg); }
.tag.tag-method { color: var(--method); border-color: var(--method); background: var(--method-bg); }

/* Filter bars: two rows, label at left */
.filter-bar { margin-bottom: 10px; align-items: center; }
.filter-bar:last-of-type { margin-bottom: 24px; }
.filter-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 56px;
}
.filter-btn.area-meth.active  { color: var(--meth);   border-color: var(--meth);   background: var(--meth-bg); }
.filter-btn.area-ai.active    { color: var(--ai);     border-color: var(--ai);     background: var(--ai-bg); }
.filter-btn.tag-method.active { color: var(--method); border-color: var(--method); background: var(--method-bg); }

/* CV card */
.cv-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 63%;
  padding: 12px 18px;
  margin-bottom: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
}
.cv-card:hover { background: var(--accent-soft); opacity: 1; }
.cv-card i { font-size: 22px; color: var(--text-muted); }
.cv-card-text { display: flex; flex-direction: column; }
.cv-card-title { font-size: 15px; font-weight: 500; }
.cv-card-sub { font-size: 12px; color: var(--text-muted); }

/* Britten clipping (one stave), under the CV card, shown at native size */
.variance { margin: -28px 0 40px; }
.variance a { display: inline-block; }
.variance img { width: 96px; height: auto; display: block; }
.variance figcaption { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Bio phrases that double as Area filters */
.bio-tag {
  text-decoration: none;
  font-weight: 400;
  padding: 0 2px;
  border-radius: 3px;
}
.bio-tag:hover { opacity: 1; text-decoration: underline; }
.bio-tag.area-meth { color: var(--meth); background: var(--meth-bg); }
.bio-tag.area-ai   { color: var(--ai);   background: var(--ai-bg); }

/* 404 */
.lost {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.lost img { width: 240px; max-width: 80vw; image-rendering: auto; }
.lost p { font-size: 13px; color: var(--text-muted); }

@media (max-width: 700px) {
  .cv-card { width: 100%; }
}
@media (max-width: 500px) {
  .filter-label { min-width: 100%; }
}
