/* ── Variables ────────────────────────────────────────────────────────── */

:root {
  --navy:  #001f4f;
  --bg:    #e2e8f5;
  --text:  #1e293b;
  --muted: #94a3b8;
}

/* ── Reset ────────────────────────────────────────────────────────────── */

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  background: var(--navy);
  color: #fff;
  padding: 2.8rem 2rem 3.2rem;
  text-align: center;
}

.site-header h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.site-header .meta {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.35rem;
}

/* ── Main ─────────────────────────────────────────────────────────────── */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Card grid ────────────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1080px;
}

/* ── Card ─────────────────────────────────────────────────────────────── */

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  padding: 2rem 1.8rem 1.8rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.3rem;
}

.card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.55;
}

.card-cta {
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.15s;
}

.card:hover .card-cta { gap: 0.55rem; }

.card-cta svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.card:hover .card-cta svg { transform: translateX(2px); }

/* Card accents */
.card--schedule  { --accent: #6366f1; --accent-bg: #eef2ff; }
.card--abstracts { --accent: #16a34a; --accent-bg: #f0fdf4; }
.card--need      { --accent: #b8940a; --accent-bg: #fffde6; }

/* ── QR code ──────────────────────────────────────────────────────────── */

.qr-section {
  text-align: center;
  padding: 5rem 1rem 1rem;
}

.qr-wrap {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 1.2rem 1.2rem 0.8rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

.qr-wrap img {
  display: block;
  width: 240px;
  height: 240px;
}

.qr-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

.qr-label a {
  color: inherit;
  text-decoration: none;
}

.qr-label a:hover { text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  text-align: center;
  padding: 1.2rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover { text-decoration: underline; }

/* ── Mobile ───────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .site-header     { padding: 2rem 1.2rem 2.4rem; }
  .site-header h1  { font-size: 1.9rem; }
  main             { padding: 1.5rem 1rem 3rem; }
  .card            { padding: 1.5rem 1.4rem 1.4rem; }
  .qr-section      { padding-top: 2.5rem; }
}
