/* Content page template: Sagamore Tides, privacy policies, future posts and project pages. */
body{margin:0;background:#f4efe7}
*{box-sizing:border-box}
a{color:inherit}a:hover{color:inherit}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #1c75bc;outline-offset:2px}
.root{font-family:'Plus Jakarta Sans','Helvetica Neue',Arial,sans-serif;color:#151515;background:#f4efe7;width:100%;overflow-x:clip}
.wrap{max-width:1360px;margin:0 auto;padding-left:clamp(16px,4vw,40px);padding-right:clamp(16px,4vw,40px)}

/* Header */
.site-head{position:relative;background:#151515;color:#ffffff}
.site-head .bar{display:flex;align-items:stretch;justify-content:space-between;gap:16px;padding-top:18px;padding-bottom:18px}
.brand{display:flex;align-items:center;gap:16px;text-decoration:none;min-width:0}
.brand svg{flex:0 0 auto;width:60px;height:60px;filter:drop-shadow(0 4px 12px rgba(0,0,0,.4))}
.brand .word{display:flex;flex-direction:column;justify-content:space-between;height:60px;font-weight:800;font-size:38px;line-height:.74;letter-spacing:-0.03em;white-space:nowrap;text-shadow:0 2px 12px rgba(0,0,0,.4)}
.nav-desk{display:flex}
.nav-mob{display:none;align-items:center;justify-content:center;gap:.6em;width:110px;border:0;background:transparent;color:#ffffff;font-family:inherit;font-weight:600;font-size:17px;cursor:pointer}
.nav-mob:hover{background:#222222}
.nav-mob .mi{display:flex;flex-direction:column;gap:.17em;width:1.15em}
.nav-mob .mi i{display:block;height:.17em}
.navlink{display:flex;align-items:flex-end;min-width:clamp(104px,9vw,136px);padding:12px 14px;text-decoration:none;font-weight:600;font-size:16px;box-shadow:0 6px 16px rgba(0,0,0,.25);transition:transform 200ms ease}
.navlink:hover{transform:translateY(-3px)}
#sub-menu{display:flex;flex-direction:column;gap:8px;padding-bottom:20px}
#sub-menu[hidden]{display:none}
.band4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:12px}
.c-blue{background:#1c75bc;color:#ffffff}.c-yellow{background:#ffde17;color:#151515}.c-red{background:#d4171f;color:#ffffff}.c-white{background:#ffffff;color:#151515}

/* Page title band */
.page-hero{background:#0e1a2b;color:#ffffff;overflow:hidden}
.page-hero .wrap{padding-top:clamp(48px,6vw,88px);padding-bottom:clamp(48px,6vw,88px);display:flex;flex-direction:column;gap:24px}
/* Breadcrumb row: sticks to the top (under the header on phones) */
.crumbbar{position:sticky;top:0;z-index:25;background:rgba(244,239,231,.82);-webkit-backdrop-filter:blur(12px) saturate(1.3);backdrop-filter:blur(12px) saturate(1.3);border-bottom:1px solid rgba(21,21,21,.1);box-shadow:0 6px 18px rgba(21,21,21,.06)}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding-top:12px;padding-bottom:12px;font-size:15px;font-weight:600;line-height:1.4;color:#4a4740}
.crumbs a{color:#151515;text-underline-offset:4px}
.crumbs [aria-current]{color:#151515}
.page-hero h1{margin:0;max-width:16ch;font-weight:700;font-size:clamp(44px,6.4vw,96px);line-height:.98;letter-spacing:-0.03em}
.page-hero .sub{margin:0;max-width:52ch;font-size:clamp(19px,1.6vw,24px);line-height:1.55;color:rgba(255,255,255,.9)}
.page-hero .meta{margin:0;font-size:16px;color:rgba(255,255,255,.8)}

.btn{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-height:56px;padding:0 22px;font-family:inherit;font-weight:600;font-size:17px;text-decoration:none;border:0;box-shadow:0 8px 22px rgba(0,0,0,.2);transition:transform 200ms ease}
a.btn:hover{transform:translateY(-2px)}

/* Body copy with an "on this page" column */
.layout{display:flex;flex-wrap:wrap;gap:40px clamp(40px,6vw,96px);align-items:flex-start}
.toc{flex:1 1 220px;max-width:280px;position:sticky;top:72px;display:flex;flex-direction:column;gap:4px;max-height:calc(100vh - 96px);overflow-y:auto}
.toc .toc-h{font-weight:700;font-size:17px;margin-bottom:8px}
.toc a{display:block;padding:10px 0 10px 16px;border-left:3px solid rgba(21,21,21,.15);text-decoration:none;font-size:16px;font-weight:600;color:#3d3a33}
.toc a:hover{border-left-color:#1c75bc;color:#151515}
.prose{flex:999 1 560px;max-width:760px;min-width:0}
.prose h2{margin:72px 0 18px;font-weight:700;font-size:clamp(30px,3.2vw,44px);line-height:1.08;letter-spacing:-0.02em;scroll-margin-top:72px}
.prose h2:first-child,.prose .chapter:first-child h2{margin-top:0}
.prose h3{margin:36px 0 10px;font-weight:700;font-size:24px;line-height:1.2}
.prose h4{margin:32px 0 10px;font-weight:700;font-size:20px;line-height:1.3}
.prose p{margin:0 0 20px;font-size:19px;line-height:1.7;color:#2c2a25}
.prose ul{margin:0 0 24px;padding:0;list-style:none;display:flex;flex-direction:column;gap:14px}
.prose ul>li{position:relative;padding-left:28px;font-size:19px;line-height:1.65;color:#2c2a25}
.prose ul>li::before{content:"";position:absolute;left:0;top:.6em;width:10px;height:10px;background:#1c75bc}
.prose ol{margin:0 0 24px;padding:0;list-style:none;counter-reset:step;display:flex;flex-direction:column;gap:14px}
.prose ol>li{position:relative;padding-left:48px;font-size:19px;line-height:1.65;color:#2c2a25;counter-increment:step}
.prose ol>li::before{content:counter(step);position:absolute;left:0;top:.1em;width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:#1c75bc;color:#ffffff;font-weight:700;font-size:16px;line-height:1}
.prose strong{font-weight:700;color:#151515}
.prose a{font-weight:600;text-underline-offset:4px}
.prose code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86em;background:rgba(21,21,21,.07);padding:.1em .35em}
.prose .chapter{scroll-margin-top:72px}
.prose .chapter-num{display:block;margin:72px 0 -8px;font-weight:700;font-size:15px;letter-spacing:.12em;color:#1c75bc}
.prose .chapter:first-child .chapter-num{margin-top:0}
.prose .chapter-num + h2{margin-top:16px}
.prose .note{margin:8px 0 24px;padding:20px 24px;background:#ffffff;border-left:6px solid #ffde17;box-shadow:0 10px 26px rgba(21,21,21,.08)}
.prose .note p{margin:0;font-size:18px}
.prose table{width:100%;border-collapse:collapse;margin:8px 0 28px;font-size:17px;line-height:1.5}
.prose th{text-align:left;font-weight:700;padding:12px 14px;background:#151515;color:#f4efe7}
.prose td{padding:12px 14px;border-bottom:1px solid rgba(21,21,21,.14);vertical-align:top;color:#2c2a25}
.prose tbody tr:nth-child(odd) td{background:rgba(255,255,255,.55)}
.table-scroll{overflow-x:auto}
.prose details{margin:0 0 10px;background:#ffffff;box-shadow:0 8px 20px rgba(21,21,21,.07)}
.prose summary{cursor:pointer;padding:18px 20px 18px 52px;position:relative;font-weight:700;font-size:18px;line-height:1.4;list-style:none}
.prose summary::-webkit-details-marker{display:none}
.prose summary::before{content:"+";position:absolute;left:18px;top:16px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:#1c75bc;color:#fff;font-weight:700}
.prose details[open] summary::before{content:"\2212"}
.prose details p{margin:0;padding:0 20px 20px 52px;font-size:18px}
.legend{display:flex;flex-wrap:wrap;gap:32px;align-items:flex-start;margin:8px 0 24px}
.legend .scheme{flex:0 0 auto}
.legend dl{flex:1 1 320px;margin:0;display:grid;grid-template-columns:32px 1fr;gap:12px 16px}
.legend dt{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:#151515;color:#ffde17;font-weight:700;font-size:15px}
.legend dd{margin:0;font-size:18px;line-height:1.6;color:#2c2a25}

/* Watch frames */
.devices{position:absolute;inset:0;display:flex;justify-content:center;align-items:center}
.watch{position:relative;flex:0 0 auto;width:10em;height:10em;isolation:isolate}
.watch .strap{position:absolute;z-index:0;left:26%;right:26%;top:-46%;bottom:-46%;border-radius:1em/1.3em;background:linear-gradient(90deg,rgba(0,0,0,.5),rgba(255,255,255,.08) 18%,rgba(255,255,255,.02) 50%,rgba(0,0,0,.18) 80%,rgba(0,0,0,.55)),linear-gradient(#1b1e23,#2c3138 18%,#262a30 50%,#2c3138 82%,#1b1e23);box-shadow:0 1.4em 2.6em rgba(0,0,0,.4),inset .12em 0 .2em rgba(255,255,255,.08),inset -.12em 0 .25em rgba(0,0,0,.5)}
.watch .strap::before{content:"";position:absolute;left:-11%;right:-11%;top:18%;bottom:18%;border-radius:.9em/1.3em;background:linear-gradient(90deg,#0f1012,#44494f 22%,#1b1d20 50%,#5a6068 78%,#111214)}
.watch .strap::after{content:"";position:absolute;left:50%;bottom:4%;width:.6em;height:9%;transform:translateX(-50%);background:radial-gradient(circle,rgba(0,0,0,.75) .15em,rgba(255,255,255,.06) .2em,transparent .24em) center top/.6em .9em repeat-y}
.watch::before{content:"";position:absolute;z-index:1;inset:-.72em;border-radius:50%;background:conic-gradient(from 200deg,#0c0d0f,#373b41 10%,#141618 22%,#5d636b 34%,#1a1c1f 47%,#40454c 60%,#101113 73%,#6b7179 86%,#0c0d0f);box-shadow:0 1.8em 3.2em rgba(0,0,0,.45),0 .35em .7em rgba(0,0,0,.35),inset 0 0 0 .05em rgba(255,255,255,.18),inset 0 -.08em .2em rgba(0,0,0,.5)}
.watch .crown{position:absolute;z-index:0;right:-1.3em;top:42.5%;width:1.25em;height:1.5em;border-radius:.18em .4em .4em .18em;background:linear-gradient(90deg,rgba(0,0,0,.45),rgba(255,255,255,.12) 45%,rgba(0,0,0,.35)),repeating-linear-gradient(#222529 0 .07em,#4f555c .07em .14em);box-shadow:0 .2em .4em rgba(0,0,0,.4)}
.watch .case{position:absolute;z-index:2;inset:0;border-radius:50%;overflow:hidden;background:#030405;box-shadow:0 0 0 .34em #030405,0 0 0 .4em #1a1c1f}
.watch .case img{display:block;width:100%;height:100%;object-fit:cover}
.watch .case::after{content:"";position:absolute;inset:-.34em;border-radius:50%;pointer-events:none;background:linear-gradient(140deg,rgba(255,255,255,.2) 0%,rgba(255,255,255,.07) 28%,rgba(255,255,255,0) 42%),radial-gradient(ellipse at 30% 18%,rgba(255,255,255,.12),rgba(255,255,255,0) 45%)}
.swatches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:16px;margin:8px 0 28px}
.prose figure{margin:32px 0}
.prose figure.scheme,figure.scheme{margin:0;display:flex;flex-direction:column;align-items:center;gap:20px;padding:72px 16px;background:#e4ddd0;overflow:hidden;box-shadow:0 14px 30px rgba(0,0,0,.1)}
.scheme figcaption{margin:0;display:flex;flex-direction:column;gap:4px;text-align:center;font-size:16px;line-height:1.5;color:#3d3a33;position:relative;z-index:1;background:#e4ddd0;padding-top:18px;width:100%}
.scheme figcaption strong{font-size:20px}
.legend .scheme{min-width:240px}

/* Bands and cards */
.boxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:24px}
.box{display:flex;flex-direction:column;gap:14px;padding:28px;background:rgba(255,255,255,.12);box-shadow:0 14px 34px rgba(0,0,0,.12)}
.box h3{margin:0;font-weight:700;font-size:26px}
.box p{margin:0;font-size:17px;line-height:1.6}
.box ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.box li{position:relative;padding-left:22px;font-size:17px;line-height:1.55}
.box li::before{content:"";position:absolute;left:0;top:.55em;width:8px;height:8px;background:#ffde17}
.pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:20px;margin:8px 0 24px}
.pair .panel{padding:24px 26px;background:#ffffff;box-shadow:0 14px 30px rgba(21,21,21,.08)}
.pair .panel .kicker{display:block;font-size:14px;font-weight:700;letter-spacing:.08em;color:#1c75bc;margin-bottom:6px}
.pair .panel h3{margin:0 0 10px;font-size:22px}
.pair .panel p,.pair .panel li{font-size:17px}
.pair .panel ul{margin:0;gap:8px}
.pair .panel p:last-child,.pair .panel ul:last-child{margin-bottom:0}
.sec-h{margin:0 0 clamp(32px,4vw,48px);font-weight:700;font-size:clamp(32px,4vw,56px);line-height:1;letter-spacing:-0.02em}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:24px}
.card{display:flex;flex-direction:column;background:#ffffff;text-decoration:none;box-shadow:0 16px 38px rgba(21,21,21,.12);transition:transform 220ms ease}
.card:hover{transform:translateY(-4px)}

/* Footer */
.site-foot{background:#151515;color:#f4efe7}
.site-foot .base{padding-bottom:32px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 32px;font-size:15px;color:rgba(244,239,231,.75);border-top:1px solid rgba(244,239,231,.2);padding-top:24px}
.site-foot .base nav{display:flex;flex-wrap:wrap;gap:8px 24px}
.site-foot .base a{text-decoration:none}
.site-foot .base a:hover{text-decoration:underline}

/* Slide-ins */
.rv-ready [data-rv]{transition:opacity 900ms cubic-bezier(.2,.8,.2,1),transform 900ms cubic-bezier(.2,.8,.2,1)}
.rv-ready [data-rv="l"]:not(.in){opacity:0;transform:translateX(-160px)}
.rv-ready [data-rv="r"]:not(.in){opacity:0;transform:translateX(160px)}
.rv-ready [data-rv="u"]:not(.in){opacity:0;transform:translateY(70px)}
.rv-ready [data-rv="s"]{transition:transform 1100ms cubic-bezier(.2,.8,.2,1)}
.rv-ready [data-rv="s"]:not(.in){transform:scaleX(0)}
.rv-ready [data-rv="rise"]{transition:transform 1300ms cubic-bezier(.16,.84,.24,1),opacity 900ms ease}
.rv-ready [data-rv="rise"]:not(.in){opacity:0;transform:translateY(70%)}

@media (max-width:900px){
  .nav-desk{display:none}.nav-mob{display:flex}.toc{display:none}
  /* Phones and small tablets: the header stays at the top and the four-colour stripe at the bottom. */
  .site-head{position:sticky;top:0;z-index:30;box-shadow:0 6px 20px rgba(0,0,0,.25)}
  .site-head .bar{padding-top:12px;padding-bottom:12px}
  .site-head .band4{height:6px}
  .site-foot>.band4{position:fixed;left:0;right:0;bottom:0;z-index:30;height:8px}
  .site-foot{padding-bottom:8px}
  .crumbbar{top:90px}
  .prose h2,.prose .chapter,main section[id]{scroll-margin-top:140px}
}
@media (max-width:600px){
  .crumbbar{top:78px}
  .rv-ready [data-rv="l"]:not(.in),.rv-ready [data-rv="r"]:not(.in){transform:translateY(60px)}
  .brand svg{width:48px;height:48px}
  .brand .word{height:48px;font-size:30px}
  .nav-mob{width:96px}
}
@media (max-width:380px){.brand .word{font-size:26px}}
