/* The site footer and the three stripes above it, one copy for every page.
   The markup is index.html's <footer>; every page carries it unchanged
   (tests/footer.spec.js compares them). Load this after the page's other
   stylesheets.

   The footer looks the same on every page, whatever the page's theme: the
   tokens it reads are pinned here to the site's values (index.html :root),
   so a page's dark palette (Labs, the library) never recolours it. */
.foot-stripes, footer {
  --brand: #3a2d6b; --brand-lift: #4a3a86; --brand-deep: #241b45; --soft: #d9d2f5;
}
.foot-stripes { margin: 0; }
.foot-stripes .stripe { height: 15px; border-radius: 16px 16px 0 0; animation: none; transform: none; }
.foot-stripes .s1 { background: var(--soft); margin: 0 34px; }
.foot-stripes .s2 { background: #b9adee; margin: 0 17px; }
.foot-stripes .s3 { background: var(--brand-lift); margin: 0; }

footer {
  background: var(--brand-deep); color: rgba(255,255,255,.75); position: relative; overflow: hidden;
  margin: 0; padding: 0 0 env(safe-area-inset-bottom, 0px); border: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.55;
  font-feature-settings: normal; text-align: left;
}
footer::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; }
/* Top padding only: the sides are the page's .wrap gutter. */
footer .foot-in { position: relative; padding-top: 62px; padding-bottom: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 34px; }
footer h4 { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 0 0 16px; font-weight: 400; }
footer nav { display: block; }
footer nav a { display: block; padding: 5px 0; font-size: 14.5px; color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s; }
footer nav a:hover { color: #fff; }
/* Touch widths: every footer link is a 44px tap target. */
@media (max-width: 1024px), (pointer: coarse) { footer nav a { display: flex; align-items: center; min-height: 44px; padding: 0; } }
.foot-quote { font-family: "EB Garamond", Georgia, serif; font-weight: 400; font-size: 24px; color: #fff; margin: 22px 0 4px; }
.foot-quote + span { font-family: "EB Garamond", serif; font-style: italic; color: rgba(255,255,255,.55); font-size: 16px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; color: #fff; }
.foot-brand .mark { width: 27px; height: 27px; border-radius: 50%; display: block; overflow: hidden; background: var(--brand); flex: none; }
.foot-brand .mark img { width: 100%; height: 100%; object-fit: cover; }
footer .word {
  font-family: "EB Garamond", Georgia, serif; font-weight: 400; font-size: clamp(70px, 15vw, 210px); line-height: .84;
  letter-spacing: -.03em; margin: 46px 0 0; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.02));
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
.foot-fine { position: relative; display: flex; justify-content: space-between; gap: 16px;
  padding: 22px 0 26px; font-size: 13px; color: rgba(255,255,255,.5); }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  footer .word { font-size: 14.5vw; }
  .foot-fine { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { footer nav a { transition: none; } }
