/* ---------------------------------------------------------------
   Seminario Vidal Abascal — page styles
   Deliberately independent of ../assets/style.css: this page has its
   own palette, type and layout so it reads as its own thing.
   --------------------------------------------------------------- */

:root {
  --bg:      #f6f4ee;
  --bg-2:    #ece8dc;
  --ink:     #1e2a24;
  --ink-2:   #4d5a53;
  --green:   #1f4d3a;
  --rule:    #cfc9b8;
  --accent:  #8a5a1e;

  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
             "URW Palladio L", Georgia, serif;
  --text:    "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
             "URW Palladio L", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #171b18;
    --bg-2:   #1f2622;
    --ink:    #e6e3d8;
    --ink-2:  #a9b0a6;
    --green:  #9fd3b6;
    --rule:   #34403a;
    --accent: #d9a862;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.page {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* --- header ---------------------------------------------------- */

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.4rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.top .where { margin: 0; font-style: italic; }
.top .where a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.top .where a:hover { color: var(--green); border-bottom-color: var(--green); }

.lang { margin: 0; }
.lang a { text-decoration: none; padding: 0.15rem 0.45rem; border-radius: 999px; color: var(--ink-2); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--green); color: var(--bg); }
.lang span { color: var(--rule); padding: 0 0.15rem; }

.head {
  margin: 3.4rem 0 0;
  padding-bottom: 1.6rem;
  border-bottom: 3px double var(--rule);
}
.head h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.head h1 em { font-style: italic; color: var(--green); }
.head .sub {
  margin: 1.1rem 0 0;
  max-width: 44rem;
  font-size: 1.12rem;
  color: var(--ink-2);
}

/* --- layout ---------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  column-gap: 3.5rem;
  align-items: start;
  margin-top: 2.4rem;
}

aside {
  position: sticky;
  top: 1.5rem;
}

.box {
  background: var(--bg-2);
  border-radius: 6px;
  padding: 1.2rem 1.3rem 1.3rem;
}
.box + .box { margin-top: 1.2rem; }
.box h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
}
.box p { margin: 0.4rem 0 0; font-size: 0.95rem; }

.cal {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cal li {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0 0.6rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  line-height: 1.35;
}
.cal li:first-child { border-top: 0; }
.cal time { font-variant-numeric: tabular-nums; color: var(--green); font-weight: 600; }
.cal a { text-decoration: none; color: inherit; }
.cal a:hover { color: var(--green); text-decoration: underline; }
.cal .tba { color: var(--ink-2); font-style: italic; }
.cal .past { opacity: 0.55; }

.ics {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.88rem;
}

/* --- talks ----------------------------------------------------- */

.talks h2 {
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
}

.talk {
  padding: 1.7rem 0;
  border-top: 1px solid var(--rule);
}
.talk:first-of-type { border-top: 0; padding-top: 0.4rem; }

.talk .when {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.talk .when time { color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }

.talk h3 {
  margin: 0.45rem 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.3;
}
.talk .speaker {
  margin: 0.3rem 0 0;
  font-size: 1.05rem;
}
.talk .speaker .aff { color: var(--ink-2); font-style: italic; }

.talk details { margin-top: 0.8rem; }
.talk summary {
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--green);
  width: fit-content;
}
.talk summary:hover { color: var(--accent); }
.talk .abstract { max-width: 62ch; }
.talk .abstract p { margin: 0.8rem 0 0; }
.talk .tba { color: var(--ink-2); font-style: italic; margin: 0.4rem 0 0; }

/* --- Vidal Abascal --------------------------------------------- */

.about {
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 3px double var(--rule);
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  column-gap: 3rem;
  align-items: start;
}
.about figure { margin: 0; }
.about img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: sepia(0.15);
}
.about figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.about h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
}
.about p { margin: 0 0 0.9rem; max-width: 62ch; }

/* --- footer ---------------------------------------------------- */

footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
  color: var(--ink-2);
}
footer p { margin: 0.2rem 0; }

/* --- narrow screens -------------------------------------------- */

@media (max-width: 52rem) {
  .grid { grid-template-columns: minmax(0, 1fr); row-gap: 2.2rem; }
  aside { position: static; order: -1; }
  .about { grid-template-columns: minmax(0, 1fr); row-gap: 1.4rem; }
  .about figure { max-width: 17rem; }
}

@media print {
  :root { --bg: #fff; --bg-2: #fff; --ink: #000; --ink-2: #333; --green: #000; }
  .lang, .ics, footer { display: none; }
  .talk details { display: block; }
  .talk summary { display: none; }
  .talk details > * { display: block; }
  aside { position: static; }
  .box { border: 1px solid #999; }
}
