/* Shared chrome for every page: tokens, type, nav, buttons, labels, newsletter,
   footer, rhumb lines, chart marks, sea mist, cursor and scrollbar.
   Palette: GDD Art Style "sea, stone and first light". */

@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:500 600;font-display:swap;src:url("../fonts/cormorant-garamond.woff2") format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:500;font-display:swap;src:url("../fonts/cormorant-garamond-italic.woff2") format("woff2")}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400 600;font-display:swap;src:url("../fonts/source-sans-3.woff2") format("woff2")}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/source-serif-4.woff2") format("woff2")}

:root{
  --adriatic:#173E4A;   /* sea, ink on light */
  --ground:#0f1a24;     /* dark grounds: near-black deep-sea blue (trial 2026-11-11) */
  --limestone:#D8CDB7;  /* warm structural neutral */
  --linen:#F2EBDD;      /* light surfaces, lettering over the sea */
  --olive:#69765C;      /* quiet life: rules and marks */
  --mist:#8EACA6;       /* bridge between blue and light */
  --clay:#B77962;       /* warmth */
  --light:#D9B86F;      /* first light, used sparingly */
  /* derived */
  --adriatic-deep:#17252f; --linen-mute:#c9c4b6; --ink-2:#3d5560; --rule-light:#cfc4ad; --rule-dark:rgba(242,235,221,.16);
  /* text tints that keep WCAG AA (4.5:1) for small text */
  --olive-ink:#4f5a45;  /* olive text on linen and limestone */
  --clay-ink:#7a4433;   /* clay text on linen and limestone */
  --quiet:#a3b3b6;      /* quiet text on the sea */
  --f-title:"Cormorant Garamond","Cormorant",Garamond,"Times New Roman",serif;
  --f-body:"Source Sans 3","Segoe UI",system-ui,sans-serif;
  --f-read:"Source Serif 4","Source Serif Pro",Georgia,serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(64px + env(safe-area-inset-top,0px))}
body{margin:0;background:var(--linen);color:var(--adriatic);font-family:var(--f-body);font-size:18px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:clip}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:11;background:var(--ground)}
img,video{max-width:100%;display:block}
.in{max-width:1180px;margin:0 auto;padding-left:max(24px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px))}
.dark{background:var(--ground);color:var(--linen)}
.caps{text-transform:uppercase}
.caps i{font-style:normal;font-size:.76em}
a{color:inherit}
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* focus: first light on the sea, Deep Adriatic on the light grounds */
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--adriatic);outline-offset:3px}
.dark a:focus-visible,.dark button:focus-visible,.dark input:focus-visible,.nav a:focus-visible{outline-color:var(--light)}
.skip{position:fixed;left:16px;top:-60px;z-index:20;padding:10px 16px;background:var(--linen);color:var(--adriatic);font-weight:600;text-decoration:none;border-radius:2px}
.skip:focus{top:calc(12px + env(safe-area-inset-top,0px))}

/* header */
.nav{position:fixed;inset:0 0 auto 0;z-index:10;padding-top:env(safe-area-inset-top,0px);color:var(--linen);border-bottom:1px solid transparent;transition:background .3s,border-color .3s}
.nav.solid{background:var(--ground);border-bottom-color:var(--rule-dark)}
.nav .in{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-block:16px}
.wordmark{font:600 24px/1 var(--f-title);letter-spacing:.04em;text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;gap:12px}
.wordmark .compass{width:40px;height:40px;flex:none;fill:#E9CB86;overflow:visible}.wordmark .compass .sh{fill:#A57B2E}.wordmark .compass circle{fill:#A57B2E}
.nav nav{display:flex;gap:26px;font-size:15px;font-weight:500;letter-spacing:.04em}
.nav nav a{text-decoration:none;opacity:.85;white-space:nowrap}
.nav nav a:hover,.nav nav a:focus-visible,.nav nav a[aria-current]{opacity:1;text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--light)}
@media (max-width:520px){.wordmark{font-size:20px;gap:10px}.wordmark .compass{width:32px;height:32px}.nav nav{gap:16px;font-size:14px}}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:10px;padding:13px 24px;font:500 16px var(--f-body);letter-spacing:.03em;text-decoration:none;border-radius:2px;cursor:pointer;border:1px solid;transition:background .2s,color .2s}
.btn[disabled]{opacity:.6;cursor:progress}

.label{display:flex;align-items:center;gap:14px;font-size:12.5px;letter-spacing:.2em;text-transform:uppercase;font-weight:600;color:var(--olive-ink);margin-bottom:20px}
.label::after{content:"";height:1px;width:56px;background:currentColor;opacity:.5}
.dark .label{color:var(--mist)}

/* newsletter forms (hero and footer) */
.signup{display:flex;gap:10px;flex-wrap:wrap;max-width:520px;margin:0}
.signup input{flex:1 1 220px;min-width:0;padding:13px 14px;border:1px solid rgba(242,235,221,.35);background:var(--adriatic-deep);color:var(--linen);font:inherit;border-radius:2px}
.signup input::placeholder{color:#8a9da2}
.signup input:focus{outline:2px solid var(--light);outline-offset:1px}
.signup .btn{background:var(--light);color:var(--adriatic);border-color:var(--light)}
.signup .btn:hover{background:#e5c886}
.signup-msg{display:block;margin-top:10px;color:var(--linen-mute);font-size:14px}
.signup-msg:empty{display:none}
.signup-msg.ok{color:var(--linen);font-size:16px}
.signup-msg.err{color:#f0c9b9}
/* the asterisk after the newsletter line leads to the privacy note */
.star{display:inline-block;margin-left:2px;padding:0 3px;color:var(--light);font-weight:600;text-decoration:none;position:relative;top:-.2em;font-size:1.25em;line-height:1}
.star:hover{color:var(--linen)}
.signup.done{display:none}
/* the EmailOctopus form that does the sending; kept off screen, see newsletter.js */
.eo-bridge{position:absolute;left:-10000px;top:auto;width:400px;height:auto;overflow:hidden}

/* footer */
.foot{position:relative;padding-block:84px 40px}
.foot>.in{position:relative;z-index:2}
.foot .cols{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:64px}
.foot h2{font:600 clamp(34px,4vw,48px)/1.1 var(--f-title);margin:0 0 12px}
.foot p{margin:0 0 20px;max-width:32em;color:#dcd6c8}
.studio{border-left:1px solid var(--rule-dark);padding-left:40px}
.studio .wm{font:600 26px/1 var(--f-title);letter-spacing:.04em;margin-bottom:14px}
.studio a{color:var(--linen);text-decoration-color:var(--light);text-underline-offset:4px}
.gloss{font:500 italic 17px/1.45 var(--f-title);color:var(--linen-mute);margin:0 0 4px}
.gloss b{font:500 italic 16px/1 var(--f-title);letter-spacing:.06em;color:var(--mist);display:block;margin-bottom:8px}
.social{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:22px;font-size:15px;color:var(--linen-mute)}
.social span{flex-basis:100%;font-size:12.5px;letter-spacing:.2em;text-transform:uppercase;font-weight:600;color:var(--mist)}
.social a{display:inline-flex;align-items:center;gap:8px;color:var(--linen);text-decoration:none}
.social a{opacity:.85;transition:opacity .2s,color .2s}.social a:hover,.social a:focus-visible{opacity:1;color:var(--light)}
.social svg{width:22px;height:22px}
.legal{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px 24px;margin-top:64px;padding-top:20px;border-top:1px solid var(--rule-dark);font-size:13px;color:var(--quiet)}
.legal a{color:var(--quiet);text-underline-offset:3px}
.legal a:hover{color:var(--linen)}
@media (max-width:780px){
  .foot .cols{grid-template-columns:1fr;gap:28px}
  .studio{border-left:0;padding-left:0;border-top:1px solid var(--rule-dark);padding-top:28px}
}

/* rhumb lines: one portolan-style web behind the whole page, scrolls with it.
   Sits above section grounds (z 1) and below section content (z 2). */
.rhumbs{position:absolute;top:0;left:0;width:100%;z-index:1;pointer-events:none;overflow:hidden;opacity:.2}
.rhumbs line{stroke-width:1;vector-effect:non-scaling-stroke;fill:none}
.rhumbs .wm{stroke:var(--mist);stroke-opacity:.6}   /* main winds */
.rhumbs .wh{stroke:var(--olive);stroke-opacity:.5}  /* half winds */
.rhumbs .wq{stroke:var(--clay);stroke-opacity:.38}  /* quarter winds */
.rhumbs circle{fill:var(--mist);fill-opacity:.7}
.rhumbs.draw line{stroke-dasharray:1;stroke-dashoffset:1;animation:rh-draw 2.4s cubic-bezier(.2,.6,.3,1) forwards}
.rhumbs.draw .wh{animation-delay:.25s}
.rhumbs.draw .wq{animation-delay:.5s}
@keyframes rh-draw{to{stroke-dashoffset:0}}

/* chart marks: a slow astrolabe behind the title, and Euclid-style construction
   marks on the rhumb roses. Own layer so the rhumb opacity stays the single knob. */
.marks{position:absolute;top:0;left:0;width:100%;z-index:1;pointer-events:none;overflow:hidden}
.marks .astro *{fill:none;stroke:var(--light);vector-effect:non-scaling-stroke}
.marks .astro{opacity:.16}
.marks .astro .fine{stroke-width:.75}
.marks .astro .bold{stroke-width:1.25}
.marks .rete{animation:astro-turn 480s steps(7200) infinite}  /* 15 steps a second: no repaint every frame */
@keyframes astro-turn{to{transform:rotate(360deg)}}
.marks .geo{fill:none;stroke:var(--mist);stroke-width:1;vector-effect:non-scaling-stroke;opacity:.28}
.marks .geo.dash{stroke-dasharray:3 6}
.marks text{font:500 italic 17px var(--f-title);fill:var(--mist);opacity:.5}

/* sea mist: tileable fractal-noise banks that drift sideways, low over the water.
   Each bank is wider than the screen by one tile and slides one tile, so the loop is seamless. */
/* --fog: one knob for how strong the mist is everywhere (1 = original) */
:root{--fog:.5}
.mist{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;opacity:var(--fog)}
.mist i{position:absolute;top:0;bottom:0;left:0;width:calc(100% + 1200px);background-repeat:repeat;will-change:transform}
.mist .a{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0025 0.009' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .92 0 0 0 0 .87 1.9 0 0 0 -0.78'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");opacity:.5;animation:mist-drift 140s linear infinite}
.mist .b{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.014' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .92 0 0 0 0 .87 1.7 0 0 0 -0.72'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");opacity:.35;animation:mist-drift 90s linear infinite reverse}
@keyframes mist-drift{to{transform:translateX(-1200px)}}
.foot>.mist{-webkit-mask-image:linear-gradient(to bottom,#000 0%,transparent 55%);mask-image:linear-gradient(to bottom,#000 0%,transparent 55%)}
.foot>.mist .a{opacity:.35}.foot>.mist .b{opacity:.22}
/* haze on the light grounds: the same drifting banks in a cool blue-gray */
.mist.haze .a{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0025 0.009' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.27 0 0 0 0 0.36 0 0 0 0 0.4 1.9 0 0 0 -0.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");opacity:.36}
.mist.haze .b{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.014' numOctaves='4' seed='13' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.27 0 0 0 0 0.36 0 0 0 0 0.4 1.7 0 0 0 -0.74'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");opacity:.26}

/* cursor: a compass needle (tip is the hotspot); over links and buttons it becomes a small wind rose */
html{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3L15.5 8.5L8.5 15.5Z' fill='none' stroke='%23F2EBDD' stroke-opacity='.7' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M15.5 8.5L23 23L8.5 15.5Z' fill='none' stroke='%23F2EBDD' stroke-opacity='.7' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M3 3L15.5 8.5L8.5 15.5Z' fill='%23B77962' stroke='%23173E4A' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M15.5 8.5L23 23L8.5 15.5Z' fill='%23F2EBDD' stroke='%23173E4A' stroke-width='1.2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%23D9B86F' stroke='%23173E4A' stroke-width='1'/%3E%3C/svg%3E") 3 3,auto}
a,button,.btn,summary,label[for]{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16.0 3.0 L18.0 11.2 L22.0 10.0 L20.8 14.0 L29.0 16.0 L20.8 18.0 L22.0 22.0 L18.0 20.8 L16.0 29.0 L14.0 20.8 L10.0 22.0 L11.2 18.0 L3.0 16.0 L11.2 14.0 L10.0 10.0 L14.0 11.2Z' fill='none' stroke='%23F2EBDD' stroke-opacity='.7' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M16.0 3.0 L18.0 11.2 L22.0 10.0 L20.8 14.0 L29.0 16.0 L20.8 18.0 L22.0 22.0 L18.0 20.8 L16.0 29.0 L14.0 20.8 L10.0 22.0 L11.2 18.0 L3.0 16.0 L11.2 14.0 L10.0 10.0 L14.0 11.2Z' fill='%23D9B86F' stroke='%23173E4A' stroke-width='1.2' stroke-linejoin='round'/%3E%3Ccircle cx='16' cy='16' r='2.4' fill='%23F2EBDD' stroke='%23173E4A' stroke-width='1'/%3E%3C/svg%3E") 16 16,pointer}
input,textarea{cursor:text}

/* scrollbar: a Deep Adriatic track ticked like a chart's scale bar, with a First light thumb.
   WebKit/Blink use the pseudo-elements; Firefox (no ::-webkit-scrollbar) gets the standard colours. */
::-webkit-scrollbar{width:13px;height:13px}
::-webkit-scrollbar-track{background:var(--adriatic-deep) repeating-linear-gradient(to bottom,transparent 0 47px,rgba(242,235,221,.22) 47px 48px,transparent 48px 96px,rgba(217,184,111,.35) 96px 97px);border-left:1px solid rgba(242,235,221,.12)}
::-webkit-scrollbar-thumb{background:linear-gradient(to right,#e7cf96,var(--light) 45%,#b8975a);border:3px solid var(--adriatic-deep);border-radius:7px;min-height:48px}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(to right,#f3e2b6,#e5c886 45%,#c9a868)}
::-webkit-scrollbar-thumb:active{background:var(--linen)}
::-webkit-scrollbar-corner{background:var(--adriatic-deep)}
@supports not selector(::-webkit-scrollbar){html{scrollbar-color:var(--light) var(--adriatic-deep);scrollbar-width:auto}}

/* phones and tablets: the mist holds still. Drifting banks under a fade mask make the
   browser redraw every bank offscreen on every frame, which mobile GPUs can't keep up with;
   still banks are drawn once. */
@media (max-width:780px),(pointer:coarse){
  .mist .a,.mist .b,.hero .chart-mist i{animation:none;will-change:auto}
  /* the same tiles pre-rendered to images (img/mist/, rendered from the SVGs above), so phones
     don't compute the noise filter as each section scrolls in */
  .mist .a{background-image:url("../img/mist/mist-a.webp");background-size:1200px 600px}
  .mist .b{background-image:url("../img/mist/mist-b.webp");background-size:1200px 600px}
  .mist.haze .a{background-image:url("../img/mist/haze-a.webp")}
  .mist.haze .b{background-image:url("../img/mist/haze-b.webp")}
}

/* reduced motion: no drift, no drawing, no turning, no smooth scroll */
@media (prefers-reduced-motion:reduce){
  *{transition:none!important}
  html{scroll-behavior:auto}
  .mist i{animation:none}
  .rhumbs.draw line{animation:none;stroke-dashoffset:0}
  .marks .rete{animation:none}
}

/* small text over the drifting mist: a soft halo of sea keeps it at WCAG AA
   wherever a bright bank passes behind it */
.halo,.dark .signup-msg,.legal,.foot p{text-shadow:0 0 2px var(--ground),0 0 6px var(--ground),0 0 14px var(--ground),0 0 24px rgba(15,26,36,.85)}
