@font-face {
  font-family: 'Work Sans';
  src: url('assets/fonts/work-sans-400.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('assets/fonts/work-sans-600.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-700.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --pink: #ff054b;
  --blue: #27bafd;
  --background: #0f0f0f;
  --border: #34343a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.farewell {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 36px 32px 0;
}
.farewell-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.message { padding-bottom: 36px; position: relative; z-index: 1; }
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  width: fit-content;
}
.brand-heart {
  flex-shrink: 0;
  filter: invert(41%) sepia(100%) saturate(7499%) hue-rotate(335deg) brightness(99%) contrast(114%);
}
.brand-ai, h1 span { color: var(--pink); }
.tagline { font-size: 18px; line-height: 27px; margin: 6px 0 26px; }
.tagline span, footer > p span { color: var(--blue); }
h1 { font-size: clamp(38px, 3.1vw, 48px); font-weight: 600; line-height: 1.12; letter-spacing: -1.5px; margin: 0 0 18px; }
.notice { font-size: 19px; font-weight: 600; margin: 0 0 14px; line-height: 1.5; }
.letter { color: #ccc; max-width: 660px; font-size: 16px; line-height: 1.6; }
.letter p { margin: 0 0 12px; }
.letter p:last-child { margin-bottom: 0; }
.signature { font-size: 17px; margin: 20px 0 0; line-height: 1.5; }
.signature > span { color: var(--pink); font-weight: 600; }
.signature small { display: block; font-size: 13px; color: #999; margin-top: 3px; }
.artwork { align-self: end; display: flex; justify-content: center; }
@media (min-width: 901px) {
  .artwork {
    position: absolute;
    bottom: 0;
    right: max(32px, calc((100% - 1200px) / 2));
    width: min(calc((100% - 128px) / 2.5), 454px);
  }
}
.artwork img { display: block; width: 100%; max-width: 440px; height: auto; }
footer {
  flex-shrink: 0;
  padding: 18px 24px;
  background: #131313;
  border-top: 1px solid var(--border);
  text-align: center;
}
footer p { font-size: 16px; line-height: 1.5; margin: 0; }
footer .copyright { color: #999; font-size: 12px; margin-top: 6px; }
@media (min-width: 901px) and (max-height: 800px) {
  .farewell { padding-top: 20px; }
  .message { padding-bottom: 20px; }
  .brand { font-size: 32px; }
  .brand-heart { width: 36px; height: 36px; }
  .tagline { font-size: 16px; margin-bottom: 18px; }
  h1 { font-size: 38px; margin-bottom: 12px; }
  .notice { font-size: 18px; margin-bottom: 10px; }
  .letter { font-size: 15px; line-height: 1.5; }
  .letter p { margin-bottom: 10px; }
  .signature { margin-top: 14px; }
  .artwork img { max-width: 370px; }
  footer { padding-block: 14px; }
}
@media (max-width: 900px) {
  .farewell { padding: 36px 32px 0; }
  .farewell-inner { gap: 20px; grid-template-columns: 1.2fr .8fr; }
  .brand { font-size: 36px; gap: 12px; }
  .brand-heart { width: 38px; height: 38px; }
  .artwork img { width: 135%; max-width: none; }
  .artwork { overflow: hidden; }
  .message { padding-bottom: 36px; }
}
@media (max-width: 640px) {
  .farewell { padding: 48px 24px 0; }
  .farewell-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .message { padding-bottom: 0; }
  .brand { font-size: 34px; }
  .tagline { margin-bottom: 36px; font-size: 18px; }
  h1 { font-size: clamp(34px, 8.7vw, 48px); letter-spacing: -1px; }
  .notice { font-size: 19px; }
  .letter { font-size: 16px; }
  .artwork { max-width: 300px; width: 100%; justify-self: center; margin-top: 8px; }
  .artwork img { width: 100%; }
}
