/* 10-footer: how to reach us, and nothing else. DESIGN FOR RY AND DAN, NOT LIVE (Ry, 10 Nov 2026: "simple and
   clean"). Black; the mark and type only. Wide screens: two rows. The mark on the left, the phone and email on the
   right (the number largest, in the serif); under one rule, the five programs on the left and the small print on the
   right. Phones: one centred stack, the mark first, about half a screen. Every class starts ft-. */
.ft { position: relative; padding-block: clamp(64px, calc(7vw / var(--vz, 1)), 96px) var(--s-2); }
.ft-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "logo" "reach" "dates" "low";
  justify-items: center;
  text-align: center;
}
.ft-in > * { min-width: 0; max-width: 100%; }

/* The mark: Dave's stacked logo, white: the header's own sharp trace (dfga_logo_stacked_white.svg, a vector) at the
   header's own sizes, --lh from base.css, so the ink is exactly 64 px tall on phones and 96 px from 768. */
.ft-logo { grid-area: logo; width: calc(var(--lh) * 1.45px); height: calc(var(--lh) * 1px); }

/* How to reach us: the number, then the email, both in the serif */
.ft-reach { grid-area: reach; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; margin-top: var(--s-3); }
.ft-link { display: inline-flex; align-items: center; max-width: 100%; min-height: 48px; color: var(--ink); }
.ft-link:active { opacity: 0.6; }
@media (hover: hover) {
  .ft-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
}
.ft-phone, .ft-email { font-family: var(--f-head); font-weight: var(--w-head); letter-spacing: -0.005em; }
.ft-phone { font-size: clamp(32px, calc(3vw / var(--vz, 1)), 40px); line-height: 1.1; font-variant-numeric: lining-nums; }
.ft-email { font-size: clamp(22px, calc(2vw / var(--vz, 1)), 26px); line-height: 1.2; overflow-wrap: anywhere; }

/* Dave's accounts: three white marks under the email, each a 48 px round press. Centred on phones; on wide screens
   the row ends on the email's right edge (the last mark's ink, not its press, on the line). */
.ft-social { display: flex; justify-content: center; gap: var(--s-1); margin: var(--s-1) 0 0; padding: 0; list-style: none; }
.ft-soc { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); }
.ft-soc svg { display: block; width: 24px; height: 24px; }
.ft-soc:active { opacity: 0.6; }
@media (hover: hover) { .ft-soc:hover { opacity: 0.7; } }

/* Under one rule: the five programs, then the small print */
.ft-low {
  grid-area: low;
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* long text never widens the footer: every part may shrink, names end in dots */
  justify-items: center;
  width: 100%;
  margin-top: var(--s-4);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
}
.ft-menu ul { display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--s-3); }
.ft-low > *, .ft-end > *, .ft-fine > *, .ft-menu ul, .ft-menu li, .ft-map { min-width: 0; max-width: 100%; }
.ft-menu .ft-link { display: block; line-height: 1.55; padding-block: calc((48px - 1.55em) / 2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;   /* one line: a long name ends in dots */
  font-size: var(--fs-label); font-weight: 500; max-width: calc(100% + 8px); padding-inline: 4px; margin-inline: -4px; }   /* a short word (Gifts, 38 px) still gets a 44 px tap area; the margin gives the 8 px back, so nothing moves */
.ft-end { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; margin-top: var(--s-1); color: var(--text); }
/* The small print's own links: the company, then refunds and privacy on one line */
.ft-fine { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: var(--s-3); }
.ft-fine .ft-legal { flex: 1 0 100%; }
.ft-fine-a { display: block; min-width: 0; min-height: 48px; line-height: 1.45; padding-block: calc((48px - 1.45em) / 2); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line: a long name ends in dots */
.ft-fine-a:active { opacity: 0.6; }
@media (hover: hover) {
  .ft-fine-a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
}
.ft-legal { padding-block: 6px; overflow-wrap: anywhere; }
.ft-dot { display: none; }

/* "Camp dates first": the title and one plain email link. Hidden until camps go live (<html class="camps-live">),
   so the page never asks twice. No stand-in box: nothing here keeps an email until a real list does (C6). */
.ft-dates { grid-area: dates; display: none; }
html.camps-live .ft-dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-1) var(--s-5);
  justify-items: center;
  width: 100%;
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.ft-dates-title { font-family: var(--f-head); font-size: clamp(34px, calc(3.4vw / var(--vz, 1)), 48px); line-height: 1.05; letter-spacing: var(--title-track); color: var(--ink); }
.ft-dates-ask { min-height: 48px; display: inline-flex; align-items: center; }

/* The map's credit: one quiet line of the small print, only on a page that has the map (the home page). It left
   the map on Ry's word (8:02 AM Wed 11 Nov 2026); the licences ask for it on the page (media/ground/README.md).
   Pressing it opens their own words on a small sheet just above it; a press elsewhere or Escape puts it away
   (js/sections/10-footer.js). has-map is said once by js/base.js on the page with the map. Without JavaScript the line
   shows on every page: more credit, never less. */
html.js:not(.has-map) .ft-map-w { display: none; }
.ft-map { position: relative; }
.ft-map-s { display: block; line-height: 48px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ft-map-s::-webkit-details-marker { display: none; }
.ft-map-s:active { opacity: 0.6; }
.ft-map[open] .ft-map-s { color: var(--ink); }
@media (hover: hover) {
  .ft-map-s:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
}
.ft-map-sheet {
  position: absolute;
  z-index: 2;
  bottom: 100%;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(352px, calc(calc(100vw / var(--vz, 1)) - 32px));
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #17191e;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.6);
  line-height: 1.4;
  text-align: left;
  transform: translateX(-50%);
}
.ft-map-a { display: flex; align-items: center; min-width: 0; min-height: 48px; padding: 6px 8px; color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.ft-map-a + .ft-map-a { border-top: 1px solid var(--line); }
.ft-map-a:focus-visible { outline-offset: -2px; }
.ft-map-a:active { color: var(--ink); }
@media (hover: hover) { .ft-map-a:hover { color: var(--ink); text-decoration-color: currentColor; } }

/* Who made the site: the last, quiet words of the small print. The maker's name is the bright part, and the whole
   phrase is the link (a finger sized target on phones). It opens Koko Labs in a new tab. */
.ft-by { display: inline-flex; align-items: center; gap: 0.3em; min-width: 0; max-width: 100%; overflow: hidden; min-height: 48px; color: var(--text); white-space: nowrap; }
.ft-by-name { min-width: 0; padding-block: 6px; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--ink); }   /* the padding keeps the underline inside the clip */
.ft-by:active { opacity: 0.6; }
@media (hover: hover) {
  .ft-by:hover .ft-by-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
}

/* Wide: the mark left, how to reach us right; under the rule, the programs left and the small print right */
@media (min-width: 768px) {
  .ft-in {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "logo reach" "dates dates" "low low";
    align-items: center;
    justify-items: stretch;
    column-gap: var(--s-5);
    text-align: left;
  }
  .ft-logo { justify-self: start; margin-left: calc(var(--lh) * -0.003889px); }   /* as the header's: the ink, not the box, starts on the edge line */
  .ft-reach { justify-items: end; margin-top: 0; text-align: right; }
  .ft-social { justify-content: flex-end; margin-right: -12px; }
  html.camps-live .ft-dates { grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start; margin-top: var(--s-5); padding-top: var(--s-5); }
  .ft-low {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 var(--s-4);
    margin-top: var(--s-5);
    padding-top: var(--s-1);
  }
  .ft-menu ul { justify-content: flex-start; column-gap: var(--s-4); }
  /* one line of links when it fits (the programs left, the rest right); the small print has the line under it:
     the company, refunds and privacy on the left, the credits on the right */
  .ft-end { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin-top: 0; }   /* the maker's credit ends on the right line */
  .ft-fine { flex-wrap: nowrap; justify-content: flex-start; column-gap: 0; margin-right: auto; }
  .ft-fine .ft-legal { flex: 0 1 auto; }
  .ft-fine-a { padding-left: 8px; }
  .ft-legal { padding-block: 0; }
  .ft-dot { display: inline; padding-left: 8px; }
  .ft-by { padding-left: 8px; }
  .ft-map-w { display: flex; align-items: center; }
  .ft-map-s { padding-left: 8px; }
  .ft-map-sheet { left: auto; right: 0; transform: none; }   /* its right edge on the line's right edge */
}

/* ---------- The first arrival ---------- (Ry, 4:40 PM Wed 11 Nov 2026: "And the footer, at the same time, you can
   do."; Dan, 3:40 PM the same day: words stay sharp, no blur in anything that moves as the page scrolls). Once, as
   the footer comes into view (js/sections/10-footer.js, part 5): the mark rises and settles, the number and then the
   email rise out of their lines, the rule draws across (from the left on wide screens, from the middle on phones),
   the five programs come up one by one, then the rest of the site, then the small print. Pieces that come into view
   together play in reading order, a beat apart. Still for calm visitors; a press or a key in here ends it at once. */
.ft { --ft-ease: cubic-bezier(0.16, 1, 0.3, 1); }
.ft-low { position: relative; }
.ft-menu li:nth-child(2) { --ft-n: 1; }
.ft-menu li:nth-child(3) { --ft-n: 2; }
.ft-menu li:nth-child(4) { --ft-n: 3; }
.ft-menu li:nth-child(5) { --ft-n: 4; }
.ft-menu li:nth-child(6) { --ft-n: 5; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.calm):not([data-calm]) .ft.is-dancing :is(.ft-logo, .ft-phone, .ft-email, .ft-social, .ft-menu, .ft-end):not(.is-playing):not(.is-played) { opacity: 0; }
  html:not(.calm):not([data-calm]) .ft.is-dancing .ft-low:not(.is-played) { border-top-color: transparent; }
  html:not(.calm):not([data-calm]) .ft.is-dancing .ft-logo.is-playing { animation: ft-logo 1.1s var(--ft-ease) var(--ft-w, 0ms) backwards; }
  html:not(.calm):not([data-calm]) .ft.is-dancing :is(.ft-phone, .ft-email).is-playing { animation: ft-slot calc(var(--ft-w, 0ms) + 1100ms) linear; }
  html:not(.calm):not([data-calm]) .ft.is-dancing :is(.ft-phone, .ft-email).is-playing > span { animation: ft-up 1s var(--ft-ease) var(--ft-w, 0ms) backwards; }
  html:not(.calm):not([data-calm]) .ft.is-dancing .ft-low.is-playing::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
    transform-origin: 50% 0;
    animation: ft-rule 1.1s var(--ft-ease) var(--ft-w, 0ms) backwards;
  }
  html:not(.calm):not([data-calm]) .ft.is-dancing .ft-menu.is-playing li { animation: ft-rise 800ms var(--ft-ease) calc(var(--ft-w, 0ms) + var(--ft-n, 0) * 55ms) backwards; }
  html:not(.calm):not([data-calm]) .ft.is-dancing :is(.ft-social, .ft-end).is-playing { animation: ft-rise 900ms var(--ft-ease) var(--ft-w, 0ms) backwards; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  html:not(.calm):not([data-calm]) .ft.is-dancing .ft-low.is-playing::before { transform-origin: 0 0; }
}
@keyframes ft-logo { from { opacity: 0; transform: translate3d(0, 20px, 0) scale(0.94); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes ft-slot { from, to { clip-path: inset(0 -0.4em); } }
@keyframes ft-up { from { opacity: 0; transform: translate3d(0, 0.9em, 0); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes ft-rule { from { transform: scaleX(0); } }
@keyframes ft-rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } }   /* never blurred (Dan, 11 Nov) */
