/* Site footer ("That's a wrap"), shared by the home page and every content page. Markup: footer_html() in tools/build_site.py */
.site-footer { position: relative; overflow: hidden; padding-top: 56px; font-family: var(--body, "Baloo 2", system-ui, sans-serif); }
.site-footer a { color: #D9D3EC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Credits ticker: a tilted strip of tape across the top edge, scrolling slowly */
.sf-ticker { position: relative; z-index: 2; margin: 0 -60px -34px; transform: rotate(-2deg); background: #D33A18; border-block: 4px solid var(--ink, #2A2340); padding: 14px 0 10px; white-space: nowrap; overflow: hidden; font-family: var(--display, "Lilita One", sans-serif); font-size: 26px; letter-spacing: .02em; color: #FFF4C7; }
.sf-ticker span { display: inline-block; animation: sf-roll 80s linear infinite; }
@keyframes sf-roll { to { transform: translateX(-50%); } }

.sf-body { position: relative; background: var(--ink, #2A2340); color: #D9D3EC; padding: 110px 5vw 0; font-size: 15px; }
.sf-body > * { max-width: 1240px; margin-left: auto; margin-right: auto; }

.sf-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.sf-title { font-family: var(--display, "Lilita One", sans-serif); font-weight: 400; font-size: clamp(56px, 6.4vw, 92px); line-height: .95; color: #fff; }
.sf-title span { color: #FFC93D; }
.sf-lead { margin: 22px 0 32px; max-width: 520px; font-size: 20px; line-height: 1.55; font-weight: 500; }
.sf-rounds { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer .sf-round { display: inline-flex; flex-direction: column; border-radius: 20px; padding: 14px 26px 12px; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.sf-round b { font-family: var(--display, "Lilita One", sans-serif); font-weight: 400; font-size: 24px; }
.sf-round small { font-weight: 700; font-size: 15px; }
.site-footer .sf-quick { background: #FFF4C7; color: var(--ink, #2A2340); box-shadow: 0 7px 0 #C9A53A; }
.site-footer .sf-full { background: #D33A18; color: #fff; box-shadow: 0 7px 0 #A12A0F; }
.sf-full small { color: #FFE1D1; }
.site-footer .sf-round:hover { transform: translateY(-2px); text-decoration: none; }
.site-footer .sf-quick:hover { color: var(--ink, #2A2340); }
.site-footer .sf-full:hover { color: #fff; }
.site-footer .sf-quick:active { transform: translateY(5px); box-shadow: 0 2px 0 #C9A53A; }
.site-footer .sf-full:active { transform: translateY(5px); box-shadow: 0 2px 0 #A12A0F; }

/* Little TV with a behind-the-scenes fact */
.sf-tv { position: relative; justify-self: end; width: min(470px, 100%); padding-top: 34px; }
.sf-ant { position: absolute; top: 0; left: 32%; width: 4px; height: 40px; border-radius: 2px; background: #8A82A0; transform: rotate(-30deg); }
.sf-ant2 { left: 47%; transform: rotate(30deg); }
.sf-set { display: flex; gap: 16px; background: #D33A18; border-radius: 34px; padding: 18px; box-shadow: 0 10px 0 #A12A0F; }
.sf-screen { flex: 1; background: #FFF4C7; border-radius: 22px; padding: 22px 24px; color: var(--ink, #2A2340); }
.sf-tag { font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #A12A0F; margin-bottom: 8px; }
.sf-fact { font-size: 19px; line-height: 1.45; font-weight: 700; }
.sf-fact[hidden] { display: none; }
.site-footer .sf-more { display: inline-block; margin-top: 12px; color: #C2300F; font-weight: 800; font-size: 16px; }
.site-footer .sf-more:hover { color: #A12A0F; }
.sf-knobs { flex: none; width: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 10px; }
.sf-knobs i { width: 26px; height: 26px; border-radius: 50%; background: #FFF4C7; }
.sf-knobs i + i { background: #FFC93D; }

/* Links */
.sf-cols { margin-top: 90px; display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 50px; padding-top: 44px; border-top: 2px solid rgba(255,255,255,.12); }
.sf-cols h2 { font-family: var(--display, "Lilita One", sans-serif); font-weight: 400; font-size: 22px; color: #fff; margin-bottom: 16px; }
.sf-cols ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 17px; font-weight: 600; }
.sf-cols .sf-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .sf-pill { display: inline-block; font-weight: 800; font-size: 16px; padding: 7px 15px 5px; border-radius: 999px; background: var(--pastel); color: var(--ink, #2A2340); border: 2.5px solid var(--deep); transition: transform .12s; }
.site-footer .sf-pill:hover { color: var(--ink, #2A2340); text-decoration: none; transform: translateY(-2px); }
.site-footer .cookie-settings { font: inherit; color: #D9D3EC; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.site-footer .cookie-settings:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .legal { margin-top: 50px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; font-weight: 600; color: #9C95B4; }

/* Giant outlined wordmark, cut off by the bottom edge, with props floating over it */
/* the word is about 6.1 x its font size wide, so 15vw keeps it inside the screen and 200px inside the 1240px column */
.sf-mark { position: relative; height: min(160px, 12vw); margin-top: 30px; }
.sf-mark span { position: absolute; left: 50%; top: 0; transform: translateX(-50%); white-space: nowrap; font-family: var(--display, "Lilita One", sans-serif); font-size: min(200px, 15vw); line-height: .85; color: transparent; -webkit-text-stroke: 3px #5B5470; }
.sf-mark img { position: absolute; height: auto; animation: sf-float 7s ease-in-out infinite; }
.sf-mark .p1 { width: 10%; left: 4%; top: 4%; --r: -12deg; animation-delay: -4s; }
.sf-mark .p2 { width: 5.5%; left: 48%; top: 18%; --r: -10deg; animation-duration: 5.5s; }
.sf-mark .p3 { width: 10%; right: 4%; top: 0; --r: 8deg; animation-delay: -2s; }
/* same gentle bob as the hero props (index.html `float`); footer.css is shared, so it keeps its own copy */
@keyframes sf-float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-10px) rotate(calc(var(--r) + 6deg)); } }

@media (max-width: 900px) {
  .sf-top { grid-template-columns: 1fr; gap: 50px; }
  .sf-tv { justify-self: start; }
  .sf-cols { grid-template-columns: 1fr 1fr; }
  .sf-cols nav:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer { padding-top: 40px; }
  .sf-ticker { font-size: 18px; margin-bottom: -24px; padding: 10px 0 7px; border-width: 3px; }
  .sf-body { padding: 80px 20px 0; }
  .sf-lead { font-size: 18px; margin: 16px 0 24px; }
  .sf-rounds { flex-direction: column; }
  .sf-set { border-radius: 28px; padding: 14px; gap: 12px; }
  .sf-screen { padding: 18px; }
  .sf-fact { font-size: 17px; }
  .sf-knobs { width: 28px; }
  .sf-knobs i { width: 20px; height: 20px; }
  .sf-cols { margin-top: 60px; gap: 28px 36px; }
  /* bigger tap targets for fingers */
  .sf-cols ul { gap: 0; }
  .sf-cols ul a, .site-footer .cookie-settings { display: inline-block; padding: 10px 0; }
  .sf-cols .sf-pills { gap: 10px; }
  .site-footer .sf-pill { padding: 10px 16px 8px; }
  .site-footer .legal { flex-direction: column; margin-top: 40px; }
  .sf-mark span { -webkit-text-stroke-width: 2px; }
}
@media (prefers-reduced-motion: reduce) { .sf-ticker span, .sf-mark img { animation: none; } }
