@font-face {
  font-family: "Geist";
  src: url("assets/fonts/GeistVF.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0688f0;
  --blue-secondary: #0090ff;
  --text: #0f1419;
  --text-muted: #5b7083;
  --border: #e2e8f0;
  --surface: #f1f5f9;
  --page-bg: #f8fafc;

  --content-max: 100%;
  --page-padding-x: 16px;
  --page-padding-y: 32px;
  --font: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.farewell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  min-height: 100svh;
  padding:
    max(var(--page-padding-y), env(safe-area-inset-top, 0px))
    max(var(--page-padding-x), env(safe-area-inset-right, 0px))
    max(var(--page-padding-y), env(safe-area-inset-bottom, 0px))
    max(var(--page-padding-x), env(safe-area-inset-left, 0px));
}

.farewell__content {
  width: 100%;
  max-width: var(--content-max);
}

.hero {
  margin-bottom: clamp(32px, 5vw, 44px);
}

.logo {
  margin-bottom: clamp(20px, 3.5vw, 28px);
}

.logo__img {
  display: block;
  width: clamp(128px, 24vw, 162px);
  height: auto;
}

.headline {
  font-size: clamp(2.125rem, 4.8vw + 0.5rem, 3.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.042em;
  color: var(--text);
  text-wrap: balance;
}

.prose {
  margin-bottom: clamp(36px, 6vw, 48px);
}

.prose p {
  font-size: clamp(1.0625rem, 1vw + 0.875rem, 1.1875rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.011em;
  color: var(--text-muted);
}

.prose p + p {
  margin-top: 10px;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: reveal-up 0.9s var(--ease-out) both;
  animation-delay: var(--delay, 0ms);
}

.courses {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.course-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.course-card__title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.018em;
  color: var(--text);
}

.course-card__desc {
  margin-top: 8px;
  margin-bottom: 16px;
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.006em;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 6px;
  width: auto;
  min-height: 40px;
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-decoration: none;
  background-color: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 0 0 1px rgba(6, 136, 240, 0.08),
    0 1px 2px rgba(6, 136, 240, 0.12),
    0 4px 14px rgba(6, 136, 240, 0.18);
  transition:
    background-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.btn:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(6, 136, 240, 0.08),
    0 1px 2px rgba(6, 136, 240, 0.12),
    0 4px 14px rgba(6, 136, 240, 0.16);
}

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

.btn__arrow {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

@media (max-width: 449px) {
  :root {
    --page-padding-x: 16px;
    --page-padding-y: 28px;
  }

  .headline {
    font-size: clamp(1.625rem, 7.5vw, 2rem);
    line-height: 1.15;
  }

  .hero {
    margin-bottom: 24px;
  }

  .logo {
    margin-bottom: 16px;
  }

  .logo__img {
    width: 108px;
  }

  .prose {
    margin-bottom: 24px;
  }

  .prose p {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .courses {
    gap: 10px;
  }

  .course-card {
    padding: 14px;
    border-radius: 12px;
  }

  .course-card__title {
    font-size: 0.8125rem;
  }

  .course-card__desc {
    font-size: 0.75rem;
    margin-bottom: 14px;
  }

  .btn {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
}

@media (min-width: 450px) {
  .courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 480px) {
  :root {
    --content-max: 720px;
    --page-padding-x: 24px;
    --page-padding-y: 48px;
  }

  .course-card {
    padding: 20px;
  }

  .course-card__title {
    font-size: clamp(1rem, 1vw + 0.875rem, 1.125rem);
  }

  .course-card__desc {
    font-size: clamp(0.875rem, 0.5vw + 0.8rem, 0.9375rem);
  }

  .btn {
    min-height: 44px;
    padding: 12px 22px;
    font-size: 0.9375rem;
  }
}

@media (min-width: 640px) {
  :root {
    --page-padding-x: 40px;
    --page-padding-y: 64px;
  }

  .courses {
    gap: 16px;
  }

  .course-card {
    padding: clamp(20px, 3vw, 28px);
    border-radius: 16px;
  }

  .course-card__title {
    font-size: clamp(1.0625rem, 1vw + 0.875rem, 1.1875rem);
    line-height: 1.4;
  }

  .course-card__desc {
    font-size: clamp(0.875rem, 0.5vw + 0.8rem, 1rem);
    line-height: 1.65;
  }

  .headline {
    font-size: clamp(2.5rem, 3.2vw + 1rem, 3.75rem);
  }
}

@media (min-width: 900px) {
  :root {
    --page-padding-x: 48px;
    --page-padding-y: 80px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background-color: #0578d6;
    transform: translateY(-1px);
    box-shadow:
      0 0 0 1px rgba(6, 136, 240, 0.12),
      0 2px 4px rgba(6, 136, 240, 0.14),
      0 10px 28px rgba(6, 136, 240, 0.26),
      0 0 40px rgba(6, 136, 240, 0.1);
  }

  .btn:hover .btn__arrow {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .btn,
  .btn__arrow {
    transition: none;
  }
}
