/* IT On The Rocks: shared presentation for all pages. */
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: #f5f0e6; color: #24231f; font: 16px/1.6 Arial, Helvetica, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: #69451c; text-underline-offset: .2em; }
a:hover { color: #9b5a1b; }
a:focus-visible { outline: 3px solid #b4782c; outline-offset: 4px; }
h1,h2,h3 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.18; margin: 0 0 .55em; font-weight: normal; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; width: 92%; margin: 0 auto; }
.skip-link { position: absolute; top: -100px; left: 1rem; background: #fff; padding: .6rem; z-index: 10; }
.skip-link:focus { top: .5rem; }
.site-header { background: #181818; color: #f5f0e6; border-bottom: 1px solid #805f34; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; }
.brand { font: bold 1.45rem/1.3 Georgia, serif; color: #f5f0e6; text-decoration: none; white-space: nowrap; }
.brand span { color: #dbad69; }
.site-header nav,.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.site-header nav a,.site-footer nav a { color: #f5f0e6; text-decoration: none; font-size: .92rem; }
.site-header a:hover,.site-footer a:hover { color: #edc687; text-decoration: underline; }
.hero { background: #050505 url('assets/banner.jpg') right center / cover no-repeat; color: #f5f0e6; border-bottom: 3px solid #b78a4d; }
.hero-inner { min-height: 300px; display: flex; align-items: center; padding: 2rem 0; }
.hero-copy { width: 62%; }
.eyebrow { text-transform: uppercase; font-weight: bold; font-size: .74rem; letter-spacing: .11em; color: #76501e; margin-bottom: .65rem; }
.hero .eyebrow { color: #dbad69; }
.hero h1 { font-size: clamp(2.15rem, 4.1vw, 3.5rem); line-height: 1.11; margin-bottom: .4em; }
.hero h1 span { color: #e6b776; }
.tagline { max-width: 34rem; font-size: 1.12rem; color: #e6dfd2; margin-bottom: 1.15rem; }
.hero-link { display: inline-block; color: #edc687; font-size: .96rem; font-weight: bold; }
.hero-link:hover { color: #fff; }
.section { padding: 2.3rem 0 3rem; }
.section h2 { font-size: 2rem; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.series-link { flex-shrink: 0; font-weight: bold; font-size: .93rem; margin-bottom: .8rem; }
.intro { max-width: 850px; color: #514d44; margin-bottom: 1.5rem; }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.3rem; }
.book-card { background: #fffdfa; border: 1px solid #ded4c3; border-radius: 4px; padding: 1.15rem; display: flex; flex-direction: column; min-width: 0; }
.cover { display: block; margin: 0 auto 1.1rem; width: 100%; max-width: 228px; }
.cover img,.detail-cover img { width: 100%; box-shadow: 0 5px 13px rgba(0,0,0,.19); border: 1px solid #d2c7b5; }
.cover:hover img { outline: 2px solid #b78a4d; outline-offset: 3px; }
.book-copy { flex: 1; }
.book-copy .eyebrow { font-size: .68rem; letter-spacing: .06em; }
.book-card h3 { font-size: 1.23rem; margin-bottom: .35rem; font-weight: bold; }
.book-card h3 a { color: #24231f; text-decoration: none; }
.book-card h3 a:hover { text-decoration: underline; }
.subtitle { font: .94rem/1.35 Georgia, serif; color: #514d44; margin-bottom: .75rem; }
.book-description { color: #514d44; font-size: .91rem; }
.book-actions { border-top: 1px solid #e4d9c8; padding-top: .9rem; }
.details { display: inline-block; font-weight: bold; margin: 0 0 .75rem; font-size: .92rem; }
.purchase { display: block; background: #30251b; border: 1px solid #30251b; color: #fff8e8; text-decoration: none; text-align: center; padding: .65rem .8rem; border-radius: 3px; font-size: .94rem; font-weight: bold; }
.purchase:hover { background: #624520; border-color: #624520; color: #fff; }
.formats { display: block; text-align: center; font-size: .79rem; color: #5d574e; margin-top: .42rem; }
.author-strip { background: #ebe2d2; border-top: 1px solid #d8c9b3; }
.author-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 0; }
.author-inner h2 { font-size: 1.75rem; }
.author-inner p:last-child { margin-bottom: 0; max-width: 760px; }
.text-link { flex-shrink: 0; font-weight: bold; }
.site-footer { background: #181818; color: #cfc5b7; border-top: 2px solid #b78a4d; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.6rem 0; font-size: .86rem; }
.footer-inner strong { font: bold 1.12rem Georgia, serif; color: #e4b675; }
.footer-inner p { margin: 0; font-size: .79rem; }
.breadcrumb { color: #665e51; font-size: .87rem; margin-bottom: 1.6rem; }
.breadcrumb span { padding: 0 .4rem; }
.detail-layout { display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: 3rem; align-items: start; }
.detail-cover { max-width: 300px; }
.detail-buy { margin-top: 1.2rem; }
.detail-copy h1,.about-page h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.detail-subtitle { color: #534938; font: 1.35rem/1.4 Georgia, serif; }
.byline { color: #5c5144; font-size: .94rem; border-bottom: 1px solid #d9ccb8; padding-bottom: 1rem; }
.lead { font-size: 1.12rem; }
.detail-copy h2 { font-size: 1.6rem; margin-top: 1.4rem; }
.topics { padding-left: 1.25rem; margin-top: .4rem; }
.topics li { margin-bottom: .6rem; }
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #d9ccb8; }
.related-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.related-grid .cover { max-width: 175px; }
.about-reading { max-width: 760px; }
.about-reading h2 { margin-top: 1.6rem; }
.about-reading .purchase { display: inline-block; }
@media (max-width: 920px) {
 .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .hero { background-position: 70% center; }
 .hero-copy { width: 64%; }
 .related-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .detail-layout { gap: 1.8rem; }
}
@media (max-width: 640px) {
 .header-inner { align-items: flex-start; flex-direction: column; gap: .65rem; }
 .site-header nav,.site-footer nav { gap: .9rem; }
 .hero { background: #050505 url('assets/banner.jpg') right top / auto 180px no-repeat; }
 .hero-inner { min-height: 0; padding: 185px 0 1.7rem; }
 .hero-copy { width: 100%; }
 .hero h1 { font-size: 2.25rem; }
 .section { padding: 1.75rem 0 2rem; }
 .section h2 { font-size: 1.65rem; }
 .section-intro,.author-inner { display: block; }
 .series-link,.text-link { display: inline-block; margin-top: .35rem; }
 .book-grid,.related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
 .book-card { padding: .85rem; }
 .book-card h3 { font-size: 1.09rem; }
 .detail-layout { grid-template-columns: 1fr; gap: 1.5rem; }
 .detail-cover { max-width: 245px; width: 80%; margin: auto; }
 .footer-inner { flex-direction: column; align-items: flex-start; gap: .8rem; }
}
@media (max-width: 400px) { .book-grid,.related-grid { grid-template-columns: 1fr; } .book-card { padding: 1rem; } .cover { max-width: 200px; } }
