/* edwardwestcombe.com: English countryside. Hedgerow green, chalk cream, honey stone, brick red,
   with the covers' dusk sky in the hero. Artwork: assets/downs.svg (skyline), sprig.svg (heading
   ornament), fingerpost.svg (footer). */
:root{
 --hedge:#2f3d2c; --hedge-2:#3e5038; --moss:#5b6b3a; --sage:#8a9a6e;
 --chalk:#f7f2e6; --card:#fffdf7; --stone:#ede4cf; --honey:#c9a46a; --honey-l:#e6c793;
 --rule:#d6c9ac; --brick:#8e3b24; --brick-d:#6c2a18;
 --ink:#2b2a25; --muted:#5d584c; --dusk:#26344a;
 --serif:"EB Garamond",Garamond,Georgia,"Times New Roman",serif;
 --fell:"IM Fell English","EB Garamond",Georgia,serif;
 --fell-sc:"IM Fell English SC","IM Fell English","EB Garamond",Georgia,serif;
 --wrap:1120px;
 --grain:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42 0 0 0 0 .35 0 0 0 0 .22 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--chalk) var(--grain);color:var(--ink);font:400 1.2rem/1.62 var(--serif)}
img{max-width:100%;height:auto;display:block}
a{color:var(--brick);text-decoration-thickness:1px;text-underline-offset:.15em}
a:hover{color:var(--brick-d)}
h1,h2,h3{font-family:var(--fell);font-weight:400;line-height:1.15;color:var(--hedge);margin:0 0 .5em}
h1{font-size:clamp(2.1rem,4.6vw,3.2rem)}
h2{font-size:clamp(1.6rem,3vw,2.1rem);margin-top:1.6em}
h3{font-size:1.35rem;margin-top:1.4em}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1.25rem}
.narrow{max-width:780px}
.center{text-align:center}
.small{font-size:.95rem;color:var(--muted)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:.5em 1em;z-index:9}
.skip:focus{left:1rem}
.eyebrow{font-family:var(--fell-sc);font-size:1rem;letter-spacing:.12em;color:var(--brick);margin:0 0 .3em}
.h-kicker{display:block}

/* leaf-sprig ornament under section headings */
section.wrap>h2::after,.band h2::after,.page-head h1::after,.signup-band h2::after{
 content:"";display:block;width:120px;height:16px;margin:.35em 0 0;background:url("sprig.svg") no-repeat}
.signup-band h2::after{margin:.35em auto 0}

/* header */
.site-head{background:var(--hedge) var(--grain);color:var(--chalk);position:sticky;top:0;z-index:5;border-bottom:3px double var(--honey)}
.head-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:66px;flex-wrap:wrap}
.wordmark{font-family:var(--fell-sc);color:var(--chalk);text-decoration:none;letter-spacing:.14em;font-size:1.35rem}
.site-head nav{display:flex;gap:1.2rem;flex-wrap:wrap}
.site-head nav a{color:var(--chalk);text-decoration:none;font-size:1.1rem;padding:.2em 0;border-bottom:2px solid transparent}
.site-head nav a:hover,.site-head nav a[aria-current]{border-color:var(--honey-l)}

/* buttons */
.btn{display:inline-block;background:var(--brick);color:#fff;text-decoration:none;padding:.5em 1.25em;border-radius:2px;font-size:1.12rem;border:2px solid var(--brick);cursor:pointer;font-family:inherit;box-shadow:0 2px 0 var(--brick-d)}
.btn:hover{background:var(--brick-d);border-color:var(--brick-d);color:#fff}
.btn.ghost{background:transparent;color:var(--hedge);border-color:var(--moss);box-shadow:none}
.btn.ghost:hover{background:var(--hedge);border-color:var(--hedge);color:var(--chalk)}
.btn.ghost.light{color:var(--chalk);border-color:var(--chalk)}
.btn.ghost.light:hover{background:var(--chalk);color:var(--hedge)}
.cta-row{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center}
.ku{font-size:1rem;color:var(--moss);font-style:italic}

/* hero: dusk over the downs. images/hero-nether-radbourne.jpg is optional; the sky gradient stands in. */
.hero{position:relative;color:var(--chalk);background:
 linear-gradient(90deg,rgba(20,27,38,.93) 0%,rgba(20,27,38,.82) 38%,rgba(20,27,38,.35) 58%,rgba(20,27,38,0) 75%),
 image-set(url("../images/hero-nether-radbourne-2000.webp") type("image/webp"),url("../images/hero-nether-radbourne.jpg") type("image/jpeg")) center 70%/cover no-repeat,
 linear-gradient(180deg,#26344a 0%,#3d4b66 36%,#77698a 62%,#c98f68 84%,#e7b67c 100%)}
/* the painted hero has its own landscape, so only a hedge-green rule closes it */
.hero{border-bottom:6px solid var(--hedge)}
.hero-inner{position:relative;z-index:1;padding:6rem 1.25rem 8rem;max-width:var(--wrap)}
.hero h1{color:var(--chalk);max-width:15em;margin:0 0 .6em}
.h1-name{display:block;font-family:var(--fell-sc);font-size:clamp(2.7rem,6.2vw,4.4rem);letter-spacing:.06em;line-height:1.05}
.h1-sub{display:block;font-family:var(--fell);font-size:clamp(1.3rem,2.5vw,1.8rem);font-style:italic;color:var(--honey-l);margin-top:.35em}
.hero-lede{max-width:27em;font-size:1.3rem;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.hero+section{margin-top:1rem}

/* bands */
.band{padding:2.6rem 0;margin:2.6rem 0}
.band.soft{background:var(--stone) var(--grain);border-top:3px double var(--rule);border-bottom:3px double var(--rule)}
.band h2:first-child,.band .two-col h2{margin-top:0}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:3rem}
.ticks{list-style:none;padding:0}
.ticks li{margin-bottom:.7em;padding-left:1.6em;position:relative}
.ticks li::before{content:"\2767";position:absolute;left:0;top:-.05em;color:var(--moss);font-size:1.1em}
.page-head{padding:3rem 0 1rem}
.lede{font-size:1.35rem;color:var(--muted)}

/* home cards: bookplates */
.cards{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.cards li{background:var(--card);padding:1rem 1rem .6rem;border:1px solid var(--rule);box-shadow:inset 0 0 0 5px var(--card),inset 0 0 0 6px var(--rule),0 3px 10px rgba(47,61,44,.08)}
.cards img{box-shadow:0 4px 12px rgba(47,61,44,.3);width:100%;aspect-ratio:2/3;object-fit:cover;background:var(--hedge)}
.cards h3{margin:.8em 0 .1em;font-size:1.3rem}
.cards h3 a{color:var(--hedge);text-decoration:none}
.card-num{font-family:var(--fell-sc);letter-spacing:.1em;color:var(--brick);margin:0 0 .4em}
.cards p{font-size:1.05rem}
.signup-band{text-align:center;padding:2rem 1.25rem 3rem}

/* books page */
.book-list{display:grid;gap:2.2rem;padding-bottom:3rem}
.book-row{display:grid;grid-template-columns:200px 1fr;gap:2rem;align-items:start;padding:1.4rem;background:var(--card);border:1px solid var(--rule);box-shadow:inset 0 0 0 5px var(--card),inset 0 0 0 6px var(--rule)}
.book-row h2{margin-top:0}
.book-row h2 a{color:var(--hedge);text-decoration:none}
.book-row .sub{font-style:italic;color:var(--muted)}
.row-cover img{box-shadow:0 4px 12px rgba(47,61,44,.3);aspect-ratio:2/3;object-fit:cover;width:100%}
.next-up{background:var(--stone) var(--grain);padding:1.5rem 2rem;border-left:4px solid var(--moss)}
.next-up h2{margin-top:0}

/* book page */
.book-top{display:grid;grid-template-columns:minmax(220px,380px) 1fr;gap:3rem;padding-top:3rem}
.book-cover img{box-shadow:0 10px 28px rgba(47,61,44,.35);aspect-ratio:2/3;object-fit:cover;width:100%;border:6px solid var(--card);outline:1px solid var(--rule)}
.book-copy h1{margin-bottom:.15em}
.book-by{font-family:var(--serif);font-size:1.3rem;font-style:italic;color:var(--muted);margin:0 0 1.2em}
.tagline{font-family:var(--fell);font-style:italic;font-size:1.45rem;color:var(--hedge);border-left:3px solid var(--honey);padding-left:.8em}
.glance{display:grid;grid-template-columns:max-content 1fr;gap:.5em 1.5em;margin:0}
.glance dt{font-family:var(--fell-sc);color:var(--hedge);letter-spacing:.04em}
.glance dd{margin:0;border-bottom:1px dotted var(--rule);padding-bottom:.35em}
.notes{padding-left:1.1em}
.more-books{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.more-books a{display:flex;gap:1rem;align-items:center;text-decoration:none;color:var(--hedge)}
.mini{width:80px;aspect-ratio:2/3;object-fit:cover;box-shadow:0 3px 8px rgba(47,61,44,.3)}
.prev-next{display:flex;justify-content:space-between;gap:1rem;margin:2rem 0 3rem;flex-wrap:wrap}

/* about */
.about-top{display:grid;grid-template-columns:260px 1fr;gap:2.5rem;align-items:start}
.portrait{margin:0}
.portrait img{border-radius:50%;border:5px solid var(--card);box-shadow:0 0 0 2px var(--moss),0 8px 24px rgba(47,61,44,.25);width:100%}
.prose{padding-bottom:3rem}

/* village / faq / links / newsletter */
.cast{display:grid;grid-template-columns:max-content 1fr;gap:.6em 1.5em;margin:0 0 1.5rem}
.cast dt{font-family:var(--fell-sc);color:var(--hedge);letter-spacing:.03em}
.cast dd{margin:0;border-bottom:1px dotted var(--rule);padding-bottom:.4em}
figure.map,figure.wide{margin:0 0 2rem}
figure.map img,figure.wide img{border:6px solid var(--card);outline:1px solid var(--rule);box-shadow:0 6px 18px rgba(47,61,44,.2)}
.faq .qa{border-bottom:1px dotted var(--rule);padding:.4rem 0 .7rem}
.faq .qa h2{font-size:1.4rem;margin:1em 0 .3em}
.links{list-style:none;padding:0;display:grid;gap:.9rem}
.link-card{display:block;padding:1rem 1.3rem;background:var(--card);border:1px solid var(--rule);box-shadow:inset 0 0 0 4px var(--card),inset 0 0 0 5px var(--rule);text-decoration:none;color:var(--ink)}
.link-card strong{display:block;font-family:var(--fell);font-weight:400;color:var(--brick);font-size:1.3rem}
.link-card:hover{border-color:var(--moss)}
.signup{display:grid;gap:.5rem;max-width:460px;margin-bottom:1.2rem}
.signup input[type=text],.signup input[type=email]{font:inherit;padding:.5em .7em;border:1px solid #b9ad97;border-radius:2px;background:var(--card)}
.signup .check{display:flex;gap:.6em;align-items:flex-start;font-size:1.05rem;margin:.5rem 0}
.signup .check input{margin-top:.35em}
.signup .btn{justify-self:start}

/* footer: the downs again, and a Dorset fingerpost */
.site-foot{position:relative;background:var(--hedge) var(--grain);color:var(--chalk);margin-top:10rem;padding:1.5rem 0 1.5rem}
.site-foot::before{content:"";position:absolute;left:0;right:0;top:-139px;height:140px;background:url("downs.svg") center bottom/1600px 140px repeat-x;pointer-events:none}
.foot-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:end}
.foot-brand{position:relative}
/* painted footer (images/footer-fingerpost.jpg): replaces the SVG downs and fingerpost */
.foot-art{margin-top:5rem;line-height:0;background:var(--hedge)}
.foot-art img{display:block;width:100%;height:auto}
.site-foot.painted{margin-top:0;background:var(--grain),linear-gradient(180deg,#1a2014 0,var(--hedge) 9rem)}
.site-foot.painted::before{display:none}
.fingerpost{width:190px;height:auto;margin:-8rem 0 .6rem 0;position:relative}
.foot-name{font-family:var(--fell-sc);letter-spacing:.12em;font-size:1.3rem;margin-bottom:.2em}
.site-foot nav{display:grid;grid-template-columns:1fr 1fr;gap:.3rem 1.5rem}
.site-foot a{color:var(--chalk)}
.site-foot a:hover{color:var(--honey-l)}
.copy{font-size:.95rem;opacity:.75;margin-top:1.5rem}

@media (max-width:860px){
 .cards{grid-template-columns:repeat(2,1fr)}
 .two-col,.book-top,.about-top,.foot-grid{grid-template-columns:1fr}
 .about-top .portrait{max-width:220px}
 .book-cover{max-width:320px}
 .more-books{grid-template-columns:1fr}
 .hero{background:linear-gradient(180deg,rgba(22,30,42,.85),rgba(22,30,42,.55)),image-set(url("../images/hero-nether-radbourne-1200.webp") type("image/webp"),url("../images/hero-nether-radbourne.jpg") type("image/jpeg")) center/cover no-repeat,linear-gradient(180deg,#26344a,#77698a 70%,#e7b67c)}
}
@media (max-width:540px){
 body{font-size:1.12rem}
 .book-row{grid-template-columns:110px 1fr;gap:1rem;padding:1rem}
 .cast,.glance{grid-template-columns:1fr}
 .cast dd,.glance dd{margin-bottom:.6em}
 .site-foot nav{grid-template-columns:1fr}
 .hero-inner{padding-bottom:5rem}
}
.signup .g-recaptcha{margin:.4rem 0 .6rem}
