/*
Theme Name: XPhiRel Lab
Theme URI: https://xphirel.cz/
Author: Codex for XPhiRel
Description: Clean research group theme for experimental philosophy and cognitive science of religion.
Version: 1.0.0
Text Domain: xphirel-lab
*/

:root {
  --ink: #18212f;
  --muted: #5d6878;
  --line: #d9e0e8;
  --paper: #f7f4ee;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4d49;
  --plum: #5d3f6a;
  --ochre: #b5762c;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}
a { color: var(--teal-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: nowrap;
}
.brand { text-decoration: none; color: var(--ink); display: grid; gap: 1px; }
.brand-title { font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.brand-subtitle { display: none; }
.main-nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: nowrap; gap: 18px; align-items: center; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 650; white-space: nowrap; }
.main-nav a:hover { color: var(--teal-dark); }

.hero {
  background:
    linear-gradient(90deg, rgba(24,33,47,.93), rgba(24,33,47,.74), rgba(24,33,47,.35)),
    url("https://xphirel.cz/wp-content/uploads/2022/11/Jelena_experimental_philosophy_xphi_cognitive_science_cognitive_2b675877-de8d-4668-b168-e4b565021ca5.png") center/cover;
  color: var(--white);
}
.hero-inner {
  max-width: var(--max);
  min-height: 520px;
  margin: 0 auto;
  padding: 84px 22px 58px;
  display: grid;
  align-content: end;
  gap: 24px;
}
.eyebrow { color: #e9c891; font-weight: 750; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: 0; }
.hero p { max-width: 760px; margin: 0; color: #e8edf2; font-size: 1.12rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--white);
  border-radius: 6px;
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
}
.button.primary { background: var(--teal); border-color: var(--teal); }
.button.secondary { background: rgba(255,255,255,.08); }

.section { max-width: var(--max); margin: 0 auto; padding: 54px 22px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.15; }
.section-note { color: var(--muted); max-width: 620px; margin: 8px 0 0; }
.home-intro {
  max-width: 920px;
  margin: 0 0 34px;
}
.home-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}
.home-intro p {
  max-width: 760px;
}
.dark-button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}
.dark-button.secondary {
  border-color: var(--teal-dark);
  color: var(--teal-dark);
  background: transparent;
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  overflow: hidden;
}
.card-thumb {
  display: block;
  margin: -20px -20px 16px;
  background: #d9e0e8;
  border-bottom: 1px solid var(--line);
}
.card-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.25; }
.card p {
  color: var(--muted);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta { color: var(--ochre); font-size: .85rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.band { background: #e8eee9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-col,
.latest-publication { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 28px; align-items: start; }
.featured-workshop {
  background: var(--ink);
  color: var(--white);
}
.featured-workshop-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 34px;
  align-items: center;
}
.featured-workshop h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.08;
}
.featured-workshop p {
  max-width: 700px;
  color: #e8edf2;
}
.workshop-media {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  box-shadow: 0 18px 46px rgba(0,0,0,.28);
}
.workshop-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 22px;
}
.content h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; margin: 0 0 10px; }
.content .entry-meta { color: var(--muted); margin-bottom: 28px; }
.featured-media {
  margin: 18px 0 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.featured-media img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #eef3f1;
}
.entry-content { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 30px; }
.front-entry {
  background: transparent;
  border: 0;
  padding: 0;
}
.page-id-87 .entry-content,
.page-id-69 .entry-content,
.page-id-70 .entry-content,
.page-id-71 .entry-content,
.page-id-72 .entry-content {
  background: transparent;
  border: 0;
  padding: 0;
}
.page-id-87 .content h1,
.page-id-69 .content h1,
.page-id-70 .content h1,
.page-id-71 .content h1,
.page-id-72 .content h1 {
  max-width: 900px;
}
.entry-content h2, .entry-content h3 { line-height: 1.2; }
.entry-content iframe { max-width: 100%; }
.team-intro {
  max-width: 780px;
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 1.05rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0 10px;
}
.person-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  min-width: 0;
}
.person-card:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 26px rgba(24, 33, 47, .08);
}
.person-card-photo {
  display: block;
  background: #d9e0e8;
  border-bottom: 1px solid var(--line);
}
.person-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  display: block;
}
.person-card-body { padding: 18px; }
.person-card h2,
.person-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.2;
}
.person-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.person-card a { color: inherit; }
.profile-lead {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.profile-lead img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.profile-lead > div { min-width: 0; }
.profile-kicker {
  margin: 0 0 8px;
  color: var(--ochre);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.profile-summary {
  margin: 0 0 16px;
  font-size: 1.22rem;
  line-height: 1.35;
  font-weight: 750;
}
.profile-tabs,
.profile-sections {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.profile-sections {
  display: grid;
  gap: 0;
}
.profile-tab-list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #eef3f1;
}
.profile-tab-list button {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 13px 18px;
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}
.profile-tab-list button[aria-selected="true"] {
  background: var(--white);
  color: var(--teal-dark);
}
.profile-panel {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.profile-panel:last-child { border-bottom: 0; }
.profile-panel h2 { margin-top: 0; }
.profile-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.profile-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-list time,
.profile-year {
  color: var(--ochre);
  font-size: .82rem;
  font-weight: 800;
}
.profile-list strong { display: block; line-height: 1.25; }
.profile-list span { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.publication-list strong {
  font-weight: 500;
  line-height: 1.45;
}
.publication-list em {
  font-style: italic;
}
.identifier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.identifier-grid a {
  display: block;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  text-decoration: none;
  font-weight: 750;
}
.profile-note {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 18px;
}
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 750;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  background: var(--white);
}
.contact-form button {
  width: fit-content;
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: var(--white);
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.form-honeypot { display: none !important; }
.form-message {
  max-width: 720px;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 18px;
  font-weight: 750;
}
.form-message.success { background: #e3f4ec; color: #14513a; }
.form-message.error { background: #f8e1df; color: #7a2119; }
.video-summary {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.site-footer { border-top: 1px solid var(--line); background: var(--ink); color: #d8dee8; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 28px 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #e9c891; }

@media (max-width: 860px) {
  .header-inner { align-items: start; flex-direction: column; }
  .hero-inner { min-height: 470px; padding-top: 58px; }
  .header-inner { align-items: start; flex-direction: column; }
  .main-nav ul { flex-wrap: wrap; gap: 12px; }
  .grid, .two-col, .latest-publication, .team-grid, .profile-lead, .featured-workshop-inner { grid-template-columns: 1fr; }
  .profile-lead img { width: min(100%, 320px); }
  .profile-list li { grid-template-columns: 1fr; gap: 2px; }
  .section-head { display: block; }
}
