/* Recycle Bin: a GeoCities homepage after the collapse. Cracked concrete, a crumbling 410, a sign that
   says the site has moved, broken image frames, and one surviving panel of solid paper for the text. */
[data-key="bin"] {
  --bar-bg: #5a5650;
  --bar-fg: #f4efe6;
  --bar-edge: #a29c92;
  --bar-button: #ddd8cf;
  --bar-button-fg: #2a2723;
  --bar-button-border: groove;
  --bar-button-radius: 0;
  --bar-face: "Times New Roman", serif;
}
.window[data-site="bin"] { border: 3px groove #a29c92; }
.window[data-site="bin"] > .window-body {
  background:
    linear-gradient(28deg, transparent 49.4%, #7d776d 49.6% 50.3%, transparent 50.5%) 0 0 / 190px 130px,
    linear-gradient(-61deg, transparent 49.2%, #8a847a 49.5% 50.2%, transparent 50.5%) 40px 70px / 230px 170px,
    linear-gradient(97deg, transparent 49.3%, #958f85 49.6% 50.1%, transparent 50.4%) 90px 20px / 150px 260px,
    #cdc8be;
  color: #1e1c19;
  font: 16px/1.5 "Times New Roman", Times, serif;
}
.window[data-site="bin"] ::selection { background: #7a1c12; color: #fff; }
.window[data-site="bin"] a { color: #0000cc; }
.window[data-site="bin"] a:visited { color: #551a8b; }
.window[data-site="bin"] a:focus-visible { outline: 2px solid #7a1c12; outline-offset: 2px; }

.window[data-site="bin"] .ruin { display: grid; grid-template-columns: minmax(0, 1fr); padding-block-end: 1.25rem; }
.window[data-site="bin"] .ruin-error {
  margin: 0;
  padding: .3rem .75rem;
  background: #c0c0c0;
  border-block-end: 2px solid #808080;
  color: #000;
  font-size: .9375rem;
}

/* The wreck: a crumbling 410, the moved sign, broken image frames. Decorative, behind no text. */
.window[data-site="bin"] .ruin-wreck { position: relative; padding: .75rem clamp(.75rem, 3cqi, 1.75rem) 0; }
.window[data-site="bin"] .ruin-code,
.window[data-site="bin"] .ruin-gone { margin: 0; color: #2c2925; font-family: "Times New Roman", Times, serif; font-weight: bold; line-height: .85; }
.window[data-site="bin"] .ruin-code { font-size: clamp(5rem, 16cqi, 9rem); letter-spacing: -.02em; }
.window[data-site="bin"] .ruin-code span { display: inline-block; text-shadow: 3px 3px 0 #9c968b; }
.window[data-site="bin"] .ruin-code span:nth-child(1) { rotate: -4deg; }
.window[data-site="bin"] .ruin-code span:nth-child(2) { rotate: 7deg; translate: 0 .08em; color: #5d574e; }
.window[data-site="bin"] .ruin-code span:nth-child(3) { rotate: 11deg; translate: .04em .14em; clip-path: polygon(0 0, 100% 0, 100% 80%, 74% 88%, 55% 78%, 32% 94%, 0 84%); }
.window[data-site="bin"] .ruin-gone { margin-block-start: .1rem; font-size: clamp(2.2rem, 7cqi, 3.6rem); letter-spacing: .25em; color: #7a1c12; }
.window[data-site="bin"] .ruin-gone span { display: inline-block; }
.window[data-site="bin"] .ruin-gone span:first-child { translate: 0 .15em; rotate: -9deg; }
.window[data-site="bin"] .ruin-gone span:last-child { translate: .1em .55em; rotate: 32deg; }

.window[data-site="bin"] .ruin-moved {
  position: relative;
  display: grid;
  gap: .15rem;
  inline-size: min(20rem, 100%);
  margin: 1.75rem 0 1rem .5rem;
  padding: .55rem .75rem;
  background: #fffdf5;
  border: 2px solid #3a362f;
  color: #1e1c19;
  rotate: -3deg;
  transform-origin: 50% -1.5rem;
}
.window[data-site="bin"] .ruin-moved::before,
.window[data-site="bin"] .ruin-moved::after {
  position: absolute;
  inset-block-start: -1.5rem;
  block-size: 1.5rem;
  border-inline-start: 2px solid #3a362f;
  content: "";
}
.window[data-site="bin"] .ruin-moved::before { inset-inline-start: 18%; rotate: 14deg; }
.window[data-site="bin"] .ruin-moved::after { inset-inline-end: 18%; rotate: -14deg; }
.window[data-site="bin"] .ruin-moved b { color: #b00000; font: 1.3rem/1.1 "Arial Black", Impact, sans-serif; }
.window[data-site="bin"] .ruin-moved span { font-size: .9375rem; }

.window[data-site="bin"] .ruin-frames { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: .5rem 1rem; }
.window[data-site="bin"] .ruin-img {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .35rem;
  inline-size: 9rem;
  min-block-size: 4.5rem;
  padding: .3rem;
  border: 1px solid #6b665d;
  border-block-end-color: #f5f2ea;
  border-inline-end-color: #f5f2ea;
  background: #e4e0d7;
  color: #3a362f;
  font: .75rem/1.3 Arial, sans-serif;
  overflow-wrap: anywhere;
}
.window[data-site="bin"] .ruin-img:nth-child(2) { rotate: 2deg; }
.window[data-site="bin"] .ruin-img:nth-child(3) { rotate: -1.5deg; translate: 0 .4rem; }
/* The broken-image glyph: a torn page with a red square, a green triangle and a blue circle. */
.window[data-site="bin"] .ruin-img i {
  display: block;
  inline-size: 16px;
  block-size: 18px;
  border: 1px solid #555;
  background:
    radial-gradient(circle at 11px 5px, #2f5fcf 2.5px, transparent 3px),
    linear-gradient(135deg, transparent 50%, #2e8b2e 50%) 2px 9px / 7px 6px no-repeat,
    linear-gradient(#cc2222, #cc2222) 2px 2px / 5px 5px no-repeat,
    #fff;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 80% 92%, 58% 76%, 36% 96%, 14% 80%, 0 92%);
}

/* The surviving page: solid paper, torn along the top. */
.window[data-site="bin"] .ruin-page {
  min-width: 0;
  margin: 0 clamp(.5rem, 2.5cqi, 1.5rem);
  padding: 1.6rem clamp(.85rem, 3cqi, 1.6rem) 1.1rem;
  background: #fbf8f0;
  border: 1px solid #6b665d;
  box-shadow: 0 6px 14px rgb(40 36 30 / .35);
  clip-path: polygon(0 1.1rem, 7% .3rem, 15% .9rem, 24% 0, 33% .7rem, 45% .15rem, 56% .85rem, 66% .2rem, 78% .95rem, 88% .25rem, 100% .8rem, 100% 100%, 0 100%);
}
.window[data-site="bin"] .ruin-page h1 { margin: 0 0 .35rem; font: bold clamp(1.7rem, 4.5cqi, 2.4rem)/1.1 "Times New Roman", Times, serif; }
.window[data-site="bin"] .ruin-page > p { max-width: 62ch; margin: 0 0 .6rem; }
.window[data-site="bin"] .ruin-lede { font-size: 1.125rem; font-style: italic; }
.window[data-site="bin"] .bin-tools { margin-block: .75rem .5rem; padding: 0; background: none; }
.window[data-site="bin"] .bin-tools .button {
  min-height: 2.5rem;
  background: #c0c0c0;
  color: #000;
  border: 2px outset #f0f0f0;
  font: .875rem Arial, sans-serif;
}
.window[data-site="bin"] .bin-tools .button:active { border-style: inset; }

/* Explorer: the two links still standing. */
.window[data-site="bin"] .explorer {
  grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr));
  margin-block-start: .5rem;
  padding: .5rem;
  background: #efe9dc;
  border: 1px dashed #6b665d;
}
.window[data-site="bin"] .explorer a { color: #0000cc; font: .9375rem/1.35 "Times New Roman", serif; }
.window[data-site="bin"] .explorer a small { color: #4a453d; }
.window[data-site="bin"] .explorer a:is(:hover, :focus-visible) span { background: #7a1c12; color: #fff; }

/* Properties: plaques on the rubble. */
.window[data-site="bin"] .bin-sheets { margin-block-start: .75rem; }
.window[data-site="bin"] .bin-sheet { background: #e9e3d5; border: 2px ridge #8c8578; font-size: .9375rem; }
.window[data-site="bin"] .bin-sheet > summary { background: #4b463f; color: #f6f1e7; font: bold .9375rem Arial, sans-serif; }
.window[data-site="bin"] .bin-sheet dl { padding-block-start: .5rem; }
.window[data-site="bin"] .ruin-guestbook { margin-block-start: 1rem; padding-block-start: .5rem; border-block-start: 1px dashed #8c8578; font-size: .875rem; }
.window[data-site="bin"] .ruin-guestbook span { padding: 0 .25rem; background: #000; color: #7dff7d; font-family: "Courier New", monospace; letter-spacing: .1em; }
.window[data-site="bin"] .ruin-updated { color: #4a453d; font-size: .8125rem; font-style: italic; }

/* Dialogs inherit the system frame; here they get Netscape's gray. */
.window[data-site="bin"] .bin-dialog { background: #c0c0c0; border: 2px outset #f0f0f0; font-family: Arial, sans-serif; }
.window[data-site="bin"] .bin-dialog-bar { background: #4b463f; }

@container window-body (max-width: 30rem) {
  .window[data-site="bin"] .ruin-img:nth-child(n + 3) { display: none; }
  .window[data-site="bin"] .ruin-moved { margin-block: 1.5rem .5rem; }
}
@container window-body (min-width: 30rem) and (max-width: 45.99rem) {
  .window[data-site="bin"] .ruin-wreck { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.5rem; align-items: center; }
  .window[data-site="bin"] .ruin-moved { grid-column: 2; grid-row: 1 / 3; margin: 1.5rem 0 0; }
  .window[data-site="bin"] .ruin-frames { grid-column: 1 / -1; }
  .window[data-site="bin"] .ruin-img:nth-child(n + 4) { display: none; }
}
@container window-body (min-width: 46rem) {
  .window[data-site="bin"] .ruin { grid-template-columns: minmax(15rem, .75fr) minmax(0, 1.5fr); align-items: start; }
  .window[data-site="bin"] .ruin-error { grid-column: 1 / -1; }
  .window[data-site="bin"] .ruin-page { margin-block-start: 1rem; rotate: -.6deg; }
}

/* Status bar: Netscape's status line, stuck on the last thing it tried. */
.window[data-site="bin"] > .statusbar { gap: 3px; padding: 3px; background: #c0c0c0; color: #000; font: .8125rem/1.5 Arial, sans-serif; }
.window[data-site="bin"] > .statusbar span { border: 1px solid; border-color: #808080 #fff #fff #808080; }

@media (prefers-reduced-motion: no-preference) {
  .window[data-site="bin"] .ruin-moved { animation: ruin-swing 3.6s ease-in-out infinite; }
  .window[data-site="bin"] .ruin-gone span:last-child { animation: ruin-drop 5s cubic-bezier(.55, 0, 1, .45) infinite; }
}
@keyframes ruin-swing { 0%, 100% { rotate: -4deg; } 50% { rotate: 3deg; } }
@keyframes ruin-drop {
  0%, 60% { translate: .1em .55em; rotate: 32deg; opacity: 1; }
  85% { translate: .2em 1.6em; rotate: 70deg; opacity: 0; }
  86% { translate: .1em .55em; rotate: 32deg; opacity: 0; }
  100% { opacity: 1; }
}
