/* Dr Maria Karaflou Michalas — professional academic site
   Palette: teal #7ec6ba · soft terracotta #ce9d88 */

:root {
  --teal: #7ec6ba;
  --teal-deep: #4a9a8e;
  --teal-soft: #e8f5f2;
  --teal-ink: #2d5f57;
  --terra: #ce9d88;
  --terra-deep: #b07d68;
  --terra-soft: #f7efe9;
  --ink: #1c2a28;
  --ink-muted: #4a5a57;
  --ink-faint: #6b7a77;
  --paper: #fbfaf8;
  --paper-alt: #f3f1ed;
  --white: #ffffff;
  --line: rgba(28, 42, 40, 0.1);
  --shadow: 0 12px 40px rgba(28, 42, 40, 0.06);
  --radius: 14px;
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-ink);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

h1 { font-size: clamp(2.35rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.45rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0; padding: 0; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.monogram {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.monogram-sm {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0.85rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-creds {
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal-ink);
}

.nav-cta {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-ink) !important;
}

.nav-cta:hover {
  background: var(--teal);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: var(--ink);
  border-radius: 2px;
  margin-inline: auto;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(126, 198, 186, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 5% 90%, rgba(206, 157, 136, 0.16), transparent 50%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.hero h1 .creds {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ink-muted);
  letter-spacing: 0;
}

.hero-role {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--terra-deep);
  margin: 0.35rem 0 0.5rem;
}

.hero-meta {
  font-size: 0.98rem;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}

.hero-lead {
  max-width: 38rem;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--teal-deep);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(74, 154, 142, 0.28);
}

.btn-primary:hover {
  background: var(--teal-ink);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-ink);
  background: var(--teal-soft);
}


.portrait-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 0.85rem 0.85rem 1.35rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.portrait-photo {
  display: block;
  width: 100%;
  max-width: 18rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: calc(var(--radius) - 2px);
  margin: 0 auto 1rem;
  background: var(--teal-soft);
}

.portrait-card .monogram-caption {
  margin-top: 0;
}
.monogram-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.monogram-large {
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-deep) 55%, var(--terra) 130%);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 28px rgba(74, 154, 142, 0.25);
}

.monogram-caption {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.monogram-sub {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.75rem) 0;
}

.section-alt {
  background: var(--paper-alt);
  border-block: 1px solid var(--line);
}

.section-header {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-intro {
  color: var(--ink-muted);
  margin: 0;
  font-size: 1.05rem;
}

/* Timeline */
.timeline {
  list-style: none;
  border-left: 2px solid var(--teal);
  margin-left: 0.35rem;
  padding-left: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem 1.5rem;
  padding: 0 0 1.75rem 1.5rem;
  position: relative;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.4rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal-deep);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.timeline time {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: 0.02em;
  padding-top: 0.15rem;
}

.timeline h3 {
  margin-bottom: 0.3rem;
}

.timeline p {
  margin: 0;
  color: var(--ink-muted);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: 0 4px 18px rgba(28, 42, 40, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(126, 198, 186, 0.55);
  box-shadow: var(--shadow);
}

.card-year {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra-deep);
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Expertise */
.expertise-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}

.expertise-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  border-top: 3px solid var(--teal);
}

.expertise-list li:nth-child(even) {
  border-top-color: var(--terra);
}

.expertise-list h3 {
  margin-bottom: 0.4rem;
}

.expertise-list p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Publications */
.pub-list {
  list-style: none;
  counter-reset: pub;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-list li {
  counter-increment: pub;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.25rem 3.5rem;
  position: relative;
}

.pub-list li::before {
  content: counter(pub, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 1.3rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.pub-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--ink);
}

.pub-meta {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.pub-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

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

.pub-note {
  margin-top: 1.75rem;
  padding: 1.35rem 1.4rem;
  background: var(--terra-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(206, 157, 136, 0.35);
}

.pub-note h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.pub-note ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pub-note li {
  color: var(--ink-muted);
  font-size: 0.98rem;
  padding-left: 1rem;
  border-left: 3px solid var(--terra);
}

.pub-note a {
  font-weight: 600;
  white-space: nowrap;
}

/* Mentorship */
.mentorship-highlight {
  background: linear-gradient(135deg, var(--teal-soft), var(--white) 55%);
  border: 1px solid rgba(126, 198, 186, 0.4);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  margin-bottom: 1.75rem;
}

.mentorship-highlight p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 46rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--teal-deep);
  color: var(--white);
}

.badge-accent {
  background: var(--terra);
  color: var(--white);
}

.affiliations h3 {
  margin-bottom: 0.9rem;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill-list li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Contact */
.section-contact {
  background:
    linear-gradient(180deg, rgba(126, 198, 186, 0.12), transparent 40%),
    var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--teal-soft);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}

.contact-list a {
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-tag {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* Responsive */
@media (max-width: 880px) {
  .hero-grid,
  .card-grid,
  .expertise-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1.15rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0.5rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

  .hero-aside {
    order: -1;
    max-width: 18rem;
    margin-inline: auto;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
  }

  .brand-text {
    display: flex;
    min-width: 0;
  }

  .brand-name {
    font-size: clamp(0.78rem, 3.6vw, 0.95rem);
    white-space: normal;
    overflow: visible;
    line-height: 1.2;
  }

  .brand-creds {
    font-size: 0.68rem;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .pub-list li {
    padding-left: 1.25rem;
  }

  .pub-list li::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.site-nav a.is-active {
  color: var(--teal-ink);
}
