@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #f6f4ee;
  --bg-soft: #fffdfa;
  --card: #ffffff;
  --text: #0d111f;
  --muted: #5f6478;
  --accent: #2e5cff;
  --accent-2: #1a3cd8;
  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.28);
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 40px 80px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: "Space Grotesk", Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 820px at 85% -10%, rgba(46, 92, 255, 0.12), transparent 60%),
    radial-gradient(1100px 640px at -10% 0%, rgba(13, 22, 50, 0.08), transparent 60%), var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 92, 255, 0.35);
  box-shadow: var(--shadow-soft);
}

.thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #c7d2fe;
}

.card-body {
  padding: 16px 18px 22px;
}

.kicker {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--card);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease,
    background 0.18s ease;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(46, 92, 255, 0.35);
}

.btn.primary:hover {
  background: var(--accent-2);
  color: #fff;
}

.header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
}

.header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.2px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 10px 0;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin: 18px 0 10px;
}

h3 {
  margin: 6px 0 4px;
  font-size: 1.35rem;
}

p {
  color: var(--text);
  opacity: 0.9;
  max-width: 70ch;
  line-height: 1.6;
}

.hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
  opacity: 0.7;
}

/* Timeline list */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.timeline-card {
  display: flex;
  gap: 20px;
  align-items: stretch;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.timeline-thumb {
  width: 220px;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #e0e7ff;
}

.timeline-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-blurb {
  margin: 0;
  color: var(--text);
  opacity: 0.92;
}

@media (max-width: 720px) {
  .timeline-card {
    flex-direction: column;
  }

  .timeline-thumb {
    width: 100%;
    height: 220px;
  }
}

/* Dynamic island */
#island {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 150px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(46, 92, 255, 0.25);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  pointer-events: none;
  transition: width 0.18s ease, height 0.18s ease, opacity 0.2s ease;
  opacity: 0.9;
}

@media (max-width: 640px) {
  #island {
    display: none;
  }
}
