/* ---------------------------------------------------------------
   Blaize Giangiulio — job market site
   Minimal, journal-set style. No dependencies, system fonts only.
   Accent color: deep navy (--accent). Change once, applies everywhere.
   --------------------------------------------------------------- */

:root {
  --ink: #1c1c1c;
  --muted: #5a5a5a;
  --accent: #07294D;      /* Drexel navy */
  --gold: #FFC600;        /* Drexel gold */
  --rule: #c9c9c4;
  --paper: #ffffff;
  --serif: Charter, "Bitstream Charter", Cambria, Georgia, serif;
  --sans: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.65;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

/* --- Masthead ------------------------------------------------- */

header.masthead { text-align: center; margin-bottom: 2.25rem; }

.masthead h1 {
  font-weight: 500;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
}

.masthead .affiliation {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

/* double hairline rule, journal-masthead style */
.masthead .rule {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 0 0 3px;
}
.masthead .rule.thin {
  border-top: 2px solid var(--gold);
  margin: 0 0 1.1rem;
}

nav {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  margin: 0 0.9rem;
  padding-bottom: 2px;
}
nav a:hover, nav a:focus-visible { color: var(--accent); }
nav a.current { color: var(--accent); border-bottom: 2px solid var(--accent); }
nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- Body ----------------------------------------------------- */

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.3rem;
  margin: 2.4rem 0 1rem;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.intro {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.intro-side { flex-shrink: 0; width: 165px; }
.intro-side .contact { margin: 0.6rem 0 0; line-height: 1.6; font-size: 0.85rem; overflow-wrap: anywhere; }
.bio p, details.abstract p, .paper .desc { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

.interests {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 2rem 0 0;
}
.interests strong { color: var(--ink); font-weight: 600; }

ul.refs {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--muted);
}
ul.refs strong { color: var(--ink); font-weight: 600; }

.intro img, .photo-placeholder {
  width: 165px;
  height: 205px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rule);
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  background: #f5f5f2;
  text-align: center;
  padding: 0.5rem;
}

.contact {
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--muted);
}
.contact strong {
  color: var(--ink);
  font-weight: 600;
}

/* --- Papers --------------------------------------------------- */

.paper { margin-bottom: 1.8rem; }

.paper .title {
  font-weight: 600;
  font-size: 1.08rem;
  margin: 0 0 0.15rem;
}

.paper .tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--gold);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  vertical-align: 2px;
  margin-left: 0.4rem;
}

.paper .meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.45rem;
}

.paper .links {
  font-family: var(--sans);
  font-size: 0.85rem;
}
.paper .links a { margin-right: 0.9rem; }

details.abstract summary {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--accent);
  cursor: pointer;
  margin-bottom: 0.3rem;
}
details.abstract p {
  margin: 0.3rem 0 0;
  font-size: 0.98rem;
  color: #333;
}

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

footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 560px) {
  .intro { flex-direction: column; align-items: center; }
  .intro-side { text-align: center; }
  .bio p, details.abstract p, .paper .desc { text-align: left; }
  .masthead h1 { font-size: 1.7rem; }
  nav a { margin: 0 0.5rem; }
}

/* --- Projects (Other page) ------------------------------------ */

.project { margin-bottom: 2.4rem; }
/* project screenshot: up to 42.67rem wide (about the text column), centered */
.project .shot {
  display: block;
  width: min(42.67rem, calc(100vw - 2.5rem));
  margin: 0 0 1.1rem 50%;
  transform: translateX(-50%);
}
.project .shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  transition: border-color 0.15s;
}
.project .shot:hover img, .project .shot:focus-visible img { border-color: var(--accent); }
.project .title { font-weight: 600; font-size: 1.08rem; margin: 0 0 0.15rem; }
.project .title a { color: var(--ink); text-decoration: none; }
.project .title a:hover { color: var(--accent); }
.project .meta { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin: 0 0 0.45rem; }
.project .links { font-family: var(--sans); font-size: 0.85rem; }

/* --- Plain lists (presentations) ------------------------------ */
.paper .desc { margin: 0.3rem 0 0; font-size: 0.98rem; color: #333; }
ul.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.plain li { margin: 0 0 0.25rem; }
.subhead {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.2rem 0 0.4rem;
}

/* --- Teaching page -------------------------------------------- */
.awards {
  border-left: 4px solid var(--gold);
  background: #FBF8EC;
  padding: 0.85rem 1.1rem 0.6rem;
  margin: 0.5rem 0 0.5rem;
}
.awards p { margin: 0 0 0.35rem; display: flex; justify-content: space-between; gap: 1rem; }
.awards .awards-label {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.45rem;
}
.awards .yr { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.glance { font-family: var(--sans); font-size: 0.88rem; color: var(--muted); margin: 0 0 0.4rem; }
.glance strong { color: var(--accent); }
details.evals summary {
  font-family: var(--sans); font-size: 0.85rem; color: var(--accent); cursor: pointer; margin-bottom: 0.3rem;
}
.eval { margin: 0.9rem 0 1.6rem; }
.eval img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.carousel-label {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 1rem 0 0.4rem;
}
.carousel { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0.9rem 0 0.5rem; }
.carousel .quote {
  margin: 0; padding: 0 0.5rem 0 1.4rem; position: relative; font-style: italic; color: #333;
  min-height: 5.2em; text-align: justify; hyphens: auto; -webkit-hyphens: auto;
}
.carousel .quote::before {
  content: "\201C"; position: absolute; left: 0; top: -0.35rem; font-size: 2rem; color: var(--gold); font-style: normal;
}
.js .carousel { display: grid; }
.js .carousel .quote { grid-area: 1 / 1; visibility: hidden; min-height: 0; }
.js .carousel .quote.active { visibility: visible; }
.js .carousel .carousel-nav { grid-area: 2 / 1; }
.carousel-nav { display: none; }
.js .carousel-nav {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem;
}
.carousel-nav button {
  font: inherit; font-size: 1rem; line-height: 1; color: var(--accent); background: none;
  border: 1px solid var(--rule); border-radius: 50%; width: 2.1rem; height: 2.1rem; cursor: pointer;
}
.carousel-nav button:hover, .carousel-nav button:focus-visible { border-color: var(--accent); }
.note { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); margin-top: -0.6rem; }
ul.courses { list-style: none; padding: 0; margin: 0 0 0.6rem; font-size: 0.97rem; }
ul.courses li {
  display: grid; grid-template-columns: 5.6rem 1fr auto; gap: 0.75rem;
  padding: 0.28rem 0; border-bottom: 1px solid #eeeeea;
}
ul.courses .code { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--accent); padding-top: 0.12rem; }
ul.courses .term { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); text-align: right; padding-top: 0.12rem; }
ul.courses.awards-list li { grid-template-columns: 1fr auto; }
@media (max-width: 560px) {
  ul.courses li { grid-template-columns: 4.6rem 1fr; }
  ul.courses .term { grid-column: 2; text-align: left; padding-top: 0; }
  .awards p { flex-direction: column; gap: 0; }
}

@media (max-width: 560px) { ul.courses.awards-list li { grid-template-columns: 1fr auto; } ul.courses.awards-list .term { grid-column: auto; text-align: right; } }
