/*
Theme Name: Mary
Description: Mary Glickman original design, with editable content and book pages.
Version: 1.0.0
Text Domain: mary
*/

:root{
  --ink:#12232A;         /* tidal ink */
  --river:#1C3A3D;       /* marsh channel */
  --spartina:#D6A94A;    /* marsh-grass gold */
  --spartina-soft:#E9CF8F;
  --oyster:#ECE9E1;      /* oyster shell */
  --oyster-deep:#DCD7CB;
  --moss:#7C8C6C;        /* spanish moss */
  --mud:#3B2F24;         /* pluff mud */
  --white:#FBFAF7;
  --display:"Libre Caslon Display", "Iowan Old Style", Georgia, serif;
  --serif:"Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --sans:"Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease:cubic-bezier(.22,.8,.24,1);
  box-sizing:border-box;
}
*,*::before,*::after{box-sizing:inherit;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--ink);color:var(--oyster);font-family:var(--serif);font-size:1.0625rem;line-height:1.7;overflow-x:hidden;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
:focus-visible{outline:2px solid var(--spartina);outline-offset:4px;border-radius:4px}
.wrap{width:min(1240px,92vw);margin-inline:auto}
.btn{display:inline-flex;align-items:center;gap:.6rem;font-family:var(--sans);font-weight:600;font-size:.95rem;letter-spacing:.01em;text-decoration:none;padding:.95rem 1.6rem;border-radius:999px;border:1px solid transparent;cursor:pointer;transition:transform .35s var(--ease),background .35s var(--ease),color .35s var(--ease),border-color .35s var(--ease);will-change:transform}
.btn:hover{transform:translateY(-3px)}
.btn-gold{background:var(--spartina);color:var(--ink)}
.btn-gold:hover{background:var(--spartina-soft)}
.btn-line{border-color:rgba(236,233,225,.35);color:var(--oyster)}
.btn-line:hover{border-color:var(--spartina);color:var(--spartina)}
.btn-dark{background:var(--ink);color:var(--oyster)}
.btn-dark:hover{background:var(--river)}

/* ---------- loader ---------- */
.loader{position:fixed;inset:0;z-index:100;background:var(--ink);display:grid;place-items:center}
.loader svg{width:120px;overflow:visible}
.loader path{fill:none;stroke:var(--spartina);stroke-width:1.5;stroke-dasharray:400;stroke-dashoffset:400;animation:draw 1.4s var(--ease) forwards}
@keyframes draw{to{stroke-dashoffset:0}}

/* ---------- nav ---------- */
.nav{position:fixed;top:0;left:0;right:0;z-index:50;padding-top:env(safe-area-inset-top,0px);transition:background .5s var(--ease),box-shadow .5s var(--ease),backdrop-filter .5s}
.nav-inner{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:2rem;min-height:78px}
.nav.scrolled{background:rgba(18,35,42,.78);backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%);box-shadow:0 1px 0 rgba(214,169,74,.18)}
.brand{font-family:var(--display);font-size:1.45rem;line-height:1.1;text-decoration:none;letter-spacing:.01em;white-space:nowrap;display:flex;flex-direction:column}
.brand small{font-family:var(--sans);font-size:.7rem;letter-spacing:.08em;color:var(--spartina);margin-top:2px}
.nav-right{display:flex;align-items:center;justify-content:flex-end;gap:2.2rem;flex-wrap:nowrap;min-width:0}
.nav-links{display:flex;align-items:center;gap:clamp(1.1rem,2vw,2rem);list-style:none;font-family:var(--sans);font-size:.92rem;margin:0;white-space:nowrap}
.nav-links a{text-decoration:none;opacity:.8;position:relative;transition:opacity .3s;display:inline-block;padding:.4rem 0}
.nav-links a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--spartina);transform:scaleX(0);transform-origin:left;transition:transform .4s var(--ease)}
.nav-links a:hover{opacity:1}
.nav-links a:hover::after{transform:scaleX(1)}
.nav .nav-cta{padding:.7rem 1.25rem;font-size:.85rem;white-space:nowrap;flex-shrink:0;line-height:1}
.mobile-menu .btn:hover{color:var(--ink)}
.mobile-menu .btn{margin-top:2rem;align-self:flex-start;font-family:var(--sans);font-size:1rem;line-height:1}
.burger{display:none;background:none;border:0;width:44px;height:44px;cursor:pointer;position:relative;flex-shrink:0;z-index:2}
.burger span{position:absolute;left:10px;right:10px;height:1.5px;background:var(--oyster);transition:transform .4s var(--ease),opacity .3s}
.burger span:nth-child(1){top:16px}.burger span:nth-child(2){top:22px}.burger span:nth-child(3){top:28px}
.menu-open .burger span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.menu-open .burger span:nth-child(2){opacity:0}
.menu-open .burger span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.mobile-menu{position:fixed;inset:0;z-index:45;background:var(--river);display:flex;flex-direction:column;justify-content:center;padding:0 8vw;clip-path:circle(0% at calc(100% - 40px) 40px);transition:clip-path .7s var(--ease)}
.menu-open .mobile-menu{clip-path:circle(150% at calc(100% - 40px) 40px)}
.mobile-menu a{font-family:var(--display);font-size:clamp(2.2rem,9vw,3.4rem);text-decoration:none;line-height:1.35}
.mobile-menu a:hover{color:var(--spartina)}

/* ---------- hero ---------- */
.hero{position:relative;min-height:100svh;display:flex;align-items:center;overflow:hidden;padding:clamp(96px,13vh,120px) 0 clamp(60px,9vh,80px);isolation:isolate}
.hero-sky{position:absolute;inset:0;z-index:-3;background:
  radial-gradient(120% 70% at 78% 18%,rgba(214,169,74,.22),transparent 60%),
  radial-gradient(90% 60% at 10% 100%,rgba(124,140,108,.25),transparent 70%),
  linear-gradient(180deg,#12232A 0%,#173034 55%,#1C3A3D 100%)}
.sun{position:absolute;z-index:-2;width:38vmin;height:38vmin;right:14%;top:12%;border-radius:50%;background:radial-gradient(circle,rgba(233,207,143,.55),rgba(214,169,74,.12) 55%,transparent 70%);filter:blur(4px)}
.marsh{position:absolute;left:0;right:0;bottom:0;z-index:-1;pointer-events:none}
.marsh svg{width:100%;height:auto;display:block}
.tide{position:absolute;left:-50%;width:200%;bottom:0;height:120px;z-index:-1;opacity:.5}
.tide path{fill:none;stroke:var(--spartina);stroke-width:1;opacity:.35}
.tide.t1{animation:tide 26s linear infinite}
.tide.t2{animation:tide 38s linear infinite reverse;bottom:24px;opacity:.3}
@keyframes tide{from{transform:translateX(0)}to{transform:translateX(25%)}}

.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(2rem,5vw,5rem);align-items:center}
.hero-kicker{font-family:var(--sans);font-size:.95rem;color:var(--spartina);margin-bottom:1.4rem;display:flex;align-items:center;gap:.8rem}
.hero-kicker::before{content:"";width:42px;height:1px;background:var(--spartina)}
.hero h1{font-family:var(--display);font-weight:400;font-size:clamp(3.6rem,10.5vw,9.4rem);line-height:.88;letter-spacing:-.02em;color:var(--white)}
.hero h1 .line{display:block;overflow:hidden;padding-bottom:.08em}
.hero h1 .ch{display:inline-block;will-change:transform}
.hero h1 .indent{padding-left:.9em}
.hero-lede{max-width:34ch;font-size:clamp(1.1rem,1.6vw,1.3rem);line-height:1.6;margin:clamp(1.2rem,2.6vh,2rem) 0 clamp(1.3rem,3vh,2.4rem);color:rgba(236,233,225,.86)}
.hero-cta{display:flex;flex-wrap:wrap;gap:1rem}

.stage{position:relative;perspective:1400px;aspect-ratio:4/5;max-width:470px;justify-self:end;width:100%}
.stage-inner{position:absolute;inset:0;transform-style:preserve-3d;will-change:transform;transition:transform .6s var(--ease)}
.portrait-frame{position:absolute;inset:0 8% 6% 0;border-radius:999px 999px 18px 18px;overflow:hidden;box-shadow:0 40px 80px -20px rgba(0,0,0,.55);transform:translateZ(0)}
.portrait-frame img{width:100%;height:100%;object-fit:cover;object-position:50% 25%;transform:scale(1.12)}
.portrait-frame::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(233,207,143,.35)}
.float-cover{position:absolute;width:44%;right:-6%;bottom:-2%;transform:translateZ(90px) rotate(6deg);border-radius:4px;box-shadow:0 30px 60px -15px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.08);overflow:hidden;background:var(--river)}
.float-cover img{aspect-ratio:2/3;object-fit:cover;width:100%}
.float-tag{position:absolute;left:-8%;top:14%;transform:translateZ(60px);background:rgba(236,233,225,.14);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(236,233,225,.25);border-radius:14px;padding:.9rem 1.1rem;font-family:var(--sans);font-size:.82rem;line-height:1.35;color:var(--white);max-width:190px;box-shadow:0 20px 40px -12px rgba(0,0,0,.4)}
.float-tag strong{display:block;font-family:var(--display);font-weight:400;font-size:1.5rem;color:var(--spartina-soft)}
.bob{animation:bob 7s ease-in-out infinite}
.bob-2{animation:bob 9s ease-in-out -3s infinite}
@keyframes bob{0%,100%{translate:0 0}50%{translate:0 -14px}}
.scroll-cue{position:absolute;left:50%;bottom:28px;translate:-50% 0;font-family:var(--sans);font-size:.75rem;letter-spacing:.06em;color:rgba(236,233,225,.6);display:flex;flex-direction:column;align-items:center;gap:.6rem}
.scroll-cue i{width:1px;height:46px;background:linear-gradient(var(--spartina),transparent);animation:cue 2.2s var(--ease) infinite;transform-origin:top}
@keyframes cue{0%{transform:scaleY(0)}50%{transform:scaleY(1)}100%{transform:scaleY(1);opacity:0}}

/* ---------- honors marquee ---------- */
.honors{background:var(--spartina);color:var(--ink);overflow:hidden;padding:1.1rem 0;border-block:1px solid rgba(18,35,42,.15)}
.marquee{display:flex;width:max-content;animation:marquee 40s linear infinite}
.marquee span{font-family:var(--display);font-size:clamp(1.15rem,2vw,1.5rem);white-space:nowrap;padding:0 1.6rem;display:flex;align-items:center;gap:3.2rem}
.marquee span::after{content:"";width:22px;height:10px;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 20'%3E%3Cpath d='M0 10 Q5.5 0 11 10 T22 10 T33 10 T44 10' fill='none' stroke='%2312232A' stroke-width='2.4'/%3E%3C/svg%3E")}
@keyframes marquee{to{transform:translateX(-50%)}}

/* ---------- featured ---------- */
.featured{position:relative;background:var(--oyster);color:var(--ink);padding:clamp(5rem,11vw,9rem) 0;overflow:hidden}
.featured-bg{position:absolute;inset:0;background:url("https://images.squarespace-cdn.com/content/v1/647764d9dfd6826fd7277600/a2715296-5f00-4277-bee9-20a1b45e7f35/Backgrounds_7_marsh_river_light.jpg") center/cover no-repeat;opacity:.22;will-change:transform;transform:scale(1.15)}
.featured-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--oyster) 30%,rgba(236,233,225,.4))}
.featured-grid{position:relative;display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(2.5rem,7vw,7rem);align-items:center}
.book3d{perspective:1600px;justify-self:center;width:min(360px,80%)}
.book3d-inner{position:relative;transform-style:preserve-3d;transform:rotateY(-24deg) rotateX(4deg);transition:transform .9s var(--ease);will-change:transform}
.book3d:hover .book3d-inner{transform:rotateY(-6deg) rotateX(0)}
.book3d-inner img,.book3d-inner .cover-fallback{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:2px 5px 5px 2px;box-shadow:30px 40px 70px -20px rgba(18,35,42,.55)}
.book3d-inner::before{content:"";position:absolute;top:1%;bottom:1%;right:-14px;width:16px;background:repeating-linear-gradient(90deg,#f4f1e8 0 2px,#d9d3c4 2px 3px);transform:rotateY(90deg) translateZ(-1px);transform-origin:left}
.book3d-inner::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.25) 0 2%,rgba(255,255,255,.18) 3%,transparent 8%);border-radius:inherit;pointer-events:none}
.sec-label{font-family:var(--sans);font-size:.95rem;color:var(--moss);margin-bottom:1rem;display:flex;align-items:center;gap:.8rem}
.sec-label::before{content:"";width:42px;height:1px;background:currentColor}
.featured h2{font-family:var(--display);font-weight:400;font-size:clamp(2.8rem,7vw,5.8rem);line-height:.95;letter-spacing:-.015em;margin-bottom:1.6rem}
.featured .year{font-family:var(--sans);font-size:.9rem;color:var(--mud);opacity:.7;margin-bottom:1.6rem}
.featured p{max-width:58ch;margin-bottom:1.1rem}
.featured blockquote{margin:2rem 0;padding-left:1.4rem;border-left:2px solid var(--spartina);font-style:italic;font-size:1.25rem;line-height:1.5}
.featured blockquote cite{display:block;font-style:normal;font-family:var(--sans);font-size:.85rem;margin-top:.6rem;color:var(--moss)}
.buy-row{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:2rem}
.buy-row .btn-line{border-color:rgba(18,35,42,.25);color:var(--ink)}
.buy-row .btn-line:hover{border-color:var(--ink);background:var(--ink);color:var(--oyster)}

/* ---------- river of novels ---------- */
.river{position:relative;background:var(--river);overflow:hidden}
.river-head{padding:clamp(5rem,10vw,8rem) 0 3rem}
.river-head h2{font-family:var(--display);font-weight:400;font-size:clamp(2.6rem,6vw,5rem);line-height:1;max-width:14ch;color:var(--white)}
.river-head p{max-width:46ch;margin-top:1.2rem;color:rgba(236,233,225,.78)}
.river-head .sec-label{color:var(--spartina)}
.track-wrap{position:relative;padding-bottom:clamp(4rem,8vw,7rem)}
.track-line{display:none}
.track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(2.5rem,4vw,4rem) clamp(2rem,3.5vw,3.5rem);width:min(1240px,92vw);margin-inline:auto;padding:0}
.novel{width:100%;position:relative;perspective:1000px}
.novel-cover{position:relative;border-radius:3px;overflow:hidden;box-shadow:0 30px 60px -20px rgba(0,0,0,.6);transition:transform .6s var(--ease),box-shadow .6s var(--ease);transform-style:preserve-3d;background:var(--ink)}
.novel:hover .novel-cover{transform:translateY(-12px) rotateY(-8deg) rotateX(3deg);box-shadow:0 50px 80px -25px rgba(0,0,0,.75)}
.novel-cover img,.novel-cover .cover-fallback{width:100%;aspect-ratio:2/3;object-fit:cover}
.novel-year{font-family:var(--display);font-size:3.2rem;line-height:1;color:var(--spartina);margin:1.6rem 0 .4rem;display:flex;align-items:center;gap:.8rem}
.novel-year::after{content:"";flex:1;height:1px;background:rgba(214,169,74,.35)}
.novel h3{font-family:var(--display);font-weight:400;font-size:1.7rem;line-height:1.1;color:var(--white);margin-bottom:.6rem}
.novel p{font-size:.98rem;line-height:1.6;color:rgba(236,233,225,.78)}
.novel .honor{display:inline-block;margin-top:.9rem;font-family:var(--sans);font-size:.78rem;color:var(--ink);background:var(--spartina-soft);padding:.3rem .7rem;border-radius:999px}
.novel a.more{display:inline-block;margin-top:1rem;font-family:var(--sans);font-size:.88rem;color:var(--spartina);text-decoration:none;border-bottom:1px solid rgba(214,169,74,.4);padding-bottom:2px;transition:border-color .3s}
.novel a.more:hover{border-color:var(--spartina)}
.novel.bob-a .novel-cover{animation:bob 8s ease-in-out infinite}
.novel.bob-b .novel-cover{animation:bob 10s ease-in-out -4s infinite}
.cover-fallback{display:flex;flex-direction:column;justify-content:space-between;padding:1.6rem 1.3rem;background:linear-gradient(160deg,var(--river),var(--ink));color:var(--spartina-soft);font-family:var(--display);font-size:1.6rem;line-height:1.1}
.cover-fallback small{font-family:var(--sans);font-size:.75rem;color:var(--oyster)}

/* ---------- quote ---------- */
.conroy{background:var(--ink);padding:clamp(6rem,14vw,11rem) 0;text-align:center;position:relative;overflow:hidden}
.conroy q{display:block;font-family:var(--display);font-size:clamp(3rem,9vw,8rem);line-height:1;color:var(--white);quotes:"\201C" "\201D"}
.conroy q .w{display:inline-block;opacity:.12;transition:none}
.conroy cite{display:block;margin-top:2.2rem;font-family:var(--sans);font-style:normal;color:var(--spartina);font-size:1rem}
.conroy cite span{display:block;color:rgba(236,233,225,.6);font-size:.88rem;margin-top:.25rem}
.moss-strand{position:absolute;top:0;width:2px;background:linear-gradient(var(--moss),transparent);opacity:.35;transform-origin:top;animation:sway 6s ease-in-out infinite}
@keyframes sway{0%,100%{rotate:-3deg}50%{rotate:3deg}}

/* ---------- about ---------- */
.about{background:var(--oyster);color:var(--ink);padding:clamp(5rem,11vw,9rem) 0}
.about-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2.5rem,7vw,7rem);align-items:center}
.about-photo{position:relative}
.about-photo .ph{border-radius:18px 18px 999px 999px;overflow:hidden;aspect-ratio:4/5;box-shadow:0 40px 80px -30px rgba(18,35,42,.45)}
.about-photo img{width:100%;height:120%;object-fit:cover;object-position:50% 20%;will-change:transform}
.about-photo .stamp{position:absolute;right:-4%;top:6%;width:132px;height:132px;animation:spin 24s linear infinite}
.about-photo .stamp text{font-family:var(--sans);font-size:9.6px;letter-spacing:.14em;fill:var(--ink)}
@keyframes spin{to{rotate:360deg}}
.about h2{font-family:var(--display);font-weight:400;font-size:clamp(2.6rem,6vw,4.8rem);line-height:1;margin-bottom:1.8rem}
.about p{max-width:58ch;margin-bottom:1.15rem}
.about .drop::first-letter{font-family:var(--display);float:left;font-size:4.4rem;line-height:.8;padding:.3rem .6rem 0 0;color:var(--mud)}
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;margin-top:2.6rem;padding-top:2rem;border-top:1px solid rgba(18,35,42,.15)}
.facts dt{font-family:var(--display);font-size:clamp(2.2rem,4vw,3rem);line-height:1;color:var(--ink)}
.facts dd{font-family:var(--sans);font-size:.85rem;color:var(--moss);margin-top:.4rem;line-height:1.4}

/* ---------- praise ---------- */
.praise{background:var(--oyster-deep);color:var(--ink);padding:clamp(5rem,10vw,8rem) 0;overflow:hidden}
.praise-head{display:flex;justify-content:space-between;align-items:end;gap:2rem;margin-bottom:3rem;flex-wrap:wrap}
.praise h2{font-family:var(--display);font-weight:400;font-size:clamp(2.4rem,5vw,4.2rem);line-height:1}
.praise-ctrl{display:flex;gap:.6rem}
.praise-ctrl button{width:52px;height:52px;border-radius:50%;border:1px solid rgba(18,35,42,.3);background:transparent;cursor:pointer;display:grid;place-items:center;transition:background .35s var(--ease),color .35s var(--ease),transform .35s var(--ease);color:var(--ink)}
.praise-ctrl button:hover{background:var(--ink);color:var(--oyster);transform:translateY(-2px)}
.praise-ctrl svg{width:18px;height:18px}
.slides{position:relative;min-height:300px}
.slide{position:absolute;inset:0;display:grid;grid-template-columns:auto 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:start;opacity:0;visibility:hidden}
.slide.active{position:relative;visibility:visible}
.slide .mark{font-family:var(--display);font-size:clamp(6rem,12vw,10rem);line-height:.7;color:var(--spartina)}
.slide p{font-family:var(--display);font-size:clamp(1.7rem,3.4vw,2.9rem);line-height:1.2;max-width:24ch}
.slide footer{margin-top:1.6rem;font-family:var(--sans);font-size:.95rem}
.slide footer span{display:block;color:var(--moss);font-size:.85rem}
.dots{display:flex;gap:.5rem;margin-top:2.4rem}
.dots button{width:28px;height:3px;border:0;background:rgba(18,35,42,.2);cursor:pointer;border-radius:2px;transition:background .4s,width .4s var(--ease)}
.dots button.on{background:var(--ink);width:56px}

/* ---------- press ---------- */
.press{background:var(--ink);padding:clamp(5rem,10vw,8rem) 0}
.press h2{font-family:var(--display);font-weight:400;font-size:clamp(2.4rem,5vw,4.2rem);line-height:1;color:var(--white);margin-bottom:.8rem}
.press .intro{color:rgba(236,233,225,.7);max-width:50ch;margin-bottom:3rem}
.press .sec-label{color:var(--spartina)}
.press-list{list-style:none;border-top:1px solid rgba(236,233,225,.14)}
.press-list a{display:grid;grid-template-columns:100px 1fr auto;gap:1.5rem;align-items:center;padding:1.6rem .4rem;border-bottom:1px solid rgba(236,233,225,.14);text-decoration:none;position:relative;overflow:hidden;transition:padding .5s var(--ease)}
.press-list a::before{content:"";position:absolute;inset:0;background:var(--river);transform:scaleY(0);transform-origin:bottom;transition:transform .5s var(--ease);z-index:0}
.press-list a:hover{padding-left:1.4rem;padding-right:1.4rem}
.press-list a:hover::before{transform:scaleY(1)}
.press-list a>*{position:relative;z-index:1}
.press-list .yr{font-family:var(--sans);font-size:.85rem;color:var(--spartina)}
.press-list .ttl{font-family:var(--display);font-size:clamp(1.25rem,2.2vw,1.75rem);line-height:1.2;color:var(--white)}
.press-list .src{font-family:var(--sans);font-size:.85rem;color:rgba(236,233,225,.6);display:block;margin-top:.3rem}
.press-list .arrow{width:44px;height:44px;border-radius:50%;border:1px solid rgba(214,169,74,.4);display:grid;place-items:center;transition:transform .5s var(--ease),background .4s}
.press-list a:hover .arrow{transform:rotate(-45deg);background:var(--spartina)}
.press-list a:hover .arrow svg{stroke:var(--ink)}
.press-list .arrow svg{width:16px;height:16px;stroke:var(--spartina);fill:none;stroke-width:1.6}

/* ---------- contact ---------- */
.contact{position:relative;background:linear-gradient(180deg,var(--river),var(--ink));padding:clamp(5rem,11vw,9rem) 0;overflow:hidden}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2.5rem,6vw,6rem);align-items:start}
.contact h2{font-family:var(--display);font-weight:400;font-size:clamp(2.6rem,6vw,5rem);line-height:1;color:var(--white);margin-bottom:1.4rem}
.contact .sec-label{color:var(--spartina)}
.contact p{color:rgba(236,233,225,.8);max-width:44ch;margin-bottom:1rem}
.contact-links{margin-top:2rem;display:flex;flex-direction:column;gap:.8rem;font-family:var(--sans)}
.contact-links a{text-decoration:none;display:inline-flex;align-items:center;gap:.8rem;color:var(--oyster);transition:color .3s}
.contact-links a:hover{color:var(--spartina)}
.contact-links svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}
.glass{background:rgba(236,233,225,.07);border:1px solid rgba(236,233,225,.16);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-radius:24px;padding:clamp(1.6rem,4vw,2.6rem);box-shadow:0 40px 80px -30px rgba(0,0,0,.5)}
.field{margin-bottom:1.2rem}
.field label{display:block;font-family:var(--sans);font-size:.85rem;margin-bottom:.45rem;color:rgba(236,233,225,.8)}
.field input,.field select,.field textarea{width:100%;font:inherit;font-family:var(--sans);font-size:1rem;color:var(--white);background:rgba(18,35,42,.55);border:1px solid rgba(236,233,225,.18);border-radius:12px;padding:.9rem 1rem;transition:border-color .35s var(--ease),background .35s var(--ease)}
.field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23D6A94A' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center;background-size:12px}
.field select option{color:#12232A}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--spartina);background:rgba(18,35,42,.8)}
.field textarea{min-height:130px;resize:vertical}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.form-note{font-family:var(--sans);font-size:.88rem;margin-top:1rem;min-height:1.3em;color:var(--spartina-soft)}
.contact form .btn{width:100%;justify-content:center}

/* ---------- footer ---------- */
footer.site{background:var(--ink);border-top:1px solid rgba(214,169,74,.18);padding:3.5rem 0 calc(2.5rem + env(safe-area-inset-bottom,0px))}
.foot{display:flex;justify-content:space-between;align-items:end;gap:2rem;flex-wrap:wrap}
.foot .big{font-family:var(--display);font-size:clamp(2.6rem,8vw,6rem);line-height:.9;color:var(--white)}
.foot nav{display:flex;gap:1.6rem;flex-wrap:wrap;font-family:var(--sans);font-size:.9rem}
.foot nav a{text-decoration:none;opacity:.75}
.foot nav a:hover{opacity:1;color:var(--spartina)}
.copy{font-family:var(--sans);font-size:.8rem;opacity:.5;margin-top:2.4rem}

/* ---------- reveal base ---------- */
.rv{opacity:0;transform:translateY(40px) rotate(1deg)}
.no-js .rv,.reduced .rv{opacity:1;transform:none}

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .nav-links,.nav .nav-cta{display:none}
  .burger{display:block}
  .nav-inner{min-height:68px}
  .hero-grid,.featured-grid,.about-grid,.contact-grid{grid-template-columns:1fr}
  .stage{justify-self:center;max-width:380px;margin-top:1rem}
  .hero{padding-top:110px}
  .book3d{order:-1}
  .about-photo{max-width:440px}
  .track{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:620px){
  .hero h1 .indent{padding-left:.4em}
  .float-tag{left:-2%;top:6%;max-width:150px;font-size:.75rem}
  .float-tag strong{font-size:1.2rem}
  .facts{grid-template-columns:1fr 1fr}
  .row2{grid-template-columns:1fr}
  .slide{grid-template-columns:1fr;gap:.4rem}
  .slide .mark{font-size:5rem}
  .press-list a{grid-template-columns:1fr auto;gap:1rem}
  .press-list .yr{grid-column:1/-1}
  .track{grid-template-columns:1fr;max-width:340px}
  .about-photo .stamp{width:100px;height:100px;right:0}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .rv{opacity:1;transform:none}
  .conroy q .w{opacity:1}
}

/* WordPress inner pages reuse the original sections. */
.mary-inner main{padding-top:78px}.mary-inner .rv{opacity:1;transform:none}.mary-inner .slide.active{opacity:1}body.admin-bar .nav{top:32px}@media(max-width:782px){body.admin-bar .nav{top:46px}}

/* Client update: use the existing palette and typography for the new direction. */
.hero-quote{margin:clamp(1rem,2.2vh,1.6rem) 0 clamp(1.3rem,3vh,2.4rem);padding-left:1.2rem;border-left:2px solid var(--spartina);max-width:34ch}
.hero-quote p{font-family:var(--display);font-size:clamp(1.5rem,2.3vw,2rem);line-height:1.2;color:var(--white)}
.hero-quote cite{display:block;font-family:var(--sans);font-size:.8rem;font-style:normal;color:var(--spartina);margin-top:.5rem}
.hero-quote cite span{display:block;font-size:.72rem;color:rgba(236,233,225,.7);margin-top:.2rem}
.forthcoming-premise blockquote{font-family:var(--display);font-style:normal;font-size:clamp(2.2rem,4vw,3.5rem);line-height:1.13;margin:0;padding-left:1.4rem;border-left:2px solid var(--spartina)}
.forthcoming .forthcoming-note{font-family:var(--sans);font-size:.85rem;color:var(--mud);opacity:.75;margin-top:1.4rem}
.portrait-frame img{object-position:50% 35%;transform:scale(1)}
.about-photo img{height:100%;object-position:50% 35%}
.community-credit{font-family:var(--sans);font-size:.9rem;border-left:2px solid var(--spartina);padding-left:1rem}
.novel-retailers{display:flex;flex-wrap:wrap;gap:.6rem 1rem;margin-top:1rem}
.novel-retailers a.more{margin-top:0}
/* The novels grid is the same on the homepage and the novels page; see .track above. */
.mary-inner .river .track-wrap{overflow:visible}

/* Reviews remain readable without scripts or timed transitions. */
.review-grid,.trailer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:2rem;margin-top:2rem}
.review-card{margin:0;padding:1.8rem;border:1px solid rgba(18,35,42,.18);border-radius:4px}
.review-card .mark{font-family:var(--display);font-size:4rem;line-height:1;color:var(--spartina)}
.review-card p{font-family:var(--display);font-size:1.65rem;line-height:1.35}
.review-card footer{margin-top:1.5rem;font-family:var(--sans);font-size:.95rem}
.review-card footer span{display:block;margin-top:.35rem;color:var(--moss);font-size:.85rem}
/* ---------- media: videos load only when asked for ---------- */
.media .trailer-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));max-width:1000px;gap:2.5rem}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.video-card{margin:0}
.video-frame{position:relative;aspect-ratio:16/9;border-radius:4px;overflow:hidden;background:var(--river)}
.video-frame iframe,.video-play{position:absolute;inset:0;width:100%;height:100%;border:0}
.video-play{padding:0;background:none;cursor:pointer;display:block}
.video-play img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s var(--ease),opacity .4s var(--ease)}
.video-play:hover img,.video-play:focus-visible img{transform:scale(1.05);opacity:.85}
.video-play-icon{position:absolute;left:50%;top:50%;translate:-50% -50%;width:66px;height:66px;display:grid;place-items:center;border-radius:50%;background:rgba(18,35,42,.62);border:1px solid rgba(236,233,225,.5);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:background .4s var(--ease),scale .4s var(--ease)}
.video-play-icon svg{width:26px;height:26px;fill:var(--white);margin-left:3px}
.video-play:hover .video-play-icon,.video-play:focus-visible .video-play-icon{background:var(--gold);scale:1.08}
.video-play:hover .video-play-icon svg,.video-play:focus-visible .video-play-icon svg{fill:var(--ink)}
.video-play:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
.video-title{font-family:var(--display);font-weight:400;font-size:1.35rem;line-height:1.25;color:var(--white);margin-top:.9rem}
.video-note{font-family:var(--sans);font-size:.85rem;margin-top:.35rem}
.video-note a{color:var(--spartina);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .3s var(--ease)}
.video-note a:hover,.video-note a:focus-visible{border-bottom-color:currentColor}
@media (prefers-reduced-motion:reduce){.video-play img,.video-play-icon{transition:none}.video-play:hover img,.video-play:focus-visible img{transform:none}}
