:root {
  --ink: #14181f;
  --muted: #5a6472;
  --line: #e4e7ec;
  --paper: #f7f8fa;
  --white: #ffffff;
  --accent: #0b6e7a;
  --accent-soft: #e6f3f5;
  --warm: #c45c26;
  --hero-height: min(52vh, 420px);
  --max: 880px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--warm); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: var(--hero-height);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #0b1c24;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.95) contrast(1.05);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 24, 0.25) 0%, rgba(8, 18, 24, 0.55) 45%, rgba(8, 18, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(11, 110, 122, 0.22), transparent 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 3.2rem 0 2.4rem;
  animation: rise 0.8s ease both;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.9rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  text-shadow:
    0 0 14px rgba(160, 235, 245, 0.45),
    0 1px 8px rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 24px rgba(120, 220, 230, 0.22);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.55rem, 6.2vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  white-space: nowrap;
  margin-bottom: 0.45rem;
  text-shadow:
    0 0 12px rgba(200, 245, 255, 0.55),
    0 0 28px rgba(120, 220, 230, 0.55),
    0 0 56px rgba(11, 110, 122, 0.5),
    0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-edition {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: #d8f0f3;
  margin-bottom: 1.1rem;
  text-shadow: 0 0 16px rgba(120, 220, 230, 0.25);
}

.hero-meta {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48ch;
}

.hero-meta .whenwhere {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  align-items: center;
  margin: 0 0 0.75rem;
}

.hero-meta .chip {
  display: inline-block;
  padding: 0.38rem 0.85rem;
  border-radius: 3px;
  background: rgba(11, 110, 122, 0.55);
  border: 1px solid rgba(210, 245, 250, 0.55);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.015em;
  box-shadow: 0 0 22px rgba(120, 220, 230, 0.28);
}

.hero-meta .tagline {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}

/* ---------- Layout ---------- */
main { padding-bottom: 2rem; }

.container {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 2.4rem 0 0.4rem;
}

.container h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.35rem;
  display: inline-block;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink);
}

.lead b, .lead strong { font-weight: 650; }

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

.series {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

.series p { margin: 0; font-size: 0.98rem; color: #24343a; }
.series a { font-weight: 600; }

/* ---------- Topics / CFP ---------- */
.topic-grid {
  list-style: none;
  margin: 1rem 0 1.35rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.4rem;
}

.topic-grid li {
  position: relative;
  padding-left: 1.05rem;
  color: #2a323c;
  font-size: 0.97rem;
  line-height: 1.45;
}

.topic-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 1px;
  background: var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.cfp-format {
  margin: 0.2rem 0 1.1rem;
  padding: 0.95rem 1.05rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  font-size: 0.98rem;
}

.dates {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 0.5rem;
  font-size: 0.98rem;
}

.dates th,
.dates td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

.dates th {
  width: 42%;
  color: var(--muted);
  font-weight: 500;
}

.dates td { font-weight: 600; color: var(--ink); }

.note {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Schedule ---------- */
.schedule {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
}

.schedule td {
  padding: 0.75rem 0.35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.schedule td:first-child {
  width: 9.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 650;
  white-space: nowrap;
}

.schedule .break td {
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
}

.schedule .break td:first-child { font-style: normal; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem 1.1rem;
  margin-top: 1.4rem;
}

.person {
  text-align: center;
}

.person a { color: inherit; }

.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 4px;
  background: #dde3ea;
  box-shadow: 0 1px 0 rgba(20, 24, 31, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Tall portrait: face sits lower in the frame */
.person img.photo-alvaro {
  object-position: center 62%;
}

.person a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 24, 31, 0.12);
}

.person h3 {
  margin-top: 0.65rem;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--ink);
}

.person p {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.35;
}

.contact {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 2.5rem;
  padding: 2rem 0 2.4rem;
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer .container {
  padding-top: 0;
}

.accv-logo {
  height: 52px;
  width: auto;
  margin: 0 auto 1rem;
  opacity: 0.95;
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--muted);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero-content { padding: 2.4rem 0 1.8rem; }
  .hero h1 {
    white-space: normal;
    font-size: clamp(2.05rem, 9vw, 2.6rem);
  }
  .topic-grid { grid-template-columns: 1fr; }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 0.9rem;
  }
  .schedule td:first-child { width: 7.2rem; font-size: 0.92rem; }
  .dates th { width: 48%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
  .person img { transition: none; }
}
