/* Hamish’s notebook: shared banner styles are scoped to keep the thriller site intact. */
.hamish-page{background:#fff9e8;color:#192e58;color-scheme:light}.hamish-page main{background-image:linear-gradient(#527ca413 1px,transparent 1px);background-size:100% 32px}.hamish-page .site-header,.hamish-page footer{color:#f1e9dc;--gold:#dfb773;--paper:#f1e9dc}.hamish-page h1,.hamish-page h2,.hamish-banner h2{font-family:'Trebuchet MS',system-ui,sans-serif;font-weight:800;letter-spacing:-.045em;line-height:1.08}.hamish-page h2{font-size:clamp(30px,4vw,52px)}.hamish-page p{margin-bottom:18px}.hm-kicker{font-size:12px;font-weight:800;letter-spacing:.13em;line-height:1.5}.pencil-note{font-family:'Segoe Print','Bradley Hand',cursive;font-size:19px;line-height:1.5;transform:rotate(-2deg)}.hamish-page mark,.hamish-banner mark{color:inherit;background:#ffe14f;padding:0 .13em;box-decoration-break:clone;-webkit-box-decoration-break:clone}.hm-wrap{max-width:1180px;margin:auto;padding:74px 32px;scroll-margin-top:32px}.notebook-hero{display:grid;grid-template-columns:1.3fr .7fr;align-items:center;gap:70px;max-width:1240px;margin:auto;padding:70px 40px 90px;position:relative}.notebook-copy{position:relative}.notebook-copy:before{content:'✳';position:absolute;font-size:90px;color:#e75438;left:-36px;top:-65px;transform:rotate(15deg);opacity:.35;pointer-events:none}.notebook-copy h1{font-size:clamp(38px,5.2vw,68px);margin:25px 0}.notebook-copy h1 span{display:inline-block;text-transform:uppercase;border-bottom:5px solid #183663;transform:rotate(-1deg)}.notebook-copy>p:not(.hm-kicker):not(.pencil-note){max-width:600px}.hm-lead{font-size:clamp(22px,2.5vw,30px);font-weight:700;line-height:1.35}.hm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:30px 0 20px}.hm-button{display:inline-flex;justify-content:center;align-items:center;min-height:48px;padding:14px 23px;background:#153569;color:#fff!important;font-weight:700;font-size:15px;line-height:1.5;border:2px solid #153569;box-shadow:4px 4px 0 #df6548;text-decoration:none;transition:transform .15s}.hm-button:hover{transform:translateY(-2px);background:#244c85}.hm-secondary{display:inline-block;padding:12px 4px;font-weight:700;text-decoration:underline;text-underline-offset:5px}.hamish-page a:hover:not(.hm-button){color:#a32d19}.small-note{font-size:13px}.cover-note{margin:0;transform:rotate(3deg);position:relative}.cover-note:before{content:'';position:absolute;z-index:1;width:115px;height:33px;top:-16px;left:35%;background:#e5c789b3;transform:rotate(-8deg);box-shadow:1px 2px 3px #0001}.cover-note img{width:100%;height:auto;box-shadow:12px 18px 0 #15356912,0 16px 45px #0002}.cover-note figcaption{margin-top:20px;font-family:'Segoe Print',cursive;font-size:15px;text-align:center}.hm-about{display:grid;grid-template-columns:1fr 1fr;gap:60px;border-top:3px solid #153569;border-bottom:1px solid #15356933}.hm-about p{max-width:600px}.sketch-strip{display:grid;grid-template-columns:1fr .7fr .7fr;gap:28px;align-items:center}.sketch-strip img{width:100%;height:auto;box-shadow:4px 8px 16px #0002;transform:rotate(2deg)}.sketch-strip img:last-child{transform:rotate(-3deg)}.section-intro{max-width:700px;margin:22px 0 30px!important}.hm-inside{border-top:1px solid #15356933}.page-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:32px}.page-gallery figure{margin:0}.page-gallery a{display:block;border:1px solid #192e5833;background:white;box-shadow:7px 7px 0 #192e5810}.page-gallery img{width:100%;height:auto}.page-gallery span{display:block;padding:10px 16px;font-weight:700;background:#fff1b5}.page-gallery figcaption{font-size:14px;margin-top:14px}.diary-section{max-width:950px}.reader-tools{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.reader-tools button,.reader-tools a{border:1px solid #193768;background:#fff9e8;color:#193768;padding:12px 16px;min-height:48px;border-radius:0;font-weight:700;font-size:14px}.diary-entry{margin:15px 0;background:#fffdf5;border:1px solid #1937684d;box-shadow:5px 5px 0 #1937680b}.diary-entry summary{cursor:pointer;padding:22px 26px;font-weight:800;font-size:18px;background:#fff0a6;line-height:1.5}.diary-entry summary:focus-visible{outline:3px solid #bb3620;outline-offset:3px}.diary-text{max-width:740px;margin:auto;padding:28px 32px 12px;font-size:18px;line-height:1.85;color:#222c3c}.diary-text p{margin-bottom:1.2em}.end-note{margin-top:48px;border-top:3px dashed #19376855;padding-top:32px}.hamish-banner{width:100%;background-color:#fff4d5;background-image:linear-gradient(#42628b17 1px,transparent 1px),linear-gradient(90deg,#42628b17 1px,transparent 1px);background-size:26px 26px;color:#173665;border-top:8px solid #ffe14f;border-bottom:8px solid #ffe14f;overflow:hidden}.hamish-banner-inner{max-width:1250px;display:grid;grid-template-columns:1.4fr .6fr;align-items:center;gap:70px;margin:auto;padding:65px 45px}.hamish-banner h2{font-size:clamp(30px,3.7vw,52px);margin:16px 0 24px}.hamish-banner p{max-width:630px;margin:18px 0}.banner-cover{display:block;max-width:275px;justify-self:center;transform:rotate(5deg);box-shadow:9px 12px 0 #1736651c}.banner-cover img{width:100%;height:auto}.hamish-banner .pencil-note{font-size:16px}.hamish-page footer{background:#101719}.hamish-page :focus-visible,.hamish-banner :focus-visible{outline:3px solid #b93018;outline-offset:5px}.hamish-page .site-header :focus-visible{outline-color:#ffda93}#page-lightbox{background:#fff9e8;color:#192e58;border:0;padding:20px;width:min(95vw,850px);max-height:95dvh;overflow:auto}#page-lightbox::backdrop{background:#081429d9}.lightbox-head{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:20px}.lightbox-head h2{font-size:22px}.lightbox-head button{background:#173665;color:white;border:0;width:48px;height:48px;font-size:32px;flex-shrink:0}#enlarged-page{width:100%;height:auto}
@media(max-width:800px){.notebook-hero{gap:35px;padding:45px 25px 60px;grid-template-columns:1fr}.notebook-copy:before{display:none}.cover-note{max-width:310px;margin:15px auto 0}.hm-wrap{padding:48px 24px}.hm-about{grid-template-columns:1fr;gap:26px}.sketch-strip{grid-template-columns:1fr 1fr;gap:20px}.sketch-strip>div{grid-column:1/-1}.page-gallery{grid-template-columns:1fr;gap:35px;max-width:450px;margin-inline:auto}.hamish-banner-inner{padding:42px 24px;gap:35px;grid-template-columns:1fr}.banner-cover{max-width:220px}.diary-text{padding:24px 20px 10px;font-size:17px}.diary-entry summary{padding:18px}.hm-button{width:100%;text-align:center}.hamish-page .hm-actions{gap:12px}.notebook-copy h1{font-size:clamp(34px,8vw,55px)}}
@media(prefers-reduced-motion:reduce){.hm-button{transition:none}}
/* The homepage feature belongs to the established warm noir site. */
.hamish-banner{background:#172022;color:#f1e9dc;border-top:1px solid #dfb77355;border-bottom:0;background-image:radial-gradient(ellipse at 85% 50%,#dfb7730d,transparent 65%)}.hamish-banner-inner{max-width:1180px;padding:64px 32px;grid-template-columns:1.5fr .5fr;gap:80px}.hamish-banner h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.035em;font-size:clamp(34px,4.5vw,58px);line-height:1.08}.hamish-banner .hm-kicker{color:#dfb773;font-weight:600;font-size:11px;letter-spacing:.17em}.hamish-banner p{color:#c2b9aa}.hamish-banner .hm-button{background:#dfb773;color:#101719!important;border-color:#dfb773;box-shadow:none;border-radius:0;font-weight:600}.hamish-banner .hm-button:hover{background:#f0cc91;border-color:#f0cc91}.hamish-banner .hm-secondary{color:#f1e9dc;font-weight:400;font-size:14px}.hamish-banner .hm-secondary:hover{color:#dfb773}.hamish-banner .pencil-note{color:#dfb773b3;font-size:15px;transform:none}.hamish-banner .banner-cover{max-width:210px;transform:rotate(2deg);box-shadow:0 18px 45px #0006}.hamish-banner :focus-visible{outline-color:#ffda93}
.diary-modal{position:fixed;inset:0;width:min(920px,calc(100vw - 40px));height:min(900px,calc(100dvh - 40px));max-width:none;max-height:none;padding:0;border:1px solid #dfb77377;background:#fff9e8;color:#192e58;box-shadow:0 24px 90px #0007;color-scheme:light;overflow:hidden}.diary-modal[open]{display:flex;flex-direction:column}.diary-modal::backdrop{background:#081012e6}.diary-modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;background:#172022;color:#f1e9dc;flex-shrink:0;border-bottom:2px solid #dfb773}.diary-modal-header span{font-size:11px;letter-spacing:.1em;font-weight:600}.diary-modal-header button{background:transparent;color:#f1e9dc;border:1px solid #dfb77377;padding:9px 14px;min-height:44px;flex-shrink:0}.diary-modal-scroll{overflow:auto;overscroll-behavior:contain;flex:1;padding:32px;scrollbar-gutter:stable}.diary-modal .diary-section{padding:0;margin:0;max-width:none}.diary-modal h2{font:700 clamp(28px,4vw,42px)/1.1 'Trebuchet MS',system-ui,sans-serif;letter-spacing:-.03em}.diary-modal .hm-kicker{margin-bottom:14px}.diary-modal .section-intro{line-height:1.65}.diary-modal .diary-text p{margin:0 0 1.2em}.diary-modal .reader-tools{margin:24px 0}.diary-modal :focus-visible{outline:3px solid #bb3620;outline-offset:3px}.diary-modal-header :focus-visible{outline-color:#ffda93}.diary-modal .end-note{margin:30px 0 16px}.diary-is-open{overflow:hidden}
@media(max-width:800px){.hamish-banner-inner{grid-template-columns:1fr;gap:32px;padding:44px 24px}.hamish-banner .banner-cover{max-width:185px}.hamish-banner .hm-actions{align-items:flex-start}.hamish-banner .hm-button{width:auto}.diary-modal{width:calc(100vw - 16px);height:calc(100dvh - 16px)}.diary-modal-header{padding:12px 16px}.diary-modal-header span{max-width:180px;line-height:1.5;font-size:10px}.diary-modal-scroll{padding:24px 16px}.diary-modal .diary-text{padding-inline:18px}}
/* Book discovery and release status */
.kindle-hero-status{display:inline-block;padding:8px 14px;border:1px solid #17366566;background:#fff0a6;font-size:14px;font-weight:700;line-height:1.5}.hamish-banner .kindle-banner-status{display:inline-block;margin:10px 0 0;padding:5px 10px;border:1px solid #dfb77355;color:#dfb773;font-size:12px;letter-spacing:.03em}.hm-reader-pitch{border-bottom:1px solid #17366522}.hm-selling-points{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:34px}.hm-selling-points article{border-top:3px solid #df6548;padding-top:18px}.hamish-page .hm-selling-points h3{font:700 22px/1.3 'Trebuchet MS',system-ui,sans-serif;margin-bottom:16px}.hm-kindle-panel{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:55px;border-top:1px solid #17366533}.hm-kindle-panel>div>p{margin-top:22px}.kindle-card{border:2px solid #173665;background:#fffdf5;padding:30px;box-shadow:6px 6px 0 #17366513}.kindle-status{display:inline-block;background:#ffe14f;color:#173665;padding:5px 10px;font-size:11px;letter-spacing:.14em;font-weight:800}.hamish-page .kindle-card h3{font:700 28px/1.2 'Trebuchet MS',system-ui,sans-serif;margin-top:18px}.kindle-card .hm-button{margin-top:4px}.excerpt-kindle-note{font-size:15px;line-height:1.65;margin-top:18px}
/* Override the shared footer’s inset width and unpadded flex children. */
.hamish-page .hm-footer{width:100%;max-width:none;margin:0;padding:38px 24px;background:#101719;color:#c2b9aa;display:block}.hm-footer-inner{max-width:1116px;margin:0 auto;display:grid;grid-template-columns:1fr auto;align-items:center;gap:24px 40px}.hamish-page .hm-footer .brand{color:#f1e9dc;font-size:12px;letter-spacing:.13em;min-width:0}.hm-footer .brand-sub{font-size:8px}.hm-footer nav{display:flex;gap:18px;flex-wrap:wrap;justify-content:flex-end;font-size:12px}.hm-footer nav a{min-height:44px}.hamish-page .hm-footer p{margin:0;font-size:12px;grid-column:1/-1;border-top:1px solid #ffffff26;padding-top:20px}.hamish-page .hm-footer a:hover{color:#dfb773}.hamish-page .hm-footer :focus-visible{outline-color:#ffda93}
@media(max-width:800px){.hm-selling-points{grid-template-columns:1fr;gap:24px}.hm-kindle-panel{grid-template-columns:1fr;gap:25px}.kindle-card{padding:24px}.hm-footer-inner{grid-template-columns:1fr;gap:18px}.hm-footer nav{justify-content:flex-start;gap:4px 22px}.hamish-page .hm-footer{padding:30px 24px}.hamish-page .hm-footer .brand{font-size:11px}.hm-footer .monogram{font-size:24px}}

/* Illustrated first-third sample. */
.diary-illustration{display:block;width:100%;max-width:540px;height:auto;margin:28px auto;border:1px solid #19376833}.diary-part-heading{font:800 24px/1.4 'Trebuchet MS',system-ui,sans-serif;margin:36px 0 20px}.diary-modal .diary-text h3{font-size:21px;line-height:1.5}

/* Supplied PDF preview replaces previous excerpts. */
.diary-pdf-modal .diary-modal-header h2{font-size:clamp(16px,2.8vw,23px);line-height:1.3;margin:0;color:#f1e9dc}.diary-pdf-toolbar{padding:14px 24px;display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;flex-shrink:0}.diary-pdf-toolbar p{margin:0!important;font-size:14px}.diary-pdf-toolbar a{font-weight:700;text-decoration:underline}.diary-pdf-toolbar .small-note{width:100%;font-size:12px}.diary-pdf-frame{display:block;flex:1;min-height:0;width:100%;border:0;background:#fff}.pdf-direct-link{margin-top:24px}@media(max-width:800px){.diary-pdf-toolbar{padding:12px 16px}}
