/* Chrome styles — header, footer, cursor, tweaks */

/* ─────────── HEADER ─────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  transition: all 500ms var(--ease-out);
  mix-blend-mode: normal;
}
.site-header.scrolled {
  padding: 12px var(--gutter);
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.site-header__mark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variation-settings: 'SOFT' 50, 'WONK' 0, 'opsz' 48;
}
.mark-slash { color: var(--oxblood); font-style: italic; transform: translateY(-1px); }
.mark-word--light { font-weight: 300; opacity: 0.7; }

.site-header__nav {
  display: flex; gap: 4px;
  background: rgba(26, 22, 18, 0.04);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}
.nav-link {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  transition: all 300ms var(--ease-out);
  position: relative;
}
.nav-link__num {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.4;
}
.nav-link:hover { background: rgba(26, 22, 18, 0.06); }
.nav-link.is-current { background: var(--ink); color: var(--bone); }
.nav-link.is-current .nav-link__num { opacity: 0.5; }

.site-header__meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.site-header__locale {
  color: var(--ink-soft);
  font-size: 11px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--oxblood);
  color: var(--bone);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: all 300ms var(--ease-out);
}
.header-cta__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mustard);
  box-shadow: 0 0 0 0 var(--mustard);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(212, 162, 76, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(212, 162, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 162, 76, 0); }
}
.header-cta:hover { background: var(--oxblood-deep); transform: translateY(-1px); }

.site-header__burger {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.site-header__burger span {
  width: 22px; height: 1.5px; background: var(--ink);
}

@media (max-width: 900px) {
  .site-header__nav, .site-header__meta { display: none; }
  .site-header__burger { display: flex; margin-left: auto; }
  .site-header__grid { grid-template-columns: 1fr auto; }
}
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--ink);
  color: var(--bone);
  z-index: 200;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 48px;
}
.mobile-menu a { display: flex; gap: 16px; align-items: baseline; }
.mobile-menu .mono { font-size: 14px; color: var(--mustard); }

/* ─────────── SCROLL PROGRESS ─────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--oxblood);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 101;
  transition: transform 80ms linear;
}

/* ─────────── FOOTER ─────────── */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding-top: 80px;
  position: relative;
  margin-top: 120px;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -60px; left: 0; right: 0;
  height: 60px;
  background: radial-gradient(ellipse at center top, var(--ink) 0%, transparent 70%);
  pointer-events: none;
}

.site-footer__huge {
  padding: 0 var(--gutter);
  overflow: hidden;
  margin-bottom: 80px;
}
.site-footer__huge-inner {
  font-family: var(--font-display);
  font-size: clamp(140px, 28vw, 440px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-variation-settings: 'SOFT' 20, 'WONK' 0, 'opsz' 144;
  display: flex;
  gap: 0.02em;
  justify-content: center;
  color: var(--bone);
}
.site-footer__huge-inner .serif-italic {
  color: var(--mustard);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.15);
}
.footer-col .eyebrow { color: var(--mustard); margin-bottom: 20px; }
.footer-col p { font-size: 14px; line-height: 1.6; color: rgba(244, 239, 230, 0.8); }
.footer-col ul { list-style: none; }
.footer-col ul li { font-size: 14px; margin-bottom: 10px; }
.footer-col ul li a { transition: color 300ms var(--ease-out); display: inline-block; position: relative; }
.footer-col ul li a:hover { color: var(--mustard); }

.site-footer__base {
  display: flex;
  justify-content: space-between;
  padding: 28px var(--gutter);
  color: rgba(244, 239, 230, 0.5);
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .site-footer__base { flex-direction: column; gap: 12px; text-align: center; }
}

/* ─────────── CUSTOM CURSOR ─────────── */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--bone);
  border-radius: 50%;
  transition: width 300ms, height 300ms;
}
.cursor-ring {
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  border: 1px solid rgba(244, 239, 230, 0.5);
  border-radius: 50%;
  transition: width 400ms var(--ease-out), height 400ms var(--ease-out), margin 400ms var(--ease-out);
  display: flex; align-items: center; justify-content: center;
}
.cursor-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
body.cursor-hover .cursor-ring {
  width: 80px; height: 80px; margin: -40px 0 0 -40px;
  background: rgba(244, 239, 230, 0.08);
  backdrop-filter: blur(4px);
  border-color: rgba(244, 239, 230, 0.8);
}
body.cursor-hover .cursor-dot { width: 0; height: 0; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ─────────── TWEAKS PANEL ─────────── */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--ink);
  color: var(--bone);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(244, 239, 230, 0.15);
  z-index: 10000;
  min-width: 280px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: fadeUp 400ms var(--ease-out);
}
.tweaks-panel__head {
  display: flex; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
  margin-bottom: 16px;
  color: var(--mustard);
}
.tweaks-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.tweaks-row label { font-size: 11px; width: 60px; color: rgba(244, 239, 230, 0.6); }
.tweaks-row input[type="range"] { flex: 1; accent-color: var(--mustard); }
.tweaks-swatches { display: flex; gap: 8px; }
.tweaks-swatch {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 200ms;
}
.tweaks-swatch.active { border-color: var(--bone); }
.tweaks-toggle {
  width: 36px; height: 20px;
  background: rgba(244, 239, 230, 0.15);
  border-radius: 999px;
  position: relative;
  transition: background 300ms;
}
.tweaks-toggle.on { background: var(--mustard); }
.tweaks-toggle span {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--bone);
  border-radius: 50%;
  transition: transform 300ms var(--ease-out);
}
.tweaks-toggle.on span { transform: translateX(16px); background: var(--ink); }
.tweaks-pills { display: flex; gap: 6px; }
.tweaks-pill {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.08);
}
.tweaks-pill.active { background: var(--mustard); color: var(--ink); }

/* ink theme override for Tweaks */
body.theme-ink {
  background: var(--ink);
  color: var(--bone);
}
body.theme-ink .site-header.scrolled {
  background: rgba(26, 22, 18, 0.85);
  border-bottom-color: rgba(244, 239, 230, 0.1);
}
body.theme-ink .nav-link { color: var(--bone); }
body.theme-ink .nav-link.is-current { background: var(--mustard); color: var(--ink); }
