/* =====================================================
    Junior London Number Theory Seminars -- css

    TABLE OF CONTENTS:

  0. SETUP
  1. BASE
  2. SCHEDULE
     2a. Talk card
     2b. Abstract
  3. HEADER
      3a. Header navigation
  4. FOOTER
      4a. Footer navigation
  5. HOMEPAGE
     5a. Hero
     5b. When&Where
     5c. Photo
     5d. Next talk
     5e. CTA
  6. ABOUT
     6a. Main
     6b. Past editions
     6c. Other seminars
  7. TALKS
  8. CONTACT 
  9. LINKS
     9a. Underlining 
  10. @media

   ===================================================== */


/* -----------------------------------------------------
   0. SETUP  
   ----------------------------------------------------- */

:root {
  --color-page: #f4f1ea;
  --color-surface: #fbfaf7;
  --color-text: #1e2a35;
  --color-muted: #596674;
  --color-primary: #29445f;
  --color-secondary: #6e8da7;
  --color-accent: #b8995a;      /* the "Junior" accent colour */
  --color-border: rgba(30, 42, 53, 0.14);
  --color-header: rgba(244, 241, 234, 0.94);

  /* for cancelled talks */
  --color-cancel: #a33f3f;
  --color-cancel-text: #7d3d3d;
  --color-cancel-border: rgba(160, 55, 55, 0.28);
  --color-cancel-bg: rgba(163, 63, 63, 0.06);

  /* for christmas break */
  --color-christmas: #477BA7;
  --color-christmas-text: #365F80;
  --color-christmas-border: rgba(71, 123, 167, 0.28);
  --color-christmas-bg: rgba(71, 123, 167, 0.08);

  /* card background (info cards, schedule, etc.) */
  --color-card-bg: rgba(255, 255, 255, 0.34);

  /* layout */
  --layout-max: 1180px;
  --page-gutter: 48px;    /* margin for header/footer */
  --main-gutter: 250px;   /* margin for <main> */

  /* fonts */
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;

  /* other */
  --radius: 6px;
  --shadow-card: 0 18px 55px rgba(38, 52, 68, 0.09);
  --label-tracking: 0.12em;
}

/* reset */ 

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

body {
  margin: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}


/* -----------------------------------------------------
   1. BASE  
   ----------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  color: var(--color-text);
  font-family: var(--font-serif);
  line-height: 1.55;
  background:
    radial-gradient(circle at 86% 6%, rgba(110, 141, 167, 0.12), transparent 25rem),
    radial-gradient(circle at 8% 52%, rgba(131, 151, 142, 0.09), transparent 24rem),
    var(--color-page);
}

main {
  padding-bottom: 86px;
}

/* page frame */
.container {
  width: min(var(--layout-max), calc(100% - var(--page-gutter)));
  margin-left: auto;
  margin-right: auto;
}

main .container {
  width: min(var(--layout-max), calc(100% - var(--main-gutter)));
}

/* hero for about/talks/contact */ 
.hero-other {
  padding-top: 58px;
  padding-bottom: 42px;
  text-align: center;
}

.hero-other h1 {
  margin-top: 14px;
  margin-bottom: 14px;
  color: var(--color-text);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-other p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

h2,
h3 {
  color: var(--color-primary);
}

/* "junior" colour/some emphasis if we want (?) */
.junior-tag {
  color: var(--color-accent);
}

/* ---teasers (above some h1/h2) */ 
.teaser {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-secondary);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.teaser::before {
  width: 28px;
  height: 1px;
  content: "";
  background-color: currentColor;
  opacity: 0.7;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

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


/* -----------------------------------------------------
   2. SCHEDULE  
   ----------------------------------------------------- */


/* ----------------- 2a. Talk card ----------------- */ 

/* next-talk in index.html, list in talks.html */ 
.schedule-next-talk,
.schedule-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
}

.schedule-list {
  margin-top: 23px;
}

.schedule-item {
  display: grid;
  gap: 26px;
  padding: 26px 28px;
  border: 1px solid var(--color-border);
  background-color: var(--color-card-bg);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) 3rem;
  width: 100%;
  min-width: 0;
  min-height: 130px;
  box-sizing: border-box;
  align-items: center;
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}

.schedule-item > * {
  min-width: 0;
}

.schedule-speaker,
.schedule-title,
.schedule-whenwhere {
  overflow-wrap: anywhere;
}

/* for past talks */ 
.schedule.past .schedule-item {
  border-left-color: var(--color-secondary);
  opacity: 0.88;
}

/* inside schedule-item (date, day, time/room, speaker, title, tba) */

.schedule-date {
  margin-top: 7px;
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
}

.schedule-day {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-secondary);
  font-size: 0.67rem;
}

/* time and room */ 
.schedule-whenwhere {
  margin-top: 7px;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.5;
}

.schedule-speaker {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-secondary);
  font-size: 0.75rem;
}

.schedule-title {
  margin-top: 13px;
  margin-bottom: 0;
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
}

/* tba tag on the card */
.schedule-tba {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  justify-self: end;
  color: var(--color-accent);
  font-size: 0.72rem;
}

/* cancelled talk */
.schedule-item.cancelled {
  position: relative;
  border-color: var(--color-cancel-border);
  border-left: 3px solid var(--color-cancel);
  background-color: var(--color-cancel-bg);
  box-shadow: 0 14px 40px rgba(80, 40, 40, 0.05);
  padding: 26px 28px;
}

.schedule.past .schedule-item.cancelled {
  border-color: var(--color-border);
  border-left-color: var(--color-secondary);
  background-color: var(--color-card-bg);
  box-shadow: none; 
  opacity: 0.88;
}

.schedule-item.cancelled .schedule-day {
  color: var(--color-cancel);
}

.schedule.past .schedule-item.cancelled .schedule-day {
  color: var(--color-secondary);
}

.schedule-item.cancelled .schedule-date {
  color: var(--color-cancel-text);
}

.schedule.past .schedule-item.cancelled .schedule-date {
  color: var(--color-primary);
}

.schedule-cancelled-label {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  justify-self: end;
  color: var(--color-cancel);
  font-weight: 800;
  font-size: 0.72rem;
}

.schedule.past .schedule-cancelled-label {
  color: var(--color-primary)
}

/* christmas break */
.schedule-item.christmas-break {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  border-color: var(--color-christmas-border);
  border-left: 3px solid var(--color-christmas);
  background-color: var(--color-christmas-bg);
  padding: 26px 28px;
}

.schedule-item.christmas-break::before {
  content: "\2744";
  position: absolute;
  z-index: 0;
  top: 8px;
  left: 14px;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--color-christmas);
  opacity: 0.23;
  pointer-events: none;
  text-shadow:
    149px 23px, 297px 12px, 327px 77px, 423px 34px, 517px 76px, 598px 17px, 672px 55px, 810px 20px, 770px 87px, 875px 78px, 960px 19px, 99px 87px;
}

.schedule-item.christmas-break::after {
  content: "\2744";
  position: absolute;
  z-index: 0;
  bottom: 10px;
  left: 45px;
  font-size: 0.65rem;
  line-height: 1;
  color: var(--color-christmas);
  opacity: 0.18;
  pointer-events: none;
  text-shadow:
    186px -93px, 56px -87px, 169px -5px, 329px -72px, 392px -12px, 478px -81px, 575px -29px, 637px 1px, 700px -78px, 920px -28px, 444px -44px, 24px -67px, 260px -35px, 710px -31px, 1040px -65px;
}

.schedule-item.christmas-break > * {
  position: relative;
  z-index: 1;
}

.schedule-item.christmas-break .schedule-date {
  color: var(--color-christmas-text);
}

.schedule-christmas-label {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  justify-self: end;
  color: var(--color-christmas);
  font-size: 0.72rem;
}

.schedule.past .schedule-item.christmas-break {
  border-color: var(--color-border);
  border-left-color: var(--color-secondary);
  background-color: var(--color-card-bg);
  box-shadow: none;
  opacity: 0.88;
}

.schedule.past .schedule-item.christmas-break .schedule-date {
  color: var(--color-primary);
}

.schedule.past .schedule-christmas-label {
  color: var(--color-primary);
}

/* ----------------- 2b. Abstract ----------------- */ 

.abstract {
  margin-top: 14px;
  color: var(--color-muted);
}

.abstract summary {
  position: relative;
  display: inline-block;
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.abstract summary::-webkit-details-marker {
  display: none;
}

.abstract p {
  margin-top: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}


/* -----------------------------------------------------
   3. HEADER  
   ----------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-header);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

/* header jlnt (logo + jlnt + year) */
.header-jlnt {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

/* logo placeholder */ 
.header-logo {
  flex: none;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-jlnt-text {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.header-year {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 400;
  font-style: italic;
}


/* ----------------- 3a. Header navigation ----------------- */ 

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

nav a {
  position: relative;
  padding-top: 8px;
  padding-bottom: 8px;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

/* underlining 'active' page */
nav a:hover,
nav a.active {
  color: var(--color-primary);
}


/* -----------------------------------------------------
   4. FOOTER  
   ----------------------------------------------------- */
footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding-top: 26px;
  padding-bottom: 34px;
}


/* ----------------- 4a. Footer navigation ----------------- */ 

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-nav a {
  color: var(--color-primary);
  text-decoration: none;
}


/* -----------------------------------------------------
   5. HOMEPAGE  
   ----------------------------------------------------- */


/* ----------------- 5a. Hero ----------------- */ 

.hero-homepage {
  padding-top: 60px;
  padding-bottom: 64px;
}

.hero-homepage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 34px clamp(42px, 6vw, 82px);
  align-items: start;
}

.hero-homepage-heading {
  grid-column: 1 / -1;
  text-align: center;
}

.hero-homepage-institutions {
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

/* for jlnt title */ 
.hero-homepage h1 {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  color: var(--color-text);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

.hero-homepage-year {
  margin-top: 14px;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.subhero-homepage {
  grid-column: 1;
  grid-row: 2;
}

.subhero-intro {
  max-width: 655px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}


/* ----------------- 5b. When&Where ----------------- */ 

.whenwhere-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 30px;
}

.whenwhere-card {
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-card-bg);
}

/* for "when" and "where" */
.whenwhere-card small {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  display: block;
  margin-bottom: 7px;
  color: var(--color-muted);
  font-size: 0.66rem;
}

/* for the details */
.whenwhere-card strong {
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

/* for the room number */
.whenwhere-card em {
  color: var(--color-text);
  font-style: normal;
}

/* for the google maps c: */ 
.whenwhere-card a {
  display: table;
  position: relative;
  margin-top: 8px;
  margin-left: auto;
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}


/* ----------------- 5c. Photo ----------------- */ 

.hero-homepage-photo {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  padding-top: 4px;
  padding-left: 24px;
}

.hero-homepage-photo figure {
  position: relative;
  margin: 0;
}

.hero-homepage-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 82%;
  border-radius: 4px;
  opacity: 0.84;
  filter: saturate(0.82) brightness(0.97);
}

.hero-homepage-photo figure::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: 4px;
  background-color: rgba(244, 241, 234, 0.1);
}

.hero-homepage-photo figcaption {
  margin-top: 11px;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ----------------- 5d. Next talk ----------------- */ 

.next-talk {
  margin-bottom: 26px;
}

.next-talk h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.1;
}

/* link to more talks */ 
.next-talk-link {
  display: block;
  margin-top: 10px;
  padding: 18px 20px;
  border: 1px solid rgba(184, 153, 90, 0.46);
  background: linear-gradient(110deg, rgba(184, 153, 90, 0.12), rgba(255, 255, 255, 0.34));
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  text-decoration: none;
}

.next-talk-link span {
  position: relative;
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
}


/* ----------------- 5e. CTA ----------------- */ 

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 42px;
}

.cta-card {
  display: flex;
  flex-direction: column;
  padding: 27px 28px;
  border-top: 2px solid var(--color-accent);
  background-color: var(--color-card-bg);
}

.cta-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 400;
}

.cta-card p {
  color: var(--color-muted);
  line-height: 1.7;
}


/* -----------------------------------------------------
   6. ABOUT  
   ----------------------------------------------------- */


/* ----------------- 6a. Main ----------------- */ 

.about-content h2,
.about-content p {
  max-width: 850px;
  margin-inline: auto;
}

.about-content h2 {
  margin-top: 38px;
  margin-bottom: 14px;
  font-size: 1.75rem;
  font-weight: 400;
}

.about-content p {
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: left;
}


/* ----------------- 6b. Past editions ----------------- */ 

.editions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
  max-width: 850px;
  margin-inline: auto;
}

.editions-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  background-color: var(--color-card-bg);
}

.editions-card h3 {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 400;
}

.editions-card p {
  font-size: 0.98rem;
}

.editions-year {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-accent);
  font-size: 0.71rem;
}


/* ----------------- 6c. Other seminars ----------------- */ 

.more-seminars {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  max-width: 850px;
  margin-inline: auto;
}

.more-seminars a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  background-color: var(--color-card-bg);
  transition: background-color 0.2s ease;
}

.more-seminars a:hover {
  background-color: var(--color-surface);
}

.more-seminars-name {
  position: relative;
}


/* -----------------------------------------------------
   7. TALKS  
   ----------------------------------------------------- */

/* upcoming&past talks */ 

.schedule {
  margin-top: 30px;
}

.schedule + .schedule {
  margin-top: 47px;
}

.schedule > summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 1.6rem;
  font-weight: 400;
  cursor: pointer;
  list-style: none;
}

.schedule > summary::-webkit-details-marker {
  display: none;
}

/* +/- flip */
.schedule > summary::after {
  content: "+";
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 400;
}

.schedule[open] > summary::after {
  content: "\2212";
}


/* -----------------------------------------------------
   8. CONTACT  
   ----------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 38px;
}

.contact-block {
  min-height: 175px;
  padding: 26px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-card-bg);
}

.contact-block h2 {
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: 400;
}

.contact-block p {
  color: var(--color-muted);
  line-height: 1.7;
}

.contact-block a {
  display: block;
  text-align: center;
  margin-top: 6px;
  color: var(--color-primary);
  font-weight: 700;
}
.contact-block b {
  font-size: 0.9rem;
  font-weight: 600;
}


/* organisers list */

.organiser-list {
  display: grid;
  gap: 10px;
}

.organiser {
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 30%, transparent);
}

.organiser:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.organiser summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.organiser summary::-webkit-details-marker {
  display: none;
}

.organiser-name {
  color: var(--color-muted);
  font-weight: 400;
  line-height: 1.7;
}

.organiser-institution {
  font-size: 0.88em;
  font-weight: 300;
  color: var(--color-muted);
}

.organiser-institution::before {
  content: "\25E6";
  display: inline-block;
  width: 1em;
  margin-left: 0.15em;
  margin-right: 0.35em;
  text-align: center;
  color: var(--color-muted);
}

/* toggle emails */ 

.organiser-email-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--color-primary) 4%, transparent);
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 400;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.organiser summary:hover .organiser-email-label {
  background-color: color-mix(in srgb, var(--color-primary) 8%, transparent);
  border-color: var(--color-border);
}

.organiser-email-label::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.organiser[open] .organiser-email-label::after {
  transform: rotate(225deg) translateY(-2px);
}

.contact-block .organiser-email {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}


/* -----------------------------------------------------
   9. LINKS  
   ----------------------------------------------------- */

.link-standalone {
  position: relative;
  align-self: flex-start;
  margin-top: auto;
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.link-in-text {
  position: relative;
  display: inline-block;
  color: inherit;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}


/* ----------------- 9a. Underlining -- thank you ai c:  ----------------- */ 


nav a::after,
.link-standalone::after,
.link-in-text::after,
.whenwhere-card a::after,
.next-talk-link span::after,
.more-seminars-name::after,
.abstract summary::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  content: "";
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.link-standalone::after,
.link-in-text::after,
.whenwhere-card a::after,
.next-talk-link span::after,
.more-seminars-name::after,
.abstract summary::after {
  bottom: -2px;
}

nav a::after {
  bottom: 2px;
}

nav a:hover::after,
nav a.active::after,
.link-standalone:hover::after,
.link-in-text:hover::after,
.whenwhere-card a:hover::after,
.next-talk-link:hover span::after,
.more-seminars a:hover .more-seminars-name::after,
.abstract summary:hover::after {
  transform: scaleX(1);
}

/* hashtags */

#next-talk,
#upcoming-talks,
#previous-ed {
  scroll-margin-top: 100px;
}


/* -----------------------------------------------------
   10. @media  
   ----------------------------------------------------- */

/* basically this is sth ai spat out, so i'm washing my hands of it. it's supposed to make sure that everything works properly on smaller screens */

@media (max-width: 860px) {
  :root {
    --page-gutter: 28px;
    --main-gutter: 56px;
  }

  .hero-homepage-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-homepage-heading,
  .subhero-homepage,
  .hero-homepage-photo {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-homepage-photo {
    max-width: 650px;
    padding-left: 0;
  }

  .whenwhere-grid {
    max-width: 650px;
  }

  .schedule-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-tba {
    justify-self: start;
  }

  .editions-grid {
    grid-template-columns: 1fr;
  }

  #next-talk,
  #upcoming-talks,
  #previous-ed {
  scroll-margin-top: 120px;
}
}

@media (max-width: 620px) {
  :root {
    --page-gutter: 20px;
    --main-gutter: 40px;
  }

  .header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .header-content,
  .next-talk,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-jlnt-text {
    font-size: 0.92rem;
  }

  nav {
    gap: 10px 18px;
  }

  .hero-homepage {
    padding-top: 48px;
  }

  .hero-homepage h1,
  .hero-other h1 {
    white-space: normal;
  }

  .hero-homepage h1 {
    font-size: 2.5rem;
  }

  .hero-other h1 {
    font-size: 2.4rem;
  }

  .hero-homepage-year {
    margin-top: 10px;
  }

  .whenwhere-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .schedule-item,
  .cta-card,
  .editions-card {
    padding: 21px;
  }

  .schedule > summary {
    font-size: 1.4rem;
  }

  .footer-nav {
    gap: 8px 16px;
  }

  .organiser summary {
    gap: 8px;
  }

  .organiser-name {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .organiser-email-label {
    flex-shrink: 0;
    padding: 4px 8px;
    font-size: 0.78rem;
  }

  #next-talk,
  #upcoming-talks,
  #previous-ed {
  scroll-margin-top: 140px;
}
}