/* ==========================================================================
   Harpoon Hobby Co — reference polish round (refpolish, Oct 30 2026). PROPOSAL / preview only.
   Loaded after css/site.css by scripts/site_build.py on every templated page.
   Our own CSS, written for the navy/gold theme. Inspiration only (no code copied):
     navbar.gallery (sticky glass bar) · scrolltide.co (scroll progress) · supahero.io (hero)
     cta.gallery (buttons) · glass.samasante.com (glass surfaces) · footer.design (sign-off footer)
     styles.refero.design (token sheet) · 3dicons.co (CC0 bell, see LICENSES.md)
   Does not touch boost (3D top-loader / reveal), card, shop or sold styling.
   ========================================================================== */
:root {
  /* Token sheet (refero-style: surface, edge, glow, motion) */
  --rp-glass: rgba(10, 22, 39, 0.52);
  --rp-glass-strong: rgba(2, 7, 17, 0.8);
  --rp-edge: rgba(224, 197, 106, 0.34);
  --rp-edge-soft: rgba(224, 197, 106, 0.14);
  --rp-hi: rgba(255, 244, 214, 0.07);
  --rp-glow: rgba(201, 162, 39, 0.35);
  --rp-hairline: linear-gradient(90deg, transparent, rgba(224, 197, 106, 0.55) 50%, transparent);
  --rp-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 1. NAV — deeper glass bar, gold gradient hairline instead of a flat rule (navbar.gallery: static/sticky) */
.site-header {
  background: var(--rp-glass-strong);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: transparent;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
.site-header::before {            /* gold hairline */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--rp-hairline);
  pointer-events: none;
}
@media (min-width: 721px) {
  .site-header .nav-links > a img,
  .site-header .nav-links > a .nav-news-label,
  .site-header .nav-links > a .nav-art-label {
    transition: transform 0.2s var(--rp-ease), filter 0.2s var(--rp-ease);
  }
  .site-header .nav-links > a:hover img,
  .site-header .nav-links > a:hover .nav-news-label,
  .site-header .nav-links > a:hover .nav-art-label,
  .site-header .nav-links > a:focus-visible img {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 7px rgba(224, 197, 106, 0.5)) drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45));
  }
  .site-header .brand-mark {
    box-shadow: 0 0 0 1px var(--rp-edge), 0 0 18px -4px var(--rp-glow);
    border-radius: 50%;
  }
}

/* 2. SCROLL PROGRESS — 2px gold line under the bar, pure CSS scroll timeline (scrolltide.co) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -1px;
      height: 2px;
      width: 100%;
      transform-origin: 0 50%;
      transform: scaleX(0);
      background: linear-gradient(90deg, #b48f1e, #e0c56a);
      box-shadow: 0 0 8px rgba(224, 197, 106, 0.55);
      pointer-events: none;
      animation: rp-progress linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes rp-progress { to { transform: scaleX(1); } }
  }
}

/* 3. HERO — eyebrow chip, second glow behind the lettering, slow harpoon drift (supahero.io) */
.page-home .rd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(42% 38% at 24% 42%, rgba(201, 162, 39, 0.1), transparent 70%);
}
.page-home .rd-eyebrow {
  padding: 0.38rem 0.9rem 0.38rem 0.6rem;
  border: 1px solid var(--rp-edge-soft);
  border-radius: 999px;
  background: var(--rp-glass);
  box-shadow: inset 0 1px 0 var(--rp-hi);
}
.page-home .rd-eyebrow-rule { width: 1.5rem; }
.page-home .rd-hero-harpoon { opacity: 0.12; }
@media (prefers-reduced-motion: no-preference) and (min-width: 721px) {
  .page-home .rd-hero-harpoon { animation: rp-drift 12s ease-in-out infinite alternate; }
  @keyframes rp-drift {
    from { transform: rotate(-6deg) translate3d(0, 0, 0); }
    to { transform: rotate(-5deg) translate3d(14px, -6px, 0); }
  }
}
.page-home .rd-trust li + li { padding-left: 0.85rem; border-left: 1px solid var(--rp-edge-soft); }

/* 4. CTA BUTTONS — glass ghost, pressed state, arrow nudge, hover sheen on gold (cta.gallery: Button) */
:is(.page-home, .page-news) main .btn {
  transition: transform 0.18s var(--rp-ease), filter 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
:is(.page-home, .page-news) main .btn:active { transform: translateY(0) scale(0.98); }
:is(.page-home, .page-news) main .btn-ghost {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 var(--rp-hi), 0 8px 22px -14px rgba(0, 0, 0, 0.8);
}
:is(.page-home, .page-news) main .btn-ghost:hover { box-shadow: inset 0 1px 0 var(--rp-hi), 0 0 0 3px rgba(201, 162, 39, 0.1); }
/* Sheen on gold buttons outside the hero (the hero CTA keeps its boost ring untouched) */
.page-home main :is(.alert-form, .rd-gear-copy) .btn-primary,
.site-footer .rp-signoff .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.page-home main :is(.alert-form, .rd-gear-copy) .btn-primary::after,
.site-footer .rp-signoff .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 248, 225, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .page-home main :is(.alert-form, .rd-gear-copy) .btn-primary:hover::after,
  .site-footer .rp-signoff .btn-primary:hover::after { transform: translateX(120%); transition: transform 0.7s var(--rp-ease); }
}
:is(.page-home, .page-news) main .btn [aria-hidden="true"],
.rd-link [aria-hidden="true"],
.rd-tile-go [aria-hidden="true"],
.rp-signoff .btn [aria-hidden="true"] { display: inline-block; transition: transform 0.2s var(--rp-ease); }
:is(.btn, .rd-link, .rd-tile):hover [aria-hidden="true"] { transform: translateX(3px); }

/* 5. GLASS PANELS — frosted navy, gradient gold edge, top highlight (glass.samasante.com, CSS-only take) */
.page-home .rd-alert,
.page-home .rd-tile,
.page-home .rd-gear-tile {
  position: relative;
  background:
    linear-gradient(180deg, var(--rp-hi), transparent 40%),
    radial-gradient(600px 260px at 0% 0%, rgba(201, 162, 39, 0.12), transparent 60%),
    var(--rp-glass);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.08), 0 24px 60px -30px rgba(0, 0, 0, 0.85);
}
.page-home .rd-alert::before,
.page-home .rd-tile::before,
.page-home .rd-gear-tile::before {         /* gradient edge, brighter top-left */
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(224, 197, 106, 0.6), rgba(224, 197, 106, 0.1) 40%, rgba(224, 197, 106, 0.06) 70%, rgba(224, 197, 106, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.page-home .rd-tile:hover::before,
.page-home .rd-gear-tile:hover::before { background: linear-gradient(140deg, rgba(240, 212, 120, 0.9), rgba(224, 197, 106, 0.2) 45%, rgba(224, 197, 106, 0.5)); }

/* 7. ICON TOUCH — CC0 navy/gold 3D bell on drop alerts (3dicons.co) */
.page-home .rp-bell {
  float: right;
  width: 84px;
  height: 84px;
  margin: -0.5rem 0 0 0.75rem;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(201, 162, 39, 0.22));
  transform-origin: 50% 12%;
}
@media (prefers-reduced-motion: no-preference) {
  .page-home .rd-alert:hover .rp-bell { animation: rp-ring 1.1s var(--rp-ease) 1; }
  @keyframes rp-ring {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(9deg); }
    45% { transform: rotate(-7deg); }
    70% { transform: rotate(3deg); }
  }
}
@media (max-width: 560px) {
  .page-home .rp-bell { width: 64px; height: 64px; margin-top: -0.25rem; }
}

/* 6. FOOTER — sign-off band, gradient hairline, column markers (footer.design) */
.site-footer { position: relative; border-top-color: transparent; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--rp-hairline);
}
.rp-signoff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin: 0 0 2.25rem;
  padding: 1.6rem clamp(1.25rem, 3vw, 2rem);
  border-radius: 20px;
  background:
    radial-gradient(420px 200px at 0% 0%, rgba(201, 162, 39, 0.14), transparent 65%),
    var(--rp-glass);
  box-shadow: inset 0 0 0 1px var(--rp-edge-soft), inset 0 1px 0 var(--rp-hi);
}
.rp-signoff-line {
  margin: 0;
  font-family: var(--rd-serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.005em;
  color: #e0c56a;
  background: linear-gradient(180deg, #f6e3a1 0%, #e0c56a 45%, #b48f1e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rp-signoff-sub { margin: 0.45rem 0 0; color: var(--rd-muted); font-size: 0.92rem; }
.site-footer .rp-signoff .btn-primary {
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-family: var(--rd-sans);
  font-weight: 600;
  color: #140e04;
  text-decoration: none;
  background: linear-gradient(180deg, #e7cd78 0%, #c9a227 55%, #b48f1e 100%);
  border: 1px solid rgba(255, 236, 170, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 26px -12px rgba(201, 162, 39, 0.55);
}
.site-footer .rp-signoff .btn-primary:hover { filter: brightness(1.06); }
.footer-col-title { display: flex; align-items: center; gap: 0.55rem; }
.footer-col-title::before { content: ""; width: 14px; height: 1px; background: var(--rd-gold); }
.footer-col a { display: inline-block; transition: color 0.15s ease, transform 0.2s var(--rp-ease); }
.footer-col a:hover, .footer-col a:focus-visible { transform: translateX(3px); }
@media (max-width: 560px) {
  .rp-signoff { flex-direction: column; align-items: flex-start; }
  .site-footer .rp-signoff .btn-primary { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .nav-links > a img, .footer-col a, .btn, .rd-link [aria-hidden="true"] { transition: none !important; }
  .footer-col a:hover, :is(.btn, .rd-link, .rd-tile):hover [aria-hidden="true"] { transform: none; }
}
