/*
Theme Name: Ruth Heald Author
Description: A bright, contemporary author website with an editable multilingual bookshelf.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Author: Ruth Heald
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ruth-heald-author
*/

:root{--ink:#123d43;--cream:#fcf8f1;--coral:#ed6a50;--muted:#576c6d}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--cream);color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.6}a{color:inherit}button,a{touch-action:manipulation}a:focus-visible,button:focus-visible{outline:3px solid var(--coral);outline-offset:5px}.wrap{max-width:1240px;margin:auto;padding:0 5%}.skip{position:fixed;top:-100px;background:white;padding:12px;z-index:9}.skip:focus{top:0}header{border-bottom:1px solid #123d431c;background:var(--cream)}.nav{display:flex;align-items:center;justify-content:space-between;min-height:95px;gap:20px}.brand{text-decoration:none;font-family:Georgia,serif;font-size:30px;letter-spacing:-1px}.brand small{display:block;font:9px Arial;letter-spacing:3px;text-transform:uppercase;margin-top:1px}.links{display:flex;gap:32px;align-items:center}.links a{text-decoration:none;font-size:13px;font-weight:600}.links a:hover{color:var(--coral)}.links a:last-child{border:1px solid var(--ink);padding:10px 20px;border-radius:30px}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:2.5px;font-weight:700;display:flex;gap:12px;align-items:center}.eyebrow:before{content:'';width:25px;height:2px;background:var(--coral)}.hero{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:40px;padding-top:80px;padding-bottom:80px;min-height:620px}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;line-height:1.08}h1{font-size:clamp(52px,6.5vw,84px);letter-spacing:-3px;margin:24px 0}h1 em{font-weight:400;color:var(--coral)}.intro{max-width:425px;font-size:17px;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:22px;padding:14px 24px;background:var(--ink);color:white;text-decoration:none;border:1px solid var(--ink);border-radius:4px;font-size:13px;font-weight:600;cursor:pointer}.btn:hover{background:#24565c}.hero .btn{margin-top:20px}.hero-note{font-size:11px;color:var(--muted);margin-top:18px}.stage{position:relative;height:440px;display:flex;justify-content:center;align-items:center}.stage:before{content:'';position:absolute;width:410px;height:410px;background:#f0d6ba;border-radius:50%}.stage:after{content:'';position:absolute;width:270px;height:270px;background:#d2e4de;border-radius:50%;right:-15px;bottom:-10px;z-index:-1}.stage img{width:205px;position:absolute;box-shadow:13px 20px 28px #123d4330;border-radius:2px}.stage .left{transform:rotate(-12deg);left:5%;top:70px}.stage .right{transform:rotate(11deg);right:1%;top:95px}.stage .front{width:225px;transform:rotate(-2deg);z-index:2;top:25px}.badge{position:absolute;right:-2%;top:0;z-index:3;border-radius:50%;background:var(--coral);color:white;height:103px;width:103px;display:grid;align-content:center;text-align:center;font-size:11px;line-height:1.4;transform:rotate(9deg)}.badge strong{font-family:Georgia;font-size:22px;font-weight:400}.ribbon{background:var(--ink);color:var(--cream)}.ribbon .wrap{display:flex;justify-content:center;gap:35px;padding-top:19px;padding-bottom:19px;font-size:11px;letter-spacing:2px;text-transform:uppercase}.ribbon span+span:before{content:'✦';color:#eacdae;margin-right:35px}.books{padding-top:85px;padding-bottom:90px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:35px}h2{font-size:clamp(38px,4vw,54px);letter-spacing:-1.5px;margin:15px 0}.section-head p{color:var(--muted);font-size:14px;max-width:300px}.filters{display:flex;gap:10px;margin-bottom:32px}.filters button{border:1px solid #123d4330;background:transparent;color:var(--ink);padding:9px 18px;border-radius:30px;cursor:pointer}.filters button[aria-pressed=true]{background:var(--ink);color:white}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:45px 30px}.book[hidden]{display:none}.cover{height:330px;background:#ebe9dc;display:flex;align-items:center;justify-content:center;border-radius:6px;overflow:hidden}.book:nth-child(3n+2) .cover{background:#dce8e2}.book:nth-child(3n) .cover{background:#f0dbcd}.cover img{height:280px;max-width:90%;object-fit:contain;box-shadow:8px 10px 16px #123d4333;transition:transform .25s}.cover:hover img{transform:translateY(-6px) rotate(-2deg)}.book h3{font-size:25px;margin:20px 0 10px}.book p{font-size:14px;color:var(--muted);margin:0 0 16px;min-height:66px}.book-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.buy{font-size:12px;font-weight:700;text-underline-offset:5px}.more{font-size:12px;border:0;background:transparent;color:var(--ink);text-decoration:underline;text-underline-offset:5px;cursor:pointer}.about{background:#e3eee8;padding:75px 0}.about-inner{display:grid;grid-template-columns:.8fr 1.2fr;gap:85px;align-items:center}.about-art{background:var(--ink);color:#fcf8f1;padding:50px 35px;min-height:350px;border-radius:160px 160px 4px 4px;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column}.monogram{font-family:Georgia;font-size:105px;line-height:1.1;letter-spacing:-8px;color:#f1c5a3}.about-art p{font-family:Georgia;font-size:25px;max-width:250px;line-height:1.35}.about-copy p{color:#435f60;font-size:15px}.about-copy .eyebrow{color:var(--ink)}.contact{padding:85px 0}.contact-box{display:flex;justify-content:space-between;align-items:center;gap:35px}.contact p{color:var(--muted);max-width:500px}.contact-buttons{display:flex;flex-direction:column;gap:12px;min-width:220px}.outline{background:transparent;color:var(--ink)}.outline:hover{background:#e3eee8}footer{border-top:1px solid #123d4320;padding:25px 0}.footer-inner{display:flex;justify-content:space-between;gap:20px;font-size:11px;color:var(--muted)}dialog{max-width:600px;width:calc(100% - 32px);padding:35px;border:0;border-radius:8px;background:var(--cream);color:var(--ink)}dialog::backdrop{background:#123d43b3}dialog h2{font-size:34px}dialog p{color:var(--muted)}.close{float:right;background:none;border:0;font-size:26px;color:var(--ink);cursor:pointer}.empty{font-size:13px;color:var(--muted)}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}@media(max-width:800px){.hero{grid-template-columns:1fr;padding-top:50px;gap:30px}.hero-copy{max-width:560px}.stage{width:min(100%,470px);margin:auto;height:425px}.grid{grid-template-columns:repeat(2,1fr)}.about-inner{gap:35px;grid-template-columns:.8fr 1.2fr}.ribbon .wrap{gap:15px;font-size:9px;letter-spacing:1px}.ribbon span+span:before{margin-right:15px}.contact-box{align-items:start;flex-direction:column}}@media(max-width:520px){.nav{min-height:90px}.brand{font-size:25px}.brand small{font-size:7px;letter-spacing:2px}.links{gap:15px}.links a{font-size:11px}.links a:last-child{border:0;padding:0}.hero{padding-top:40px;padding-bottom:45px}h1{letter-spacing:-2px;font-size:56px}.stage{height:360px}.stage:before{width:300px;height:300px}.stage img{width:150px}.stage .front{width:180px;top:25px}.stage .left{left:0;top:65px}.stage .right{right:0;top:80px}.badge{width:82px;height:82px;font-size:9px;right:0}.badge strong{font-size:17px}.ribbon .wrap{flex-wrap:wrap;gap:8px 15px}.ribbon span+span:before{display:none}.books{padding-top:55px;padding-bottom:55px}.section-head{align-items:start;flex-direction:column;gap:0}.section-head p{margin-top:0}.grid{gap:30px 16px}.cover{height:230px}.cover img{height:196px}.book h3{font-size:21px}.book p{font-size:12px;min-height:95px}.book-actions{align-items:start;flex-direction:column}.about-inner{grid-template-columns:1fr}.about-art{min-height:250px;max-width:310px;margin:auto;padding:30px}.monogram{font-size:80px}.about-art p{font-size:21px}.about{padding:55px 0}.contact{padding:55px 0}.footer-inner{flex-direction:column;gap:8px}}

.languages{background:#f3eade;padding:70px 0}.language-filter{display:flex;flex-wrap:wrap;gap:9px;margin:25px 0 30px}.language-filter button{background:transparent;border:1px solid #123d4330;border-radius:25px;padding:9px 16px;color:var(--ink);cursor:pointer}.language-filter button[aria-pressed=true]{background:var(--ink);color:white}.translation-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}.translation-card{padding:20px;background:#fcf8f1;border-radius:6px;display:flex;flex-direction:column;align-items:flex-start}.translation-card img{height:185px;max-width:100%;object-fit:contain;margin:0 auto 18px;box-shadow:5px 7px 12px #123d4322}.translation-card h3{font-size:22px;margin:8px 0 16px;line-height:1.2}.translation-card .tag{font-size:10px;text-transform:uppercase;letter-spacing:1.4px;color:var(--muted)}.translation-card a{font-size:12px;margin-top:auto;text-underline-offset:4px}.translation-card[hidden]{display:none}.translation-count{font-size:13px;color:var(--muted);margin-bottom:20px}.translation-note{font-size:12px;color:var(--muted);margin-top:25px}.nav .links{gap:24px}@media(max-width:900px){.translation-grid{grid-template-columns:repeat(3,1fr)}.nav .links{gap:16px}}@media(max-width:650px){.translation-grid{grid-template-columns:repeat(2,1fr)}.nav{flex-wrap:wrap;padding-top:15px;padding-bottom:15px;gap:10px}.nav .links{width:100%;justify-content:space-between}.links a:last-child{border:0;padding:0}.translation-card{padding:17px}.translation-card img{height:160px}.translation-card h3{font-size:20px}}
.about-photo{margin:0;max-width:400px;width:100%}.about-photo img{display:block;width:100%;height:auto;border-radius:150px 150px 6px 6px}@media(max-width:520px){.about-photo{max-width:310px;margin:0 auto}.about-photo img{border-radius:120px 120px 6px 6px}}
.wp-page{max-width:900px;padding-top:65px;padding-bottom:80px}.wp-page h1{font-size:clamp(40px,6vw,65px)}.wp-page h2{font-size:30px;margin-top:35px}.wp-page .entry-content{color:var(--muted)}.wp-page img{max-width:100%;height:auto}.wp-page a{text-underline-offset:4px}.menu-extra{display:flex;flex-wrap:wrap;gap:18px;list-style:none;margin:0;padding:0}.about-copy p:first-child{margin-top:0}.reader-news{background:#e3eee8;padding:40px;border-radius:6px;margin-top:45px}.reader-news h3{font-size:30px;margin:0 0 12px}.book-summary{display:none}.cover-placeholder{font:22px Georgia;text-align:center;padding:20px}.rh-book-translation img{height:185px}.rh-translation-actions{display:flex;flex-direction:column;gap:10px;margin-top:auto}.translation-card .rh-translation-actions a{margin-top:0}@media(max-width:520px){.reader-news{padding:25px}}
.rh-js .no-script-summary{display:none}html:not(.rh-js) .more{display:none}.no-script-summary{margin-top:16px}.no-script-summary summary{cursor:pointer}.no-script-summary p{margin-top:12px}.translation-card[hidden],.book[hidden],[hidden]{display:none!important}
