@font-face {
  font-family: 'Phantom Sans';
  src: url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Regular.woff') format('woff'),
       url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Phantom Sans';
  src: url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Italic.woff') format('woff'),
       url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Phantom Sans';
  src: url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Bold.woff') format('woff'),
       url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f6fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #fff;
  --text: #172033;
  --muted: #5c6577;
  --border: rgba(23, 32, 51, 0.08);
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.10);
  --shadow-soft: 0 8px 24px rgba(23, 32, 51, 0.08);
  --brand: #ec3750;
  --brand-hover: #ff4d75;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Phantom Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 55, 80, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(97, 219, 251, 0.10), transparent 24%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
}

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

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

a:hover {
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.brand-banner {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 30;
}

.brand-banner img {
  width: 118px;
  height: auto;
  transition: transform 180ms ease;
  transform-origin: top left;
}

.brand-banner:hover img {
  transform: rotate(-4deg) scale(1.02);
}

.hero {
  text-align: center;
  padding: 5.5rem 1rem 2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
}

h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #10131d;
}

.hero-copy {
  width: min(720px, 100%);
  margin: 1.15rem auto 0;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.card {
  --card-bg: #fff;
  --card-accent: var(--brand);
  --card-text: var(--text);

  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card-bg);
  color: var(--card-text);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.card-media {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-media-contain {
  object-fit: contain;
  padding: 0.35rem;
  background: transparent;
}

.card-media-muted {
  filter: grayscale(1) saturate(0.4) opacity(0.72);
}

.card-body {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--card-accent) 86%, #000 14%);
}

.card-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.1;
  color: var(--card-accent);
}

.card-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--card-text);
}

.card-meta {
  margin: 0.65rem 0 0;
  font-size: 0.94rem;
  color: color-mix(in srgb, var(--card-text) 70%, #000 30%);
}

.card-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: flex-start;
}

.reward-tag,
.sticker-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: rgba(236, 55, 79, 0.237);
  color: #fff;
}

.sticker-note {
  background: rgba(0, 0, 0, 0.08);
  color: currentColor;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 170px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  cursor: pointer;
  user-select: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(236, 55, 80, 0.24);
}

.button-primary:hover {
  background: var(--brand-hover);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: #10131d;
  border-color: rgba(23, 32, 51, 0.10);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.96);
}

.button-disabled {
  background: rgba(255, 255, 255, 0.55);
  color: rgba(16, 19, 29, 0.45);
  border-color: rgba(16, 19, 29, 0.08);
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.connector {
  display: grid;
  place-items: center;
  gap: 0.1rem;
  padding: 0.05rem 0 0.1rem;
  color: var(--brand);
}

.connector span {
  font-size: 1.5rem;
  line-height: 1;
  animation: float 1.9s ease-in-out infinite;
}

.connector p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.notice,
.fulfillment {
  margin-top: 1.6rem;
}

.notice {
  width: min(760px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 1.35rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.notice h3,
.fulfillment h2,
.fulfillment-note h3 {
  margin: 0;
}

.notice h3 {
  color: var(--brand);
  font-size: 1.35rem;
}

.notice p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.fulfillment {
  padding: 1.2rem 0 0;
}

.fulfillment h2 {
  margin-bottom: 1rem;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #10131d;
}

.fulfillment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fulfillment-item,
.fulfillment-note {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.fulfillment-item {
  display: flex;
  gap: 0.95rem;
  padding: 1.1rem;
  align-items: flex-start;
}

.fulfillment-icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(236, 55, 80, 0.12);
  font-size: 1.6rem;
}

.fulfillment-item h3 {
  margin: 0 0 0.35rem;
  color: #10131d;
  font-size: 1.08rem;
}

.fulfillment-item p,
.fulfillment-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.fulfillment-note {
  margin-top: 1rem;
  padding: 1.05rem 1.15rem;
}

.fulfillment-note + .fulfillment-note {
  margin-top: 0.85rem;
}

.fulfillment-note a {
  color: var(--brand);
  font-weight: 700;
}

.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--muted);
}

.footer a {
  color: var(--brand);
  font-weight: 700;
}

.footer a:hover,
.fulfillment-note a:hover {
  text-decoration: underline;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 900px) {
  .card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .card-actions {
    grid-column: 1 / -1;
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .button {
    width: auto;
    flex: 1 1 190px;
  }

  .fulfillment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1120px);
  }

  .hero {
    padding-top: 4.8rem;
  }

  .brand-banner {
    top: 0.75rem;
    left: 0.75rem;
  }

  .brand-banner img {
    width: 92px;
  }

  .card {
    grid-template-columns: 1fr;
  }

  .card-media {
    width: 100%;
    height: 180px;
  }

  .card-body {
    flex-direction: column;
  }

  .card-badges {
    justify-content: flex-start;
  }

  .card-actions {
    flex-direction: column;
  }

  .button {
    flex: none;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
