/* ==========================================================================
   HOME - FOOTER
   Same ink, tokens and beams as the heritage section (home-hall.css, which
   defines .hall-beam and the --hall-* tokens for .site-foot too). The top
   beam carries the seal; the bottom beam is the copyright bar - no logo.
   Inside: type only. No pillars, icons or borders. Body text uses the home
   page reading face (--font-text, home-text.css); Cinzel stays for headings.

   Index-only. footer.css still serves the other public pages.
   ========================================================================== */

.site-foot {
  --foot-text: var(--font-text, "Source Serif 4", Georgia, serif);
  --foot-copy: oklch(0.93 0.014 88 / 0.86);
  --foot-quiet: oklch(0.93 0.014 88 / 0.62);
}

.foot-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding:
    clamp(3.5rem, 6vw, 5.5rem)
    calc(var(--hall-inset) + clamp(1.5rem, 3.5vw, 4rem))
    clamp(2.75rem, 4.5vw, 4rem);
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1.3fr 0.75fr 0.85fr;
  column-gap: clamp(2rem, 4.5vw, 5rem);
  row-gap: 3rem;
}

/* ---------- brand ---------- */

.site-foot .foot-zh {
  font-family: "Yuji Boku", "Noto Serif SC", serif;
  font-size: clamp(1.7rem, 1vw + 1.2rem, 2.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--hall-gold);
  z-index: auto;
}

.site-foot .foot-name {
  margin-top: 1rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.05rem, 0.4vw + 0.9rem, 1.3rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--hall-paper);
  z-index: auto;
}

.site-foot .foot-tagline {
  margin-top: 1.25rem;
  max-width: 22rem;
  font-family: var(--foot-text);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--foot-quiet);
  z-index: auto;
}

/* ---------- columns ---------- */

.site-foot .foot-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--hall-gold);
  z-index: auto;
}

.site-foot .foot-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--foot-text);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  color: var(--foot-copy);
}

.site-foot .foot-list a {
  width: fit-content;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  color: var(--foot-copy);
  text-decoration: none;
  z-index: auto;
  background: linear-gradient(var(--hall-gold), var(--hall-gold)) left bottom / 0 1px no-repeat;
  transition: color 0.3s ease, background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-foot .foot-list a:hover,
.site-foot .foot-list a:focus-visible {
  color: var(--hall-paper);
  background-size: 100% 1px;
}

.site-foot .foot-list a:focus-visible {
  outline: 1px solid var(--hall-gold);
  outline-offset: 3px;
}

.site-foot .foot-note {
  color: var(--foot-quiet);
}

/* ---------- meta row ---------- */

.foot-meta {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-family: var(--foot-text);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--foot-quiet);
}

/* ---------- copyright bar (the bottom beam) ---------- */

.site-foot .foot-legal {
  justify-content: center;
}

.site-foot .foot-copy {
  font-family: var(--foot-text);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--foot-quiet);
  text-align: center;
  z-index: auto;
}

/* ---------- small screens ---------- */

@media (max-width: 1100px) {
  .foot-inner {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .foot-inner {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }

  .foot-meta {
    flex-direction: column;
  }

  .site-foot .foot-legal {
    height: auto;
    padding-block: 1.25rem;
  }
}
