

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "Doner Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

figure {
  margin: 0;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.06;
  background: url("assets/img/card-grain.png");
  background-size: 300px;
  mix-blend-mode: multiply;
}

/* ---- Doner Regular (lighter cut) for the contact panel + footer ---- */

/* ---- Site footer: desktop pinned reveal; mobile is normal document flow ---- */
main {
  position: relative;
  z-index: 1;
  background: var(--cream);
}
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: var(--bibo-blue-dust);
  color: #17120f;
  font-family: "Doner Text", "Helvetica Neue", Arial, sans-serif;
  padding: clamp(48px, 5.5vw, 84px) var(--m) clamp(28px, 3vw, 44px);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: clamp(64px, 11vh, 132px);
}
.footer-mark {
  line-height: 0;
}
.footer-mark img {
  display: block;
  height: 34px;
  filter: var(--bibo-logo-red-filter);
}
.footer-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  font-size: clamp(15px, 1.15vw, 18px);
}
.footer-cta span { color: rgba(23, 18, 15, 0.6); }
.footer-cta a { color: #17120f; text-decoration: none; transition: opacity 0.3s ease; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: clamp(24px, 3vw, 56px);
  padding: clamp(44px, 7vh, 84px) 0 clamp(60px, 11vh, 128px);
  border-top: 1px solid rgba(23, 18, 15, 0.16);
}
.footer-col h4 {
  margin: 0 0 clamp(48px, 8vh, 100px);
  color: rgba(23, 18, 15, 0.5);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-block { display: grid; gap: 18px; }
.footer-block p { margin: 0; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.4; }
.footer-block a { color: #17120f; text-decoration: none; }
.footer-links { display: grid; gap: 7px; }
.footer-links a {
  width: max-content;
  color: #17120f;
  text-decoration: none;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.35;
  transition: opacity 0.3s ease;
}
.footer-cta a:hover,
.footer-links a:hover,
.footer-block a:hover { opacity: 0.62; }
.footer-updates__copy {
  margin: 0 0 22px;
  max-width: 26ch;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.4;
}
.footer-news {
  display: flex;
  align-items: center;
  border: 1px solid rgba(23, 18, 15, 0.28);
}
.footer-news input {
  flex: 1;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #17120f;
  outline: none;
  font: inherit;
  font-size: 15px;
}
.footer-news input::placeholder { color: rgba(23, 18, 15, 0.5); }
.footer-news button {
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #17120f;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.footer-news button:hover { opacity: 0.62; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: clamp(24px, 3.5vh, 40px);
  border-top: 1px solid rgba(23, 18, 15, 0.16);
  color: rgba(23, 18, 15, 0.5);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Mobile footer follows the cream editorial pages. */
@media (max-width: 820px) {
  .site-footer { position: relative; z-index: 1; min-height: auto; padding: 32px 20px max(20px, env(safe-area-inset-bottom)); background: var(--cream); color: var(--ink); border-top: 1px solid var(--line); }
  .footer-top { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; padding-bottom: 24px; }
  .footer-mark { grid-column: 2; grid-row: 1; justify-self: end; }
  .footer-mark img { width: 48px; height: auto; filter: var(--bibo-logo-red-filter); }
  .footer-cta { grid-column: 1; grid-row: 1; display: grid; justify-self: start; gap: 10px; }
  .footer-cta span { color: var(--muted); font-size: 11px; line-height: 1.4; }
  .footer-cta a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); font-family: "Doner", Arial, sans-serif; font-weight: 500; font-size: clamp(30px,9vw,42px); line-height: 1; text-transform: uppercase; letter-spacing: -.025em; }
  .footer-cta .footer-cta-arrow { display: none; }
  .footer-cta a::after { content: ""; width: 22px; height: 22px; flex: 0 0 22px; background: currentColor; -webkit-mask: url("assets/img/arrow-up-right.svg") center / contain no-repeat; mask: url("assets/img/arrow-up-right.svg") center / contain no-repeat; }
  .footer-grid { grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
  .footer-col { min-width: 0; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .footer-col:first-child h4 { display: none; }
  .footer-col h4 { margin: 0 0 8px; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
  .footer-block { gap: 8px; }
  .footer-block p { font-size: 13px; line-height: 1.45; }
  .footer-block p:first-child { color: var(--muted); }
  .footer-block a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
  .footer-links { gap: 0; }
  .footer-col:nth-child(2) .footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; }
  .footer-links a { display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; color: var(--ink); font-size: 12px; line-height: 1.3; }
  .footer-base { flex-direction: column; gap: 5px; padding-top: 16px; border-color: var(--line); color: var(--muted); font-size: 9px; line-height: 1.4; letter-spacing: .02em; }
  main .closing__cta { display: none; }
  .site-footer a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
}
@media (max-width: 360px) {
  .site-footer { padding-inline: 10px; }
  .footer-mark img { width: 40px; }
  .footer-cta a { font-size: 29px; }
}
