/* Neuroradiology Summer School 2027 – coming soon page */
:root {
  --ink: #2b2e35;
  --muted: #5d6573;
  --blue: #4f74a6;
  --blue-soft: #e6eef8;
  --wine: #8a3a52;
  --wine-dark: #6f2c41;
  --paper: #f7f9fc;
  --line: rgba(79, 116, 166, .22);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Soft, blurred poster behind everything + MRI-style scan lines */
.bg {
  position: fixed;
  inset: -40px;
  background-size: cover;
  background-position: center 40%;
  filter: blur(36px) saturate(1.1);
  opacity: .45;
  z-index: -2;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(79, 116, 166, .06) 22px 23px),
    linear-gradient(180deg, rgba(247, 249, 252, .55), rgba(247, 249, 252, .9));
}

.wrap {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 32px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

/* Poster */
.poster {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(31, 52, 84, .35), 0 0 0 1px rgba(255, 255, 255, .8);
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
.poster img { display: block; width: 100%; height: auto; }

/* Info column */
.info { animation: rise .9s .12s cubic-bezier(.2, .7, .2, 1) both; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.lang {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  transition: background .2s, border-color .2s;
}
.lang:hover { background: #fff; border-color: var(--blue); }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0;
}
h1 span {
  display: block;
  font-weight: 300;
  font-size: .62em;
  color: var(--muted);
  margin-top: 8px;
}

.save {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--wine);
  margin: 22px 0 18px;
}

.when {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.when div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--wine);
  color: #fff;
  border-radius: 10px;
}
.when div + div { background: rgba(255, 255, 255, .8); color: var(--ink); border: 1px solid var(--line); }
.when strong { font-weight: 500; font-size: 15px; }
.when svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.soon {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.soon h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
}
.soon p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 46ch; }

/* Countdown */
.count { margin: 28px 0 26px; }
.count .label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 440px; }
.cells div {
  text-align: center;
  padding: 14px 6px 12px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}
.cells b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.cells span { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--wine-dark); transform: translateY(-1px); }

.foot {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 20px 16px 28px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .poster, .info { animation: none; }
}

/* Tablet & mobile: stack, text first */
@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; gap: 36px; padding: 32px 20px 16px; max-width: 620px; }
  .info { order: -1; }
}
@media (max-width: 480px) {
  .wrap { padding: 24px 16px 8px; }
  .cells { gap: 6px; }
  .when strong { font-size: 14px; }
}
