:root {
  color-scheme: light;
  --ink: #153e30;
  --muted: #3f6152;
  --sage: #356d53;
}
* { box-sizing: border-box; }
body {
  min-height: 100svh;
  margin: 0;
  padding: clamp(20px, 5vw, 76px);
  display: grid;
  place-items: center;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 88% 13%, #b4d6a0 0, transparent 44%),
    radial-gradient(ellipse at 10% 90%, #578d71 0, transparent 48%),
    linear-gradient(130deg, #143e34 8%, #397963 58%, #214e40);
  color: var(--ink);
  font-family: Avenir, "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
body::before, body::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
  border: 1px solid #efffdf40;
  border-radius: 50%;
  box-shadow: inset 14px 12px 42px #f3ffda15, 0 30px 90px #082a3020;
}
body::before {
  width: 66vw;
  height: 66vw;
  top: -42vw;
  right: -9vw;
  background: linear-gradient(135deg, #ecffc236, #6d9c7805);
}
body::after {
  width: 48vw;
  height: 48vw;
  left: -21vw;
  bottom: -29vw;
  background: linear-gradient(135deg, #b5dcc232, transparent);
}
.farewell {
  position: relative;
  width: min(1240px, 100%);
  min-height: 700px;
  padding: 128px clamp(32px, 5.2vw, 74px) 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid #f6ffe8a6;
  border-radius: 42px;
  background: linear-gradient(125deg, #f5faeae6, #e9f5e6b8 52%, #e1f2db80);
  -webkit-backdrop-filter: blur(38px) saturate(135%);
  backdrop-filter: blur(38px) saturate(135%);
  box-shadow:
    inset 0 2px 2px #ffffffb8,
    inset 0 -1px 1px #ffffff50,
    0 32px 100px #082d3540,
    0 6px 20px #082d3512;
  animation: glass-arrival 1.2s ease-out both;
}
.farewell::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background: linear-gradient(155deg, #ffffff48, transparent 27%, transparent 72%, #efffe624);
}
.copy { position: relative; z-index: 1; }
.flight-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
#bird { filter: drop-shadow(0 5px 5px #23493224); }
h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.13;
  font-weight: 400;
  letter-spacing: -.055em;
  text-shadow: 0 1px 0 #ffffff70;
}
h1 em { color: var(--sage); font-weight: 400; }
.thanks {
  margin: 25px 0 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
}
.contact { margin-top: 48px; }
.contact > p {
  margin: 0 0 17px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-links a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  border: 1px solid #ffffffa6;
  border-radius: 100px;
  background: linear-gradient(150deg, #ffffffac, #ffffff30);
  box-shadow: inset 0 1px 1px #ffffffb0, 0 4px 12px #1b493711;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.social-links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.link-arrow { margin-left: 5px; font-size: 19px; }
.social-links a:hover {
  background: #ffffffbc;
  box-shadow: inset 0 1px 1px #fff, 0 6px 20px #1b493725;
  transform: translateY(-2px);
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--sage); outline-offset: 5px; }
.illustration { position: relative; min-width: 0; }
.sewing-scene { display: block; width: 100%; height: auto; overflow: hidden; }
.sewn-thread { fill: none; stroke: #9c6421; stroke-width: 2.6; stroke-linecap: round; }
.loose-thread { fill: none; stroke: #9c6421; stroke-width: 2; stroke-linecap: round; }
.heart-thread { fill: none; stroke: url(#gold-thread); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.heart-outline { fill: #e9bd481a; filter: drop-shadow(0 2px 0 #ffffff80); }
.animation-control {
  position: absolute;
  right: 8%;
  bottom: 0;
  min-height: 44px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #ffffff70;
  border-radius: 30px;
  background: #ffffff30;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.animation-control[hidden] { display: none; }
.animation-control svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.animation-control .replay-icon, .animation-control .play-icon,
.animation-control[data-state="finished"] .pause-icon,
.animation-control[data-state="paused"] .pause-icon { display: none; }
.animation-control[data-state="finished"] .replay-icon { display: block; }
.animation-control[data-state="paused"] .play-icon { display: block; }
.animation-control .sequence-progress { width: 19px; height: 19px; margin-left: 5px; transform: rotate(-90deg); }
.progress-track { opacity: .16; }
#progress-ring { stroke-dasharray: 1; stroke-dashoffset: 1; }
.animation-control[data-state="finished"] .sequence-progress { display: none; }
.animation-control:hover { color: var(--ink); background: #ffffff70; }
@keyframes glass-arrival { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) and (min-width: 761px) {
  body { padding: 28px; }
  .farewell { padding: 132px 28px 66px; min-height: 650px; }
  h1 { font-size: 39px; }
  .social-links a { padding-inline: 13px; }
}
@media (max-width: 760px) {
  body { padding: 24px 16px; }
  .farewell {
    min-height: auto;
    padding: 138px 28px 36px;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    border-radius: 30px;
  }
  .copy { width: min(100%, 470px); margin: auto; }
  h1 { font-size: clamp(33px, 6.9vw, 50px); }
  .thanks { margin-top: 18px; font-size: 15px; }
  .contact { margin-top: 28px; }
  .illustration { width: min(100%, 470px); margin: 0 auto; }
}
@media (max-width: 390px) {
  body { padding: 16px 12px; }
  .farewell { padding: 125px 22px 32px; }
  h1 { font-size: 31px; }
  .social-links { gap: 8px; }
  .social-links a { padding: 10px 11px; font-size: 12px; gap: 5px; }
  .link-arrow { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .farewell { background: #e1eddb; }
}
@media print {
  body { display: block; background: #fff; padding: 0; }
  body::before, body::after { display: none; }
  .farewell { min-height: auto; background: #fff; box-shadow: none; }
  .animation-control, .flight-layer { display: none; }
}
