/* Shared DebSoc footer: retro desktop windows on a red halftone.
   Selectors are deliberately strong because several page themes restyle footers globally. */
@font-face {
  font-family: "DebSoc Pixel";
  src: url("../../fonts/press-start-2p-v16-latin-regular.woff2") format("woff2");
  font-display: swap;
}

html body footer.df-footer.df-footer {
  --df-red: #c4231a;
  --df-coral: #ff3d5a;
  --df-yellow: #ffdf5e;
  --df-cream: #f1efe8;
  --df-muted: #bdbab2;
  --df-pixel: "DebSoc Pixel", "Courier New", monospace;
  --df-mono: "Courier New", Courier, monospace;
  display: block;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  overflow: hidden;
  color: var(--df-cream);
  background: #000 radial-gradient(rgba(196, 35, 26, .55) 1px, transparent 1px) 0 0 / 10px 10px !important;
  border: 0 !important;
  font-family: var(--df-mono);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}
html body.gallery-page footer.df-footer.df-footer { margin-top: 0; }
.df-footer, .df-footer * { box-sizing: border-box; letter-spacing: normal; text-transform: none; }
.df-wrap { width: min(1000px, calc(100% - 48px)); margin: 0 auto; }

.df-barcode {
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--df-coral) 0 3px, transparent 3px 5px, var(--df-coral) 5px 7px, transparent 7px 11px, var(--df-coral) 11px 19px, transparent 19px 22px);
}

/* Layout: crest window on the left, pitch + three windows on the right.
   Both columns share one top and bottom edge, and the right edge is padded so shadows stay inside the container. */
.df-main {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  grid-template-areas: "art pitch" "art windows";
  gap: 14px 22px;
  padding: 26px 6px 22px 0;
}

/* Windows */
.df-window { min-width: 0; margin: 0; background: #000; border: 2px solid var(--df-cream); box-shadow: 4px 4px 0 var(--df-red); }
.df-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 20px; padding: 0 6px; color: #fff; background: var(--df-red); border-bottom: 2px solid var(--df-cream); font: 7px/1 var(--df-pixel); }
.df-controls { display: inline-flex; gap: 3px; }
.df-controls i { display: block; width: 7px; height: 7px; background: var(--df-cream); border: 1px solid #000; }
.df-body { padding: 10px 12px; }

.df-art { grid-area: art; display: flex; flex-direction: column; align-self: stretch; }
.df-art img { display: block; flex: 1; width: 100%; min-height: 0; object-fit: cover; object-position: 30% 40%; }

/* Pitch */
.df-pitch { grid-area: pitch; display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.df-headline { color: #fff; font: clamp(12px, 1.5vw, 17px)/1.4 var(--df-pixel); text-shadow: 2px 2px 0 var(--df-red); }
.df-headline span { color: var(--df-yellow); }
.df-blurb { margin-top: 6px; color: var(--df-cream); font-size: 12px; }
html body .df-footer a.df-cta { display: inline-block; flex: none; padding: 9px 11px; color: #000 !important; background: var(--df-yellow); border: 2px solid var(--df-cream); box-shadow: 3px 3px 0 var(--df-red); font: 8px/1.2 var(--df-pixel); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
html body .df-footer a.df-cta:hover, html body .df-footer a.df-cta:focus-visible { color: #000 !important; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--df-red); }

/* Link windows: equal height, same baseline */
.df-windows { grid-area: windows; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.df-windows .df-window { display: flex; flex-direction: column; }
.df-windows .df-body { flex: 1; }
.df-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; justify-items: start; align-content: start; }
html body .df-footer .df-links a, html body .df-footer a.df-mail, html body .df-footer a.df-signin { padding: 1px 3px; margin-left: -3px; color: var(--df-cream) !important; font-weight: 700; text-decoration: none; }
html body .df-footer .df-links a:hover, html body .df-footer .df-links a:focus-visible,
html body .df-footer a.df-mail:hover, html body .df-footer a.df-mail:focus-visible,
html body .df-footer a.df-signin:hover, html body .df-footer a.df-signin:focus-visible { color: #000 !important; background: var(--df-yellow); }
.df-address { color: var(--df-muted); font-size: 11px; font-style: normal; }
html body .df-footer a.df-mail { display: inline-block; margin-top: 3px; font-size: 11px; overflow-wrap: anywhere; }
.df-socials { display: flex; gap: 6px; margin-top: 8px; }
html body .df-footer a.df-social { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: var(--df-cream) !important; border: 2px solid var(--df-cream); }
html body .df-footer a.df-social:hover, html body .df-footer a.df-social:focus-visible { color: #000 !important; background: var(--df-yellow); }
.df-social svg { display: block; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.df-bottom { display: flex; justify-content: space-between; gap: 4px 20px; flex-wrap: wrap; padding: 10px 0 14px; color: var(--df-muted); border-top: 2px solid var(--df-red); font-size: 11px; }
html body .df-footer a.df-signin { font-size: 11px; margin-left: 0; padding-right: 0; }
.df-footer a:focus-visible { outline: 2px solid var(--df-yellow); outline-offset: 2px; }

@media (max-width: 820px) {
  .df-main { grid-template-columns: 100px minmax(0, 1fr); grid-template-areas: "art pitch" "windows windows"; }
  .df-art { align-self: start; }
}
@media (max-width: 560px) {
  .df-wrap { width: calc(100% - 32px); }
  .df-windows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .df-find { grid-column: 1 / -1; }
  .df-links { grid-template-columns: minmax(0, 1fr); }
  .df-headline span { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html body .df-footer a.df-cta { transition: none; }
}
