/* ==========================================================================
   CEPR Workshop on Media, Technology, Politics, and Society
   Editorial academic style — warm paper, ink text, deep program blue.
   No JS, no webfonts: characterful system serif stack (Palatino family).
   ========================================================================== */

:root {
  --paper: #f7f3ea;
  --paper-deep: #efe9db;
  --ink: #21201d;
  --ink-soft: #57534a;
  --blue: #191988;          /* the program's title blue */
  --blue-soft: #4444a8;
  --hairline: #d8d0bd;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", "Palatino LT STD", Georgia, serif;
  --sans: "Gill Sans", "Gill Sans MT", "Avenir Next", Avenir, Seravek, Calibri, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 1.0625rem;
  border-top: 5px solid var(--blue);
  /* faint paper grain */
  background-image: radial-gradient(ellipse at 50% -20%, #fffdf6 0%, var(--paper) 60%);
  background-attachment: fixed;
}

.wrap {
  max-width: 47rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Masthead — set like a journal cover
   -------------------------------------------------------------------------- */

.masthead {
  text-align: center;
  padding: 2.75rem 0 1.4rem;
}

.masthead .kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.9rem;
}

.masthead h1 {
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.masthead h1 a { color: var(--ink); text-decoration: none; }
.masthead h1 em { font-style: italic; color: var(--blue); }

.masthead .rule {
  width: 5.5rem;
  height: 1px;
  background: var(--blue);
  border: 0;
  margin: 1.3rem auto 0;
  position: relative;
}
.masthead .rule::after {
  content: "";
  position: absolute;
  left: 50%; top: -2.5px;
  width: 6px; height: 6px;
  background: var(--blue);
  transform: translateX(-50%) rotate(45deg);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

nav.site {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 3rem;
}

nav.site ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2.1rem;
  padding: 0.65rem 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav.site a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
nav.site a:hover { color: var(--blue); }
nav.site a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* --------------------------------------------------------------------------
   General typography
   -------------------------------------------------------------------------- */

main { padding-bottom: 4rem; }

h2 {
  font-weight: 500;
  font-size: 1.45rem;
  margin: 2.8rem 0 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
  transform: translateY(-0.2rem);
}

h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin: 2.2rem 0 0.9rem;
}

p { margin: 0 0 1rem; }
p.lede { font-size: 1.16rem; line-height: 1.6; }

a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-soft); }

.muted { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Homepage: next-edition banner + edition cards
   -------------------------------------------------------------------------- */

.banner {
  border: 1px solid var(--blue);
  background: linear-gradient(180deg, rgba(25, 25, 136, 0.05), rgba(25, 25, 136, 0.02));
  padding: 1.15rem 1.4rem;
  margin: 2.2rem 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.banner .label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
}
.banner .what { font-size: 1.05rem; }

.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.2rem;
  margin: 1.6rem 0;
}

.edition-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--hairline);
  background: #fffdf6;
  padding: 1.5rem 1.5rem 1.3rem;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.edition-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -18px rgba(25, 25, 136, 0.55);
  color: var(--ink);
}

.edition-card .year {
  font-size: 2.9rem;
  line-height: 1;
  color: var(--blue);
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums;
}
.edition-card .nth {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin: 0.55rem 0 0.2rem;
}
.edition-card .venue { font-size: 1.02rem; }
.edition-card .detail {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 0.35rem;
  font-style: italic;
}
.edition-card::after {
  content: "→";
  position: absolute;
  right: 1.3rem;
  top: 1.45rem;
  color: var(--hairline);
  font-family: var(--sans);
  transition: color 0.18s ease, transform 0.18s ease;
}
.edition-card:hover::after { color: var(--blue); transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Edition page header
   -------------------------------------------------------------------------- */

.edition-head { margin-bottom: 0.6rem; overflow: auto; }

/* venue postcard, floated beside the edition header */
.postcard {
  float: right;
  width: 215px;
  margin: 0.35rem 0 1.1rem 2rem;
}
.postcard img {
  width: 100%;
  display: block;
  border: 1px solid var(--hairline);
  filter: sepia(0.08);
}
.postcard figcaption {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-style: italic;
  padding-top: 0.35rem;
  text-align: right;
}
.postcard figcaption a { color: inherit; }

.edition-head .nth {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.5rem;
}

.edition-head h2.title {
  font-size: 1.85rem;
  margin: 0 0 0.6rem;
  display: block;
}
.edition-head h2.title::after { content: none; }

.edition-head .meta {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.edition-head .actions {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Program
   -------------------------------------------------------------------------- */

.day {
  margin: 2.4rem 0 0;
}

.day > h3 { margin-bottom: 0; }
.day .chair {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0.25rem 0 0;
}

ol.sessions { list-style: none; margin-top: 1.1rem; }

.session {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0 1.2rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--hairline);
}
.session:last-child { border-bottom: 1px solid var(--hairline); }

.session .time {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  padding-top: 0.28rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.session .paper-title {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
}

.session .authors { margin-top: 0.15rem; }
.session .authors .aff { color: var(--ink-soft); }
.session .coauthors { color: var(--ink-soft); font-size: 0.97rem; margin-top: 0.05rem; }

.session .discussant {
  font-size: 0.95rem;
  margin-top: 0.3rem;
  color: var(--ink-soft);
}
.session .discussant b {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-right: 0.4rem;
}

/* people links in the program: quiet underline, blue on hover */
.session .authors a,
.session .coauthors a,
.session .discussant a,
.session .paper-title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}
.session .authors a:hover,
.session .coauthors a:hover,
.session .discussant a:hover,
.session .paper-title a:hover {
  color: var(--blue);
  text-decoration-color: var(--blue);
}

/* breaks: quiet rows */
.session.break { padding: 0.45rem 0; }
.session.break .what {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.95rem;
  padding-top: 0.05rem;
}

/* keynotes & special sessions */
.session.special {
  border-left: 3px solid var(--blue);
  padding-left: 1rem;
  background: linear-gradient(90deg, rgba(25, 25, 136, 0.045), transparent 70%);
}
.session.special .kind {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.15rem;
}

.timing-note {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 1.4rem;
}

.footnote {
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--hairline);
  padding-left: 1rem;
  margin-top: 1.6rem;
}

/* --------------------------------------------------------------------------
   Participants
   -------------------------------------------------------------------------- */

ul.people {
  list-style: none;
  columns: 2;
  column-gap: 2.6rem;
  margin-top: 1rem;
}
ul.people li {
  padding: 0.28rem 0;
  break-inside: avoid;
  border-bottom: 1px dotted var(--hairline);
  font-size: 0.99rem;
}
ul.people .aff { color: var(--ink-soft); }

.people-note {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* --------------------------------------------------------------------------
   Committee page
   -------------------------------------------------------------------------- */

.chairs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
  margin: 1.4rem 0 0.6rem;
}
.chair-card {
  border: 1px solid var(--hairline);
  background: #fffdf6;
  padding: 1.2rem 1.4rem;
}
.chair-card .name { font-size: 1.2rem; font-weight: 600; }
.chair-card .role {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.3rem;
}

/* --------------------------------------------------------------------------
   Photo gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 1px solid var(--hairline);
  filter: sepia(0.06);
  transition: filter 0.2s ease;
}
.gallery a:hover img { filter: none; }
.gallery figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
  padding-top: 0.25rem;
}

.coming-soon {
  border: 1px dashed var(--hairline);
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
  padding: 2.2rem 1rem;
  background: rgba(255, 253, 246, 0.6);
}

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

footer.site {
  border-top: 1px solid var(--hairline);
  padding: 1.6rem 0 2.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}
footer.site .rule-dot {
  color: var(--blue);
  letter-spacing: 0.6em;
  display: block;
  margin-bottom: 0.9rem;
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .masthead h1 { font-size: 1.55rem; }
  nav.site ul { gap: 0 1.2rem; font-size: 0.72rem; }
  .session { grid-template-columns: 1fr; gap: 0.15rem; }
  .session .time { padding-top: 0; }
  ul.people { columns: 1; }
  .banner { flex-direction: column; gap: 0.3rem; }
  .postcard { float: none; width: 100%; max-width: 260px; margin: 0 auto 1.4rem; }
  .postcard figcaption { text-align: center; }
}

@media print {
  nav.site, .actions { display: none; }
  body { border-top: none; background: white; }
}
