:root {
  color-scheme: dark;
  --bg: #0b0d11;
  --bg-elevated: rgba(17, 20, 26, 0.88);
  --bg-soft: rgba(255, 255, 255, 0.045);
  --bg-card: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f6f2eb;
  --text-soft: #c3c0ba;
  --text-muted: #85847f;
  --accent: #e8b978;
  --accent-soft: rgba(232, 185, 120, 0.14);
  --accent-strong: #f4cd95;
  --shadow: 0 36px 100px rgba(0, 0, 0, 0.52);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1eee8;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --bg-soft: rgba(36, 31, 24, 0.045);
  --bg-card: rgba(255, 255, 255, 0.7);
  --border: rgba(40, 33, 24, 0.1);
  --border-strong: rgba(40, 33, 24, 0.16);
  --text: #1c1a17;
  --text-soft: #5c5750;
  --text-muted: #817a70;
  --accent: #a86825;
  --accent-soft: rgba(168, 104, 37, 0.12);
  --accent-strong: #8a5118;
  --shadow: 0 34px 90px rgba(74, 60, 40, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  transition: background-color 220ms ease, color 220ms ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.ambient,
.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  z-index: -3;
  filter: blur(10px);
}

.ambient-one {
  background: radial-gradient(circle at 18% 12%, rgba(226, 162, 85, 0.16), transparent 30%);
}

.ambient-two {
  background: radial-gradient(circle at 85% 84%, rgba(95, 113, 150, 0.13), transparent 34%);
}

.grid {
  z-index: -2;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

:root[data-theme="light"] .grid {
  background-image:
    linear-gradient(rgba(30, 25, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 25, 20, 0.04) 1px, transparent 1px);
}

.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 20;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.theme-toggle:focus-visible,
.discord-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 4px;
}

.theme-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-icon-moon {
  opacity: 0;
  transform: rotate(-30deg) scale(0.7);
}

:root[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(30deg) scale(0.7);
}

:root[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 48px;
}

.farewell-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.hero {
  position: relative;
  padding: 78px 78px 64px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 48%),
    linear-gradient(to bottom right, rgba(255, 255, 255, 0.022), transparent);
}

.hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  border-radius: 0 0 0 100%;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  content: "";
}

.brand-mark {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 38px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: #fff;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.eyebrow,
.discord-label {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  margin: 14px 0 18px;
  font-size: clamp(3.3rem, 8vw, 6.8rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.lead {
  max-width: 730px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  line-height: 1.5;
}

.meta-row {
  display: flex;
  margin-top: 34px;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.content {
  padding: 68px 78px 76px;
}

.content > p {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.content strong {
  color: var(--text);
  font-weight: 700;
}

.reason-section,
.note-block,
.decision-block {
  margin-top: 72px;
}

.section-heading {
  display: flex;
  margin-bottom: 28px;
  align-items: baseline;
  gap: 16px;
}

.section-heading span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-heading.compact {
  margin-bottom: 18px;
}

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

.reason-card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.reason-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  background: color-mix(in srgb, var(--accent) 5%, var(--bg-card));
}

.reason-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 25px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.reason-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reason-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.reason-card p,
.note-block p,
.decision-block p {
  margin: 0;
  color: var(--text-soft);
}

.note-block,
.decision-block {
  max-width: 820px;
  padding-left: 24px;
  border-left: 1px solid var(--border-strong);
}

.discord-panel {
  display: flex;
  margin-top: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, var(--accent-soft), transparent 62%),
    var(--bg-card);
}

.discord-copy h2 {
  margin: 8px 0 6px;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  letter-spacing: -0.03em;
}

.discord-copy p {
  margin: 0;
  color: var(--text-soft);
}

.discord-link {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.92rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.discord-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.discord-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.outlook {
  display: grid;
  margin-top: 64px;
  grid-template-columns: 54px 1fr;
  align-items: start;
  gap: 22px;
}

.outlook-line {
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(to right, var(--accent), transparent);
}

.outlook p {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.page-footer {
  padding: 38px 20px 0;
  text-align: center;
}

.page-footer p,
.page-footer small {
  display: block;
  margin: 0;
  color: var(--text-muted);
}

.page-footer p {
  font-style: italic;
}

.page-footer p span {
  color: var(--accent);
  font-style: normal;
}

.page-footer small {
  margin-top: 5px;
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .hero,
  .content {
    padding-right: 42px;
    padding-left: 42px;
  }

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

  .reason-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
  }

  .reason-icon {
    grid-row: 1 / 3;
    margin-bottom: 0;
  }

  .discord-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  body {
    line-height: 1.68;
  }

  .theme-toggle {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .page-shell {
    width: min(100% - 20px, 1120px);
    padding: 70px 0 28px;
  }

  .farewell-card {
    border-radius: 22px;
  }

  .hero {
    padding: 46px 24px 42px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    margin-bottom: 30px;
    border-radius: 16px;
  }

  .hero h1 {
    margin-top: 11px;
    font-size: clamp(3.05rem, 17vw, 4.6rem);
  }

  .lead {
    font-size: 1.08rem;
  }

  .meta-row {
    align-items: flex-start;
    font-size: 0.8rem;
  }

  .status-dot {
    margin-top: 8px;
  }

  .content {
    padding: 42px 24px 48px;
  }

  .content > p {
    font-size: 0.98rem;
  }

  .reason-section,
  .note-block,
  .decision-block {
    margin-top: 54px;
  }

  .section-heading {
    gap: 12px;
  }

  .reason-card {
    display: block;
    padding: 22px;
  }

  .reason-icon {
    margin-bottom: 20px;
  }

  .note-block,
  .decision-block {
    padding-left: 18px;
  }

  .discord-panel {
    margin-top: 54px;
    padding: 24px;
  }

  .discord-link {
    width: 100%;
  }

  .outlook {
    margin-top: 48px;
    grid-template-columns: 34px 1fr;
    gap: 14px;
  }

  .page-footer {
    padding-top: 28px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}