@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');
:root{--ink:#172d2a;--muted:#697976;--green:#244c48;--mint:#eaf0eb;--paper:#faf9f5;--line:#e4e8e2;--gold:#d9b779;--white:#fff}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:15px;line-height:1.6}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.site-header{height:82px;padding:0 max(calc((100vw - 1180px)/2),5%);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(250,249,245,.94)}.brand{font-size:21px;font-weight:700;letter-spacing:-.8px}.brand span{font-size:10px;letter-spacing:1.5px;color:var(--muted);display:block}.site-header nav{display:flex;align-items:center;gap:28px;font-size:13px;font-weight:600}.site-header nav a:hover{color:#b17c35}.nav-button{border:1px solid #ccd6cf;border-radius:7px;padding:10px 14px}.hero{max-width:1180px;margin:0 auto;padding:100px 5% 105px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:70px;min-height:510px}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:700;color:#9b753f}.hero h1,.text-page h1{font-family:'Playfair Display',Georgia,serif;font-size:clamp(42px,5.5vw,70px);line-height:1.08;letter-spacing:-1.8px;margin:18px 0}.hero h1 em{color:#8b9d8d;font-weight:600}.hero p{max-width:440px;color:var(--muted);font-size:17px;margin:0 0 28px}.button{display:inline-flex;justify-content:center;align-items:center;border:0;border-radius:7px;padding:13px 19px;background:var(--green);color:white;font-weight:700;cursor:pointer;transition:.15s}.button:hover{background:#183a36;transform:translateY(-1px)}.button.small{padding:9px 13px;font-size:12px}.button.light{background:#fff;color:var(--green)}.button.secondary{background:#edf0eb;color:var(--ink)}.hero-art{height:310px;position:relative;display:flex;align-items:center;justify-content:center;background:#e9eee7;border-radius:48% 52% 45% 55%;max-width:410px;width:100%;justify-self:center}.book{width:180px;height:250px;border-radius:3px 9px 9px 3px;box-shadow:14px 16px 28px #1a332d33;position:absolute;background:#244c48;color:#fff;display:flex;flex-direction:column;padding:20px;justify-content:space-between}.book-front{transform:rotate(-7deg);z-index:2;background:#315b52}.book-back{transform:translate(58px,6px) rotate(9deg);background:#d2b17c}.book-front span{font-family:'Playfair Display',serif;font-size:24px;line-height:1.25;margin-top:25px}.book-front small{font-size:8px;letter-spacing:1.5px}.section{max-width:1180px;margin:0 auto;padding:45px 5% 95px}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:30px}.section h2,.cta h2{font-family:'Playfair Display',Georgia,serif;font-size:36px;line-height:1.2;margin:8px 0}.search{display:flex;gap:8px}.search input{width:220px}.search input,input,textarea,select{border:1px solid #dce2dc;border-radius:6px;padding:11px 12px;background:white;color:var(--ink);width:100%;outline-color:#8ba79a}.book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.book-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.cover{background:var(--cover,#244c48);color:white;min-height:225px;margin:18px auto 0;width:150px;padding:16px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:5px 8px 15px #172d2a22;border-radius:2px 5px 5px 2px}.cover-kicker{font-size:7px;letter-spacing:1.5px;text-transform:uppercase;opacity:.8}.cover strong{font-family:'Playfair Display',serif;font-size:23px;line-height:1.13;overflow-wrap:anywhere}.cover-author{font-size:9px}.book-info{padding:18px 20px 20px}.tag{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#718378;font-weight:700}.book-info h3{font-size:18px;margin:7px 0}.book-info p{font-size:13px;color:var(--muted);min-height:62px}.book-bottom{border-top:1px solid var(--line);padding-top:14px;display:flex;justify-content:space-between;align-items:center;font-size:13px}.book-bottom a{font-weight:700;color:#7d6945}.cta{padding:70px 5%;text-align:center;background:var(--green);color:white}.cta .eyebrow{color:#ddc18e}.cta p{max-width:500px;margin:12px auto 24px;color:#d5e0d9}.cta h2{font-size:40px}footer{display:flex;justify-content:space-between;padding:24px max(calc((100vw - 1180px)/2),5%);color:var(--muted);font-size:12px;border-top:1px solid var(--line)}.empty{padding:50px 20px;text-align:center;color:var(--muted)}.empty h3{color:var(--ink);margin-bottom:4px}.detail-wrap{max-width:960px;margin:70px auto 100px;padding:0 5%;display:grid;grid-template-columns:300px 1fr;gap:60px;align-items:start}.detail-cover{background:#e9eee7;padding:35px;border-radius:12px}.cover.large{width:210px;min-height:315px;margin:0;padding:23px}.cover.large strong{font-size:30px}.detail-copy h1{font-family:'Playfair Display',serif;font-size:42px;line-height:1.12;margin:10px 0}.byline,.muted{color:var(--muted);font-size:13px}.prose{white-space:normal;line-height:1.8;margin:22px 0}.price{font-size:24px;font-weight:700}.notice{background:#f1f3ed;border-left:3px solid #b7c5b8;padding:12px 15px;color:#596860;font-size:13px}.text-page{max-width:780px;margin:100px auto;padding:0 5%;min-height:55vh}.text-page p{max-width:600px;color:var(--muted);font-size:17px}.admin-body{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#eef2ec,#faf9f5)}.login-card{width:min(100%,460px);padding:40px;background:white;border:1px solid var(--line);border-radius:15px;box-shadow:0 20px 60px #203c2b0c}.login-card h1{font-family:'Playfair Display',serif;font-size:34px;line-height:1.15;margin:28px 0 8px}.login-card>p{color:var(--muted);font-size:13px}.form-stack{display:flex;flex-direction:column;gap:16px}.form-stack label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}.form-stack small{font-weight:400;color:var(--muted)}.form-stack button{align-self:flex-start}.alert,.success{padding:12px 15px;border-radius:7px;font-size:13px;margin:12px 0 18px}.alert{background:#fff0eb;color:#923f2b}.success{background:#e9f5ec;color:#245c36}.dash-body{background:#f6f7f3;min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:235px;background:#183a36;color:#eaf0eb;padding:27px 17px;display:flex;flex-direction:column;gap:7px}.sidebar .brand{padding:0 12px 28px}.sidebar .brand span{color:#aebfb4}.side-label{font-size:9px;letter-spacing:1.7px;color:#94aaa0;padding:10px 12px}.sidebar>a:not(.brand),.side-bottom a{padding:11px 12px;border-radius:7px;font-size:13px;color:#d0ddd5}.sidebar a.active,.sidebar>a:hover,.side-bottom a:hover{background:#2b514b;color:white}.side-bottom{margin-top:auto;display:flex;flex-direction:column;gap:4px}.dashboard{margin-left:235px;padding:35px clamp(22px,4vw,60px);max-width:1600px}.dash-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.dash-top h1{font-family:'Playfair Display',serif;font-size:34px;margin:4px 0}.user-chip{background:#e7ece6;border-radius:30px;padding:9px 14px;font-size:12px;font-weight:700}.welcome{background:#e7eee7;border:1px solid #dce5dc;border-radius:14px;padding:35px;display:flex;justify-content:space-between;align-items:center;overflow:hidden}.welcome h2{font-family:'Playfair Display',serif;font-size:32px;line-height:1.2;margin:10px 0}.welcome p{color:var(--muted);max-width:500px}.welcome-symbol{font-family:'Playfair Display',serif;font-size:140px;color:#c5d3c5;padding:0 25px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin:20px 0}.stat,.panel{background:white;border:1px solid var(--line);border-radius:11px}.stat{padding:20px 22px}.stat span{display:block;color:var(--muted);font-size:12px}.stat strong{font-size:31px;display:block;margin-top:5px}.panel{padding:24px;margin:20px 0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.panel h2{margin:0 0 5px;font-size:18px}.panel-head p{margin:0}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.quick-grid a{border:1px solid var(--line);padding:18px;border-radius:8px;display:flex;flex-direction:column;gap:8px}.quick-grid a:hover{background:#f5f7f2}.quick-grid strong{font-size:13px}.quick-grid span{font-size:12px;color:var(--muted)}.form-panel{max-width:900px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-actions{display:flex;gap:10px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}td small{display:block;color:var(--muted)}.status{font-size:10px;border-radius:20px;padding:5px 9px}.status.published{background:#e3f3e7;color:#28713d}.status.draft{background:#f4efe2;color:#876b2f}.actions{display:flex;gap:10px;align-items:center}.actions a{color:#476e5f;font-weight:700}.actions form{display:inline}.link-danger{border:0;background:none;color:#a74b3b;cursor:pointer;font-size:12px}.ai-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}.ai-panel{margin:0}.ai-star{font-size:26px;color:#b68b4e}.ai-panel h2{font-family:'Playfair Display',serif;font-size:27px;margin:7px 0}.ai-panel>p{color:var(--muted);font-size:13px}.output-panel{margin:0;min-width:0}.output-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.7 'DM Sans',sans-serif;background:#f7f8f4;padding:17px;border-radius:8px;max-height:540px;overflow:auto}.empty-icon{font-size:30px;color:#b68b4e}.output-panel .empty{padding:75px 15px}.dashboard code,.login-card code{font-size:12px;overflow-wrap:anywhere}@media(max-width:850px){.hero{gap:25px;padding-top:65px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:190px}.dashboard{margin-left:190px;padding:25px 20px}.quick-grid{grid-template-columns:1fr}.ai-layout{grid-template-columns:1fr}.welcome-symbol{font-size:90px}.detail-wrap{gap:25px;grid-template-columns:240px 1fr}.detail-cover{padding:20px}.cover.large{width:180px;min-height:270px}}@media(max-width:600px){.site-header{height:auto;min-height:72px;padding:15px 5%;gap:12px;align-items:flex-start}.site-header nav{gap:12px;flex-wrap:wrap;justify-content:flex-end;font-size:11px}.nav-button{padding:5px 8px}.hero{grid-template-columns:1fr;padding-top:55px;padding-bottom:60px;gap:40px}.hero-art{height:260px;max-width:330px}.book{width:150px;height:210px}.book-front span{font-size:20px}.section-head{align-items:flex-start;gap:15px;flex-direction:column}.search{width:100%}.book-grid{grid-template-columns:1fr}.book-card{display:grid;grid-template-columns:130px 1fr;align-items:center}.book-card>.cover{width:100px;min-height:150px;margin:15px auto}.cover strong{font-size:18px}.book-info{padding:14px}.book-info p{min-height:0}.book-bottom{gap:8px;flex-wrap:wrap}.cta h2{font-size:32px}footer{gap:10px;flex-direction:column}.detail-wrap{grid-template-columns:1fr;margin:35px auto;gap:25px}.detail-cover{max-width:280px;margin:auto;width:100%}.dashboard{margin-left:0;padding:20px 14px 35px}.sidebar{position:static;width:auto;min-height:auto;padding:13px;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.sidebar .brand{width:100%;padding:4px 8px 10px}.side-label{display:none}.sidebar>a:not(.brand),.side-bottom a{padding:8px;font-size:11px}.side-bottom{margin:0;flex-direction:row;flex-wrap:wrap}.dash-top h1{font-size:27px}.stats{gap:8px}.stat{padding:13px}.stat strong{font-size:25px}.stat span{font-size:10px}.welcome{padding:22px}.welcome h2{font-size:25px}.welcome-symbol{display:none}.two-col{grid-template-columns:1fr}.panel{padding:17px}.quick-grid{grid-template-columns:1fr}.ai-layout{grid-template-columns:1fr}.login-card{padding:28px 22px}}