/* Page-specific layout; archive.css and theme.css retain the original ao3.fish
   typography, header, swimming fish, controls, day/night palette, and footer. */
body { min-height: 100svh; }
.return-divider { flex: none; height: 8px; background: var(--theme-header); }
.return-page {
  display: flex;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 54px;
}
.return-page:focus { outline: none; }
.homecoming {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(520px, 48vw, 720px);
}
.return-copy {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  width: 53%;
  padding-top: clamp(42px, 5vw, 80px);
}
.return-copy h1 {
  margin: 0 0 28px;
  color: var(--accent-dark);
  font-size: clamp(40px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.thank-you { margin: 0; font-size: clamp(19px, 1.75vw, 26px); line-height: 1.5; }
.return-action { margin-top: 34px; }
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--accent-dark);
  background: linear-gradient(var(--theme-button-top), var(--control));
  font-size: 21px;
  line-height: 1.4;
  text-decoration: none;
}
.primary-link:hover { border-color: var(--muted); text-decoration: underline; }
.primary-link .icon { width: 20px; height: 20px; }
.homecoming-art {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 85%;
  height: auto;
  pointer-events: none;
}
footer { flex: none; }

@media (max-width: 1050px) and (min-width: 761px) {
  .return-copy { width: 60%; }
  .return-copy h1 { font-size: 42px; }
  .homecoming { min-height: 600px; }
  .homecoming-art { width: 94%; }
}

@media (max-width: 760px) {
  .return-page { padding-top: 38px; padding-bottom: 32px; align-items: flex-start; }
  .homecoming { display: block; min-height: 0; }
  .return-copy { width: 100%; padding-top: 0; }
  .return-copy h1 { margin-bottom: 24px; font-size: clamp(34px, 5.7vw, 44px); line-height: 1.2; }
  .thank-you { font-size: 20px; }
  .return-action { margin-top: 28px; }
  .primary-link { font-size: 20px; }
  .homecoming-art { position: relative; width: 100%; right: auto; bottom: auto; margin-top: 24px; }
}

@media (max-width: 360px) {
  .return-copy h1 { font-size: 30px; }
  .thank-you { font-size: 18px; }
}

@media (forced-colors: active) {
  .primary-link { border-color: LinkText; }
  .return-divider { background: CanvasText; }
}
