/* A quiet editorial home for the Taati Group's journal club. */
:root {
  color-scheme: light dark;
  --bg: #f8f7f2;
  --surface: #fffefa;
  --tint: #eeece4;
  --text: #292b27;
  --muted: #65685f;
  --accent: #803e49;
  --accent-hover: #632b35;
  --on-accent: #fffaf3;
  --line: #d8d9cf;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
}
.skip-link:focus {
  top: 1rem;
  color: var(--on-accent);
}

/* Masthead */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}
.site-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.brand-mark {
  display: grid;
  place-content: center;
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font: italic 28px/1 var(--serif);
  letter-spacing: -2px;
  padding-right: 4px;
}
.brand-mark > span {
  position: absolute;
  right: 6px;
  bottom: 9px;
  font-size: 23px;
}
.brand-caption {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 2px;
}
.site-header nav {
  display: flex;
  gap: 30px;
  font-size: 13px;
}
.site-header nav a {
  text-decoration: none;
  padding-block: 8px;
}
.site-header nav a:hover {
  text-decoration: underline;
}
.site-header nav span {
  margin-left: 3px;
}

/* Introduction and practical details */
.jc-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px 64px;
  align-items: end;
  padding-block: 70px 54px;
}
.eyebrow,
.section-caption,
.jc-meeting dt,
.jc-role,
.jc-session-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 25px;
}
.small-cross {
  color: var(--accent);
  font-size: 23px;
  line-height: 1;
}
h1 {
  font: 400 clamp(46px, 5.4vw, 68px)/1.04 var(--serif);
  letter-spacing: -0.055em;
}
h1 em {
  display: block;
  margin-top: 5px;
  color: var(--accent);
  font-weight: 400;
}
.title-period {
  font-style: normal;
}
.jc-intro-copy {
  padding-bottom: 2px;
  min-width: 0;
}
.jc-tagline {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  text-wrap: pretty;
}
.jc-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
}
.jc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 3px;
  transition:
    background-color 150ms,
    color 150ms;
}
.jc-btn span {
  font-size: 16px;
  line-height: 1;
}
.jc-btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.jc-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}
.jc-btn-secondary {
  color: var(--accent);
  border-color: var(--line);
}
.jc-btn-secondary:hover {
  border-color: var(--accent);
  background: var(--surface);
}
.jc-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.jc-header-image {
  grid-column: 1 / -1;
}
.jc-header-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 3px;
}
.jc-header-image figcaption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.jc-meeting {
  display: grid;
  grid-template-columns: 0.95fr 1.4fr 1.1fr;
  gap: 28px;
  padding-block: 23px;
  margin: 0;
  border-block: 1px solid var(--line);
}
.jc-meeting dt {
  margin-bottom: 6px;
  color: var(--accent);
  letter-spacing: 0.09em;
}
.jc-meeting dd {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.detail-separator {
  color: var(--line);
  padding-inline: 4px;
}

/* Section rhythm */
.jc-section {
  padding-top: 58px;
  scroll-margin-top: 1rem;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.section-number {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
h2 {
  font: 400 29px/1.2 var(--serif);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-caption {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* Next session: date ticket + talk */
.jc-upcoming-list {
  display: grid;
  gap: 20px;
}
.jc-session-upcoming {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 4px 4px;
  padding: 32px;
  gap: 32px;
}
.jc-session-upcoming > .jc-date {
  align-self: start;
  text-align: center;
  padding: 18px 10px;
  background: var(--tint);
  border-radius: 2px;
}
.jc-date time {
  display: block;
}
.jc-date-month,
.jc-date-year {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.jc-date-month {
  color: var(--accent);
  font-weight: 600;
}
.jc-date-day {
  display: block;
  margin-block: 3px;
  font: 400 60px/1 var(--serif);
  letter-spacing: -0.07em;
}
.jc-date-year {
  color: var(--muted);
}
.jc-time {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 12px;
}
.jc-session-label {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.session-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.jc-session-weekday {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.jc-session-title {
  font: 400 29px/1.22 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.jc-session-title a {
  text-decoration: none;
}
.jc-session-title a:hover {
  text-decoration: underline;
}
.jc-speaker {
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}
.jc-affil {
  color: var(--muted);
  font-weight: 400;
}
.jc-abstract {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
.jc-abstract p + p {
  margin-top: 12px;
}
.jc-abstract p:last-child {
  margin-bottom: 0;
}
.jc-session-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.jc-where {
  color: var(--muted);
}
.jc-paper-link {
  color: var(--accent);
  white-space: nowrap;
}
.jc-calendar-link {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}
.jc-calendar-link span {
  margin-left: 8px;
}
.jc-date-tbd {
  display: block;
  font-size: 12px;
}
.jc-empty {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}
.jc-empty h3 {
  font: 400 26px/1.3 var(--serif);
  margin-bottom: 12px;
}
.jc-empty p {
  font-size: 14px;
  color: var(--muted);
}

/* Organizers: a simple, unboxed roster */
.jc-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.jc-person {
  padding-top: 23px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.jc-person-heading {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
}
.jc-avatar {
  width: 72px;
  height: 80px;
  flex-shrink: 0;
  background: var(--tint);
  border-radius: 3px;
  overflow: hidden;
}
.jc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.jc-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font: 400 26px/1 var(--serif);
  color: var(--accent);
}
.jc-role {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.jc-person h3 {
  font: 400 23px/1.15 var(--serif);
  letter-spacing: -0.03em;
}
.jc-person h3 a {
  text-decoration: none;
}
.jc-person h3 a:hover {
  text-decoration: underline;
}
.jc-person h3 span {
  font: 400 14px/1 var(--sans);
  color: var(--accent);
}
.jc-person > .jc-affil {
  font-size: 11px;
  line-height: 1.8;
}
.jc-bio {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
  margin-top: 12px;
}
.jc-bio p + p {
  margin-top: 8px;
}
.jc-contact {
  font-size: 12px;
  color: var(--muted);
  padding-top: 22px;
  margin-top: 27px;
  border-top: 1px solid var(--line);
}
.jc-contact a {
  color: var(--accent);
  display: inline-block;
  margin-left: 5px;
}

/* Native year disclosures keep the archive compact without JavaScript. */
.jc-year {
  border-top: 1px solid var(--line);
}
.jc-year:last-of-type {
  border-bottom: 1px solid var(--line);
}
.jc-year summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding-block: 16px;
  cursor: pointer;
  list-style: none;
}
.jc-year summary::-webkit-details-marker {
  display: none;
}
.jc-year-label {
  font: 400 26px/1 var(--serif);
  letter-spacing: -0.03em;
}
.jc-year-count {
  color: var(--muted);
  font-size: 11px;
}
.jc-year-toggle {
  position: relative;
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.jc-year-toggle::before,
.jc-year-toggle::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  width: 12px;
  height: 1px;
  background: currentColor;
}
.jc-year-toggle::after {
  transform: rotate(90deg);
}
.jc-year[open] .jc-year-toggle::after {
  transform: rotate(0);
}
.jc-year-sessions {
  padding: 0 0 16px 42px;
}
.jc-session-past {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 20px;
  padding-block: 17px;
  border-top: 1px solid var(--line);
}
.jc-session-past .jc-date {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding-top: 3px;
}
.jc-session-past .jc-time {
  margin-top: 3px;
}
.jc-session-past .jc-session-title {
  font: 500 14px/1.5 var(--sans);
  letter-spacing: 0;
}
.jc-session-past .jc-speaker {
  font-size: 12px;
  margin-top: 3px;
  font-weight: 400;
  color: var(--muted);
}
.jc-session-past .jc-session-footer {
  border-top: 0;
  padding: 0;
  margin-top: 7px;
}
.jc-archive {
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}

/* Colophon */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px 38px;
  margin-top: 72px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.footer-brand {
  font: italic 16px/1.4 var(--serif);
  color: var(--text);
  text-decoration: none;
}
.site-footer p span {
  margin-inline: 6px;
  color: var(--accent);
}
.site-footer > a:last-child {
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e2321;
    --surface: #252b28;
    --tint: #303833;
    --text: #eeece2;
    --muted: #b3b9ae;
    --accent: #e1a1ac;
    --accent-hover: #f0b7c0;
    --on-accent: #302027;
    --line: #414a43;
  }
}
/* Forced themes, used when embedded in a host site that has its own toggle. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1e2321;
  --surface: #252b28;
  --tint: #303833;
  --text: #eeece2;
  --muted: #b3b9ae;
  --accent: #e1a1ac;
  --accent-hover: #f0b7c0;
  --on-accent: #302027;
  --line: #414a43;
}
:root[data-theme="light"] {
  color-scheme: light;
}
/* Embed mode (?embed=1): no header or footer, host page provides them. */
html.embed {
  scroll-behavior: auto;
}
html.embed .site-header,
html.embed .site-footer,
html.embed .skip-link {
  display: none;
}
html.embed main {
  padding-top: 0;
}

@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .jc-intro {
    gap: 32px;
  }
  h1 {
    font-size: 54px;
  }
  .jc-team {
    gap: 22px;
  }
  .jc-person-heading {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
  .section-caption {
    max-width: 140px;
    text-align: right;
  }
  .site-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    gap: 20px;
    padding-block: 22px;
  }
  .brand-caption {
    max-width: 150px;
  }
  .site-header nav {
    gap: 18px;
    font-size: 12px;
  }
  .jc-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 42px 32px;
  }
  h1 {
    font-size: clamp(46px, 9vw, 68px);
  }
  .eyebrow {
    margin-bottom: 20px;
  }
  .jc-tagline {
    max-width: 60ch;
  }
  .jc-meeting {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .jc-meeting > div:last-child {
    grid-column: 1 / -1;
  }
  .jc-section {
    padding-top: 42px;
  }
  .section-caption {
    display: none;
  }
  .jc-session-upcoming {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }
  .jc-date-day {
    font-size: 48px;
  }
  .jc-session-title {
    font-size: 26px;
  }
  .jc-team {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .jc-person-heading {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
  }
  .jc-avatar {
    width: 64px;
    height: 72px;
  }
  .jc-person > .jc-affil,
  .jc-bio {
    font-size: 13px;
  }
  .jc-person h3 {
    font-size: 25px;
  }
  .jc-year-sessions {
    padding-left: 0;
  }
  .site-footer {
    margin-top: 48px;
    gap: 12px 24px;
  }
  .footer-brand {
    flex-basis: 100%;
  }
}

@media (max-width: 480px) {
  .site-header {
    flex-wrap: wrap;
    gap: 14px;
  }
  .brand-caption {
    max-width: none;
  }
  .site-header nav {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .jc-intro {
    padding-top: 32px;
  }
  h1 {
    font-size: clamp(40px, 11.5vw, 54px);
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.09em;
  }
  .jc-tagline {
    font-size: 14px;
  }
  .jc-buttons {
    gap: 10px;
  }
  .jc-btn {
    font-size: 12px;
    gap: 14px;
    padding-inline: 13px;
  }
  .jc-meeting {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .jc-meeting > div:last-child {
    grid-column: auto;
  }
  .jc-meeting dd {
    font-size: 13px;
  }
  h2 {
    font-size: 27px;
  }
  .section-heading > div {
    gap: 12px;
  }
  .jc-session-upcoming {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }
  .jc-session-upcoming > .jc-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 0 15px;
    border-bottom: 1px solid var(--line);
    background: none;
    text-align: left;
  }
  .jc-session-upcoming .jc-date time {
    display: flex;
    align-items: baseline;
    gap: 7px;
  }
  .jc-date-day {
    order: -1;
    font-size: 36px;
    margin: 0;
  }
  .jc-date-month,
  .jc-date-year {
    font-size: 11px;
  }
  .jc-session-upcoming .jc-time {
    margin: 0;
    font-size: 11px;
  }
  .jc-session-title {
    font-size: 26px;
  }
  .jc-abstract {
    font-size: 13px;
    line-height: 1.8;
  }
  .jc-session-past {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }
  .jc-contact a {
    margin-left: 0;
  }
  .jc-empty {
    padding: 22px;
  }
}

@media (pointer: coarse) {
  .site-header nav a,
  .jc-btn,
  .jc-paper-link,
  .jc-calendar-link,
  .jc-contact a,
  .jc-archive a,
  .site-footer > a:last-child {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .jc-btn {
    transition: none;
  }
}

@media print {
  :root {
    --bg: white;
    --surface: white;
    --text: #222;
    --muted: #555;
    --accent: #542936;
    --line: #ccc;
  }
  .wrap {
    width: 100%;
  }
  .site-header nav,
  .skip-link,
  .jc-calendar-link {
    display: none;
  }
  .jc-intro {
    padding-top: 24px;
  }
  .jc-session-upcoming,
  .jc-person {
    break-inside: avoid;
  }
}
