/* Site-wide rules, loaded first on every page */
/* Decorative glows, rings and waves may bleed past the edge, but never cause sideways scrolling.
   overflow-x:clip (unlike hidden) does not create a scroll container, so sticky/fixed layouts keep working. */
html,body{overflow-x:clip}
@supports not (overflow:clip){
  html,body{overflow-x:hidden}
}
/* Page cards are sized in vw; never let them grow wider than the space they sit in
   (100vw includes the scrollbar on desktop browsers). min-width:0 lets a grid column shrink to the space. */
.hero-inner,.card,.dock-card,.lighthouse-card,.archive-card,.cove-card,.harbour-layout{min-width:0;max-width:100%}
/* ===== Harbour Serif: Source Serif 4 (Adobe, SIL Open Font License, see assets/fonts/source-serif-4/LICENSE.md).
   Self-hosted, so no external font service is contacted. Used wherever the site sets a serif (before Georgia). ===== */
@font-face{font-family:"Harbour Serif";src:url("../fonts/source-serif-4/SourceSerif4-Regular.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap;}
@font-face{font-family:"Harbour Serif";src:url("../fonts/source-serif-4/SourceSerif4-It.woff2") format("woff2");font-weight:300 700;font-style:italic;font-display:swap;}
/* ===== Inter: the interface and body face (Rasmus Andersson, SIL Open Font License, see assets/fonts/inter/LICENSE.txt). Self-hosted, variable weight. ===== */
@font-face{font-family:"Inter";src:url("../fonts/inter/Inter-Variable.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;}
/* ===== Typography: one serif for headings, Inter for everything else; sharp rendering, even line breaks ===== */
:root{--font-display:"Harbour Serif",Georgia,"Times New Roman",serif;--font-ui:Inter,system-ui,"Segoe UI",Arial,sans-serif;--site-gold:#b8924b;--site-gold-light:#f2d99b;--site-ink:#07111c}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-kerning:normal;font-optical-sizing:auto;accent-color:var(--site-gold);}
body{font-family:var(--font-ui);font-feature-settings:"kern","liga","calt";}
h1,h2,h3,h4{font-family:var(--font-display);text-wrap:balance;}
p,li,figcaption,blockquote,dd{text-wrap:pretty;}
input,textarea{caret-color:var(--site-gold);}
/* Gold details: selection, scrollbar and keyboard focus */
::selection{background:var(--site-gold-light);color:var(--site-ink);}
html{scrollbar-width:thin;scrollbar-color:var(--site-gold) rgba(7,17,28,.06);}
::-webkit-scrollbar{width:11px;height:11px;}
::-webkit-scrollbar-track{background:rgba(7,17,28,.05);}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#e2c887,var(--site-gold) 55%,#8a6a2e);border:3px solid transparent;border-radius:999px;background-clip:padding-box;}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#f2d99b,#c9aa6a 55%,#a9843f);background-clip:padding-box;border:3px solid transparent;}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--site-gold);outline-offset:3px;}
/* ===== One motion language for the whole harbour =====
   sail  - arriving: quick start, long gentle glide (reveals, cards, panels)
   tide  - travelling: eases in and out (moving from one place to another)
   stamp - a small overshoot, for moments of celebration */
:root{--ease-sail:cubic-bezier(.22,1,.36,1);--ease-tide:cubic-bezier(.45,0,.2,1);--ease-stamp:cubic-bezier(.2,1.6,.4,1);--dur-quick:.25s;--dur-calm:.6s;--dur-voyage:1.15s}
/* ===== Every page change is a crossing (cross-document View Transitions; browsers without support simply navigate).
   harbour-experience.js sets the course (--hx-dx/--hx-dy) toward the destination's point of the compass. ===== */
@view-transition{navigation:auto;}
::view-transition-old(root){animation:hxSailOut .5s var(--ease-tide) both}
::view-transition-new(root){animation:hxSailIn .7s var(--ease-sail) both}
@keyframes hxSailOut{to{opacity:0;transform:translate(calc(var(--hx-dx,0px) * -1),calc(var(--hx-dy,0px) * -1)) scale(.985);filter:blur(3px);}}
@keyframes hxSailIn{from{opacity:0;transform:translate(var(--hx-dx,0px),var(--hx-dy,0px)) scale(1.01);}}
/* The compass stays in its place while the page changes around it */
.cm-orb{view-transition-name:cm-orb}
::view-transition-group(cm-orb){animation-duration:.7s;animation-timing-function:var(--ease-sail)}
@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none;}
}
