/* Shared styles for juliette.ink. Layout lives inline on each element;
   this file holds the base rules, the nav, hover/focus states and motion. */
body { margin:0; background:#F6F1E7; }
a { color:#315BA6; text-underline-offset:3px; }
a:hover { color:#1D2C49; }
a:focus-visible, button:focus-visible { outline:2px solid #315BA6; outline-offset:3px; }
::selection { background:#E8D18A; }
html { scroll-behavior:smooth; scroll-padding-top:72px; }
[hidden] { display:none !important; }

/* Primary nav */
.site-nav { display:flex; align-items:baseline; gap:clamp(12px,2.4vw,28px); flex-wrap:wrap; justify-content:flex-end; }
.nav-link { font-size:12px; letter-spacing:0.14em; text-transform:uppercase; text-decoration:none; white-space:nowrap; color:#5A5346; }
.nav-link:hover, .nav-link.is-active { color:#315BA6; }
.burger { display:none; }
.bar { display:block; width:24px; height:1.5px; background:#1D2C49; border-radius:2px; transition:transform .3s ease, opacity .2s ease; }

@media (max-width: 980px) {
  .burger { position:relative; z-index:50; width:44px; height:44px; display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:5.5px; background:none; border:none; padding:0; cursor:pointer; }
  .site-nav { display:none; }
  .menu-open .site-nav { box-sizing:border-box; position:fixed; top:0; right:0; bottom:0; left:0; z-index:40; background:#F6F1E7; display:flex; flex-direction:column; flex-wrap:nowrap; justify-content:flex-start; align-items:stretch; gap:0; padding:92px clamp(22px,7vw,44px) 48px; overflow-y:auto; -webkit-overflow-scrolling:touch; animation:jl-drawer .32s cubic-bezier(.2,.8,.2,1) both; }
  .nav-link { display:block; padding:17px 0; border-bottom:1px solid #D8CEB8; font-family:Newsreader,serif; font-size:26px; line-height:1.2; letter-spacing:normal; text-transform:none; white-space:normal; min-height:44px; box-sizing:border-box; }
  .menu-open .bar:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  .menu-open .bar:nth-child(2) { opacity:0; }
  .menu-open .bar:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
  .menu-open body { overflow:hidden; }
}

/* Shelf filter chips */
.chip { padding:10px 18px; min-height:44px; border-radius:999px; font-size:13px; font-family:Karla,sans-serif; cursor:pointer; transition:all .25s ease; border:1px solid #D8CEB8; background:transparent; color:#5A5346; }
.chip[aria-pressed="true"] { border-color:#1D2C49; background:#1D2C49; color:#F6F1E7; }

/* Live compass hint (phones only) */
.compass-hint { position:absolute; left:0; right:0; top:100%; margin-top:12px; text-align:center; font-size:11px; letter-spacing:0.18em; text-transform:uppercase; color:#6E6553; }

/* Form feedback */
.form-error { margin:0; font-size:14px; line-height:1.5; color:#A8320F; }

/* Hover and focus states (inline styles set the resting state) */
.fc1:focus { top:12px !important; }
.fc8:focus { border-color:#315BA6 !important; box-shadow:0 0 0 2px #315BA6 !important; }
.hv2:hover { transform:translateY(-3px) !important; background:#315BA6 !important; }
.hv3:hover { transform:translateY(-3px) !important; background:#1D2C49 !important; color:#F6F1E7 !important; }
.hv4:hover { animation-play-state:paused !important; }
.hv5:hover { transform:translateY(-3px) !important; }
.hv6:hover { transform:translateY(-3px) !important; background:#F6F1E7 !important; }
.hv7:hover { transform:translateY(-8px) rotate(-1deg) !important; box-shadow:0 14px 28px rgba(29,44,73,0.16) !important; }
.hv9:hover { color:#315BA6 !important; }
.hv10:hover { transform:translateY(-6px) !important; box-shadow:0 14px 28px rgba(29,44,73,0.10) !important; }

/* Motion */
@keyframes jl-drawer { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:none; } }
@keyframes jl-breathe { 0%, 100% { transform:scale(.8); } 50% { transform:scale(1); } }
@keyframes jl-progress { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@keyframes jl-marquee { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@keyframes jl-float { 0%,100% { transform:translateY(0) rotate(-1.5deg); } 50% { transform:translateY(-10px) rotate(1.5deg); } }
@supports (animation-timeline: scroll()) { [data-progress] { animation:jl-progress linear both; animation-timeline:scroll(root); } }

/* Scroll reveals: hidden only when the script is running, so the page reads fine without it */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not([data-revealed]) { opacity:0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation:none !important; transition:none !important; }
  [data-progress] { display:none; }
}
