/* Mobin Zarreh: personal site.
   Light and neutral, with ASU maroon as the one accent and a touch of gold. */

:root {
  --maroon: #8c1d40;
  --maroon-dark: #6e1632;
  --maroon-tint: #f7eef1;
  --gold: #ffc627;
  --gold-tint: #fff6db;

  --ink: #191919;
  --text: #2d2d2d;
  --muted: #5f5f5f;
  --faint: #8a8a8a;
  --line: #e7e5e1;
  --bg: #ffffff;
  --bg-soft: #f8f7f5;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(25, 25, 25, 0.04), 0 4px 16px rgba(25, 25, 25, 0.04);
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-dark); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }

/* A short gold rule over section titles: the gold, used sparingly */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 10px;
}
.rule::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 14px;
}

/* ---- header ---------------------------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; color: var(--ink); font-size: 1.05rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; color: var(--maroon); }
.brand span { color: var(--maroon); }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--maroon); box-shadow: inset 0 -2px 0 var(--maroon); border-radius: 0; }
.nav a.nav-cta { color: var(--maroon); border: 1px solid var(--maroon); margin-left: 6px; padding: 7px 14px; }
.nav a.nav-cta:hover { background: var(--maroon); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; color: var(--ink); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--maroon); }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---- buttons and link rows ------------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--maroon);
  background: var(--maroon);
  color: #fff;
}
.btn:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--maroon); }
.btn.ghost:hover { background: var(--maroon-tint); color: var(--maroon-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

.links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 0.92rem; }
.links a { color: var(--muted); font-weight: 500; }
.links a:hover { color: var(--maroon); }

.icon { width: 16px; height: 16px; flex: none; }

/* ---- hero ------------------------------------------------------------------------------------------------ */
.hero { padding: 72px 0 56px; }
.hero .container { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: center; }
.hero .role { font-size: 1.1rem; color: var(--muted); margin: -4px 0 18px; }
.hero .role strong { color: var(--text); font-weight: 600; }
.hero .role .sub { display: block; margin-top: 6px; }
.hero .lead { font-size: 1.15rem; color: var(--text); max-width: 620px; }
.hero .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--gold-tint);
  border: 1px solid #f5e2a4;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.hero .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.portrait { justify-self: end; max-width: 320px; width: 100%; }
.portrait img, .photo {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.photo { max-width: 300px; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .portrait { justify-self: start; max-width: 240px; order: -1; }
}

/* ---- the three pillars ----------------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.pillar .num { font-size: 0.8rem; font-weight: 700; color: var(--maroon); letter-spacing: 0.08em; }
.pillar h3 { margin-top: 6px; }
.pillar p { color: var(--muted); font-size: 0.96rem; }
.pillar ul { margin: 0; padding-left: 18px; font-size: 0.92rem; color: var(--text); }
.pillar li { margin-bottom: 4px; }
.flow-note { margin-top: 20px; color: var(--muted); font-size: 0.95rem; text-align: center; }
.flow-note strong { color: var(--ink); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---- project cards --------------------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards.two { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(25, 25, 25, 0.05), 0 10px 28px rgba(25, 25, 25, 0.07); }
.card .thumb { aspect-ratio: 16 / 10; background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card .thumb svg { width: 100%; height: 100%; }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .result { color: var(--ink); font-size: 0.93rem; border-left: 3px solid var(--gold); padding-left: 10px; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 0.92rem; }

.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--maroon);
  background: var(--maroon-tint);
  border-radius: 999px;
  padding: 2px 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.78rem; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

/* ---- project detail blocks (projects page) --------------------------------------------------------------- */
.theme { padding: 56px 0 24px; }
.theme + .theme { border-top: 1px solid var(--line); }
.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: start;
  padding: 28px 0;
}
.project + .project { border-top: 1px dashed var(--line); }
.project.text-only { grid-template-columns: 1fr; max-width: 820px; }
.project.stacked { grid-template-columns: 1fr; }
.project.stacked > div { max-width: 820px; }
.project.stacked figure img { border: none; box-shadow: none; border-radius: 0; }
.project figure { margin: 0; }
.project figure img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.project figcaption { font-size: 0.82rem; color: var(--faint); margin-top: 8px; }
.project dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: 0.94rem; }
.project dt { color: var(--faint); font-weight: 500; }
.project dd { margin: 0; }
.project .support { font-size: 0.85rem; color: var(--faint); margin-top: 12px; }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; } }

/* ---- highlights strip ------------------------------------------------------------------------------------ */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.highlight {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.highlight .kicker { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.highlight strong { color: var(--ink); font-size: 0.98rem; line-height: 1.35; }
.highlight span { color: var(--muted); font-size: 0.88rem; }
.highlight a { font-size: 0.88rem; font-weight: 600; margin-top: auto; }
.highlight img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; margin-bottom: 4px; }
@media (max-width: 960px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .highlights { grid-template-columns: 1fr; } }

/* ---- publications ---------------------------------------------------------------------------------------- */
.pubs { list-style: none; padding: 0; margin: 0; }
.pubs li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.pubs .year { color: var(--faint); font-weight: 600; font-size: 0.92rem; padding-top: 2px; }
.pubs .title { color: var(--ink); font-weight: 600; }
.pubs .meta { color: var(--muted); font-size: 0.92rem; }
.pubs .me { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pubs .note { font-size: 0.85rem; color: var(--faint); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: none; }
.plain-list .meta { display: block; color: var(--muted); font-size: 0.9rem; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline .when { color: var(--faint); font-size: 0.9rem; font-weight: 500; }
.timeline .what strong { color: var(--ink); display: block; }
.timeline .what span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* ---- news ------------------------------------------------------------------------------------------------ */
.news-item { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.news-item img { border-radius: var(--radius); border: 1px solid var(--line); }
.news-item .date { color: var(--faint); font-size: 0.88rem; font-weight: 500; }
.news-item .credit { display: block; margin-top: 6px; color: var(--faint); font-size: 0.78rem; }
.news-item h3 { margin: 4px 0 8px; }
.news-item p { color: var(--muted); }
.news-item .placeholder { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--maroon); }
.news-item .placeholder svg { width: 44px; height: 44px; opacity: 0.85; }
@media (max-width: 760px) { .news-item { grid-template-columns: 1fr; } .news-item .media { max-width: 320px; } }

/* ---- page header (inner pages) --------------------------------------------------------------------------- */
.page-head { padding: 56px 0 28px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); max-width: 720px; font-size: 1.08rem; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump a { font-size: 0.88rem; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--muted); }
.jump a:hover { border-color: var(--maroon); color: var(--maroon); text-decoration: none; }

/* ---- footer ---------------------------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--faint); font-size: 0.88rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--maroon); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
