/* danilolinhares.com
   Palette drawn from the crow-and-crescent photograph:
   warm paper, warm ink, sky blue for links, brass for small accents. */

:root {
  --paper: #FBF9F4;
  --ink: #29241C;
  --muted: #6E6557;
  --blue: #175D89;
  --blue-deep: #0F466B;
  --brass: #B08A3C;
  --brass-deep: #7A5C1E;
  --rule: #E4DDCE;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 2.2rem 1.4rem 3rem;
}

@media (min-width: 46rem) {
  .wrap {
    display: grid;
    grid-template-columns: 13.5rem minmax(0, 40rem);
    column-gap: 3.5rem;
    padding-top: 3.4rem;
  }
}

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

.site-header { margin-bottom: 2rem; }

.mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.mark img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
}

.mark .name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.42rem;
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

.site-header::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 2px;
  background: var(--brass);
  margin-top: 1.05rem;
}

nav.site-nav { margin-top: 1.05rem; }

nav.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
}

@media (min-width: 46rem) {
  nav.site-nav ul { display: block; }
  nav.site-nav li { margin: 0.28rem 0; }
}

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

nav.site-nav a:hover { color: var(--blue); }

nav.site-nav a[aria-current="page"] {
  color: var(--brass-deep);
}

nav.site-nav a[aria-current="page"]::before {
  content: "– ";
  color: var(--brass);
}

/* ---------- Content ---------- */

main h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 1.3rem;
}

main h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  font-size: 1.25rem;
  margin: 2.4rem 0 0.9rem;
}

main p { margin: 0 0 1.15rem; }

main a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: color-mix(in srgb, var(--blue) 45%, transparent);
}

main a:hover {
  color: var(--blue-deep);
  text-decoration-color: var(--brass);
}

/* Optional headshot slot (About) */
.headshot {
  float: right;
  margin: 0.25rem 0 1rem 1.6rem;
  width: min(11.5rem, 42%);
}

.headshot img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.headshot figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ---------- Research entries ---------- */

.paper { margin: 0 0 1.7rem; }

.paper .title {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.paper .title cite { font-style: italic; }

.status {
  color: var(--brass-deep);
}

.paper .blurb {
  margin: 0;
  color: var(--ink);
}

.agenda-end {
  margin-top: 2.8rem;
}

.agenda-end::before {
  content: "";
  display: block;
  width: 3.2rem;
  height: 2px;
  background: var(--brass);
  margin-bottom: 1rem;
}

.agenda-end p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Teaching course list ---------- */

.courses {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  border-left: 2px solid var(--rule);
}

.courses li {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.8rem;
  justify-content: space-between;
  padding: 0.28rem 0 0.28rem 0.9rem;
}

.courses .terms {
  color: var(--brass-deep);
  font-size: 0.93rem;
  white-space: nowrap;
}

.courses-label {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

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

footer {
  grid-column: 1 / -1;
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 120ms ease, text-decoration-color 120ms ease; }
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}
