:root {
  --ribbon-back: #d9c2ff;
  --ribbon-middle: #a76cff;
  --ribbon-end: #6f00ff;
  --grain-opacity: .12;
  background-color: var(--page);
}
:root[data-theme="dark"] {
  --ribbon-back: #362e42;
  --ribbon-middle: #4c3b63;
  --ribbon-end: #64478a;
  --grain-opacity: .065;
}
:root[data-ribbon-edge="end"] { background-color: var(--ribbon-end); }
:root[data-ribbon-fit] { background-image: linear-gradient(var(--page) 50%, var(--ribbon-end) 50%); background-repeat: no-repeat; }
:root body { background-color: var(--page); }

:root .site-footer {
  --foot-measure: 812px;
  --foot-side: 40px;
  --foot-gap: 36px;
  --reading: #514e55;
  display: flex; flex-direction: column;
  width: 100%; max-width: none; margin: 80px 0 0; padding: var(--foot-gap) 0 0;
  border: 0; border-radius: 0; color: var(--ink); background: var(--page);
}
:root[data-theme="dark"] .site-footer { --reading: #c5c1ca; }
.reading-shell .site-footer { --foot-side: 20px; --foot-measure: 34.6875rem; }
:root .site-footer :is(.footer-main, .footer-bottom) {
  width: calc(100% - var(--foot-side) - var(--foot-side)); max-width: var(--foot-measure); margin-inline: auto;
}
:root .site-footer .footer-main {
  display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: nowrap; gap: 0; padding: 0;
}
.site-footer .footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; flex: none; min-width: 0; }
:root .site-footer .footer-dock {
  position: static; display: inline-flex; width: 88px; height: auto; min-height: 24px;
  align-items: center; justify-content: flex-start; gap: 6px; margin: 0 0 12px; padding: 0;
  color: var(--link); background: none; border-radius: 3px; transform: none;
}
.footer-brand-symbol { display: block; width: 20px; height: 19px; }
.footer-brand-name { display: block; width: 62px; height: 17px; }
:root .site-footer .footer-brand p { margin: 0 0 13px; color: var(--reading); font-size: var(--ui-size); line-height: 1.45; }
.footer-download-split {
  display: inline-flex; position: relative; align-items: stretch; width: max-content; max-width: 100%;
  padding: 0; gap: 0; height: auto; border-radius: 99px;
}
.footer-download-split:has(details[open]) { z-index: 3; }
:root .site-footer .footer-download-split .footer-download, .footer-builds > summary {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; height: auto;
  margin: 0; padding: 0 6px 0 12px; border: 0; border-radius: 99px;
  font: inherit; letter-spacing: inherit; color: inherit; background: transparent; box-shadow: none;
}
.site-footer .button.secondary.footer-download-split {
  background: var(--float, var(--page)); border-color: var(--hairline); box-shadow: none;
}
.footer-builds { position: static; flex: 0 0 32px; width: 32px; }
.footer-builds > summary { display: flex; padding: 0; width: 32px; justify-content: center; cursor: pointer; list-style: none; }
.footer-builds > summary::-webkit-details-marker { display: none; }
.footer-builds > summary span {
  width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.footer-builds[open] > summary span { transform: translateY(2px) rotate(225deg); }
:root .site-footer .footer-download-split .mobile-download .footer-download { padding: 0 12px; }
.site-footer details[data-open-up] > :is(.mobile-download-list, .footer-build-list) {
  top: auto; bottom: calc(100% + 8px);
}
.footer-nav-group { flex: 1; min-width: 0; }
.footer-links { display: flex; align-items: flex-start; justify-content: space-between; }
.footer-links::before { content: ''; }
.site-footer .footer-column { flex: none; }
:root .site-footer .footer-column h3 { margin: 2px 0 12px; color: var(--ink); }
:root .site-footer .footer-column > a { margin: 6px 0 0; color: var(--reading); }
:root .site-footer .footer-bottom {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: var(--foot-gap); padding: 0; border: 0;
}
.site-footer :is(.credit-slot,.footer-copyright) { color: var(--reading); font-size: var(--caption-size); line-height: 1.45; }
:root .site-footer .credit-slot { display: block; min-width: 0; padding: 0; }
.site-footer .footer-copyright { flex: none; white-space: nowrap; }
.founder-credit {
  display: block; position: relative; min-height: 44px; padding: calc((44px - 1.45em)/2) 0 calc((44px - 1.45em)/2) 92px;
  vertical-align: baseline;
}
.site-footer .founder-caption { display: inline; margin: 0; color: inherit; font: inherit; }
.site-footer .founder-stack { position: absolute; inset-inline-start: 0; top: 50%; margin-top: -22px; display: block; width: 84px; height: 44px; isolation: isolate; }
.founder-stack a {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 44px; border-radius: 50%;
}
.founder-stack a:nth-child(2) { left: 24px; }
.founder-stack a:nth-child(3) { left: 48px; }
.founder-stack a:first-child { z-index: 2; }
.founder-stack a:nth-child(2) { z-index: 1; }
.founder-stack img, .founder-badge {
  position: absolute; top: 4px; left: 0; display: block; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--page); object-fit: cover;
}
.founder-badge { display: inline-flex; align-items: center; justify-content: center; background: #0155f8; }
.founder-badge svg { width: 15px; height: 19px; }
/* The stack stays fixed so the link under the pointer cannot move away. */
.founder-stack a:focus-visible { z-index: 3; }
.foot-tide { display: block; flex: none; width: 100%; height: clamp(38px, 5vw, 72px); margin-top: var(--foot-gap); }
#tide-back { fill: var(--ribbon-back); }
#tide-middle { fill: var(--ribbon-middle); }
#tide-front { fill: var(--ribbon-end); }
.tide-grain { opacity: var(--grain-opacity); }
.site-footer::after { content: ''; display: block; flex: none; height: 2px; background: var(--ribbon-end); }

@media (max-width: 760px) {
  :root .site-footer { --foot-side: 20px; --foot-gap: 28px; margin-top: 52px; }
}
@media (min-width: 601px) {
  .reading-shell .site-footer { --foot-side: 1.25rem; --foot-measure: var(--reading-column); }
}
@media (max-width: 600px) {
  :root .site-footer .footer-main { display: flex; flex-direction: column; gap: var(--foot-gap); }
  .footer-nav-group { align-self: stretch; }
  .footer-links::before { display: none; }
}
@media (max-width: 600px) {
  .site-footer .footer-links { flex-wrap: wrap; gap: 1.25rem; }
}
