/* ==========================================================================
   PROOF — Website layout (demos/**, templates/*.html)
   Shared site header and footer used by the demo websites and the utility
   templates. Brand name, navigation, availability line and CTA are content;
   the structure is the same for every demo.
   ========================================================================== */

.site {
  overflow-x: hidden;
}

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 14px;
}

.site-header__brand {
  font-family: var(--f-display);
  font-weight: var(--d-weight);
  text-transform: var(--d-case);
  letter-spacing: var(--d-track);
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.site-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 16px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 6px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

/* ---- Footer ----------------------------------------------------------- */
.site-footer {
  margin-top: clamp(80px, 10vw, 160px);
  background: var(--sheet);
  color: var(--sheet-ink);
}

/* :where() keeps specificity at 0,1,1 so .site-footer__legal a etc. still win */
.site-footer a:where(:not(.btn)) {
  color: var(--sheet-ink);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: clamp(48px, 7vw, 104px);
  padding-bottom: 88px;
}

/* Big closing call to action */
.site-footer__cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 28px 64px;
  align-items: end;
}

.site-footer__kicker {
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--sheet-muted);
}

.site-footer__headline {
  font-family: var(--f-display);
  font-weight: var(--d-weight);
  text-transform: var(--d-case);
  letter-spacing: var(--d-track);
  font-size: clamp(44px, 6.5vw, 104px);
  line-height: .92;
}

.site-footer__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer__actions a:not(.btn) {
  text-underline-offset: 4px;
}

/* Contact columns */
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--sheet-muted);
  font-size: 15px;
}

.site-footer__label {
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--sheet-muted);
}

.site-footer__label:has(+ .newsletter) {
  margin-bottom: 6px;
}

.site-footer__hint {
  font-size: 13px;
  color: var(--sheet-muted);
}

/* Newsletter mini form */
.newsletter {
  display: flex;
  gap: 6px;
}

.newsletter__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--sheet-muted);
  background: transparent;
  color: var(--sheet-ink);
  font: inherit;
  font-size: 15px;
}

.newsletter__button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--sheet-ink);
  background: transparent;
  color: var(--sheet-ink);
  cursor: pointer;
}

/* Legal line */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--sheet-muted);
}

.site-footer__legal a {
  color: var(--sheet-muted);
}
