/* Onwards · site-footer.css — the site footer, self-contained so it looks the same on any page (generated pages
   and the hand-made home page). Every rule is scoped to footer.sf and sets what it needs, so a host page's own
   element styles (footer, a, h2, ul…) cannot leak in. Light only. The mark is the flat Fair wind file. */

footer.sf {
  --sf-ink: #0C0B12; --sf-ink2: rgba(12, 11, 18, .66); --sf-ink3: rgba(12, 11, 18, .46); --sf-line: rgba(12, 11, 18, .09);
  --sf-bg: #F5F4F8; --sf-pad: clamp(18px, 5vw, 64px);
  position: relative; z-index: 2; display: block; overflow: hidden; margin: clamp(64px, 12vh, 128px) 0 0; padding: 0;
  background: var(--sf-bg); border-top: 1px solid var(--sf-line); color: var(--sf-ink2);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5;
  text-align: left; flex-direction: column; align-items: stretch; gap: 0;
}
footer.sf *, footer.sf *::before, footer.sf *::after { box-sizing: border-box; }
footer.sf .sf-in { max-width: calc(1180px + 2 * var(--sf-pad)); margin: 0 auto; padding: 56px var(--sf-pad) 0; }
footer.sf a { color: inherit; text-decoration: none; }
footer.sf a:focus-visible, footer.sf summary:focus-visible { outline: 2px solid #E0532F; outline-offset: 3px; border-radius: 6px; }
footer.sf h2, footer.sf h3, footer.sf p, footer.sf ul, footer.sf li { margin: 0; padding: 0; }
footer.sf ul { list-style: none; display: grid; gap: 7px; }
footer.sf li a { display: inline-block; font-size: 13.5px; line-height: 1.4; font-weight: 400; color: var(--sf-ink2); transition: color .2s; }
footer.sf li a:hover { color: var(--sf-ink); }

/* The brand row */
footer.sf .sf-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-bottom: 40px; border-bottom: 1px solid var(--sf-line); }
footer.sf .sf-brand { display: inline-flex; align-items: baseline; gap: 8px; font-size: 19px; font-weight: 600; letter-spacing: -.03em; color: var(--sf-ink); }
footer.sf .sf-mk { display: inline-block; flex: none; width: 26px; height: 24px; background: url("/assets/mark.svg") center / contain no-repeat; }
footer.sf .sf-tag { flex: 1 1 300px; font-size: 17px; line-height: 1.35; font-weight: 500; letter-spacing: -.02em; color: var(--sf-ink); }
footer.sf .sf-tag span { color: #8E8A9B; }
footer.sf .sf-btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; border-radius: 999px; background: #0C0B12; color: #fff; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(30, 18, 10, .45); transition: box-shadow .3s; }
footer.sf .sf-btn:hover { color: #fff; box-shadow: 0 0 0 5px rgba(255, 122, 89, .16), 0 10px 24px -12px rgba(30, 18, 10, .45); }

/* Groups: on wide screens every group is open and its heading is a label */
footer.sf .sf-acc { min-width: 0; }
footer.sf .sf-acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; cursor: default; }
footer.sf .sf-acc > summary::-webkit-details-marker { display: none; }
footer.sf .sf-acc > summary > i { display: none; }
footer.sf h2 { font: 500 11px/1.3 "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--sf-ink3); }
footer.sf h3 { margin: 0 0 9px; font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--sf-ink); }
footer.sf .sf-all { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--sf-ink); text-decoration: underline; text-decoration-color: rgba(255, 122, 89, .55); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
footer.sf .sf-all:hover { text-decoration-color: #FF7A59; }

footer.sf .sf-tools { padding: 40px 0 36px; border-bottom: 1px solid var(--sf-line); }
footer.sf .sf-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 8px 24px; }
footer.sf .sf-g { padding-bottom: 20px; }
footer.sf .sf-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 28px; padding: 40px 0 44px; }
footer.sf .sf-stack { display: grid; gap: 32px; align-content: start; }

/* The base line and the wordmark */
footer.sf .sf-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 18px 0; border-top: 1px solid var(--sf-line); font-size: 13px; color: var(--sf-ink3); }
footer.sf .sf-word { margin: 4px 0 0 -.04em; font-size: clamp(88px, 21vw, 300px); font-weight: 600; letter-spacing: -.075em; line-height: .76; color: rgba(12, 11, 18, .055); white-space: nowrap; user-select: none; pointer-events: none; }

@media (max-width: 900px) {
  footer.sf .sf-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Phones: one column of accordions */
@media (max-width: 720px) {
  footer.sf .sf-in { padding-top: 40px; }
  footer.sf .sf-top { padding-bottom: 28px; }
  footer.sf .sf-tag { flex-basis: 100%; }
  footer.sf .sf-tools { padding: 0; border-bottom: 0; }
  footer.sf .sf-cols { display: block; padding: 0 0 8px; }
  footer.sf .sf-bot { border-top: 0; padding-top: 14px; }
  footer.sf .sf-stack { display: block; }
  footer.sf .sf-acc { border-bottom: 1px solid var(--sf-line); }
  footer.sf .sf-acc > summary { margin: 0; padding: 17px 0; cursor: pointer; }
  footer.sf .sf-acc > summary > i { display: block; position: relative; width: 26px; height: 26px; flex: none; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(12, 11, 18, .14); }
  footer.sf .sf-acc > summary > i::before, footer.sf .sf-acc > summary > i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; margin: -.8px 0 0 -5px; border-radius: 2px; background: #0C0B12; transition: transform .3s cubic-bezier(.22, .8, .16, 1); }
  footer.sf .sf-acc > summary > i::after { transform: rotate(90deg); }
  footer.sf .sf-acc[open] > summary > i::after { transform: rotate(0); }
  footer.sf h2 { font-size: 11.5px; color: var(--sf-ink); }
  footer.sf .sf-body { padding: 0 0 20px; }
  footer.sf .sf-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
  footer.sf ul { gap: 9px; }
  footer.sf li a { font-size: 15px; }
  footer.sf .sf-word { font-size: 25vw; }
}
@media (prefers-reduced-motion: reduce) { footer.sf * { transition: none !important; } }
