:root {
    --blue: #78afd3;
    --blue-bright: #1ba5dc;
    --ink: #222;
    --muted: #63676a;
    --paper: #fff;
    --mist: #f4f8fa;
    --line: #d9dde0;
    --footer: #242424;
    --content: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-160%); background: #fff; padding: 10px 14px; box-shadow: 0 2px 8px #0003; }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid #aeb4b8; background: #fff; }
.header-inner { width: min(calc(100% - 40px), 900px); margin: auto; position: relative; padding-top: 24px; }
.brand { display: block; width: 260px; margin: 0 auto 17px; }
.brand img { width: 100%; }
.social-links { position: absolute; top: 34px; right: 12px; display: flex; gap: 18px; font-weight: 700; font-size: .9rem; }
.social-links a { text-decoration: none; }
.primary-nav { display: grid; grid-template-columns: repeat(5, 1fr); }
.primary-nav a { position: relative; padding: 14px 10px 16px; color: #555; text-align: center; text-decoration: none; text-transform: uppercase; font-size: .72rem; letter-spacing: .025em; }
.primary-nav a::before { content: ''; position: absolute; height: 3px; top: 0; left: 0; right: 0; background: transparent; }
.primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav a.active { color: var(--blue-bright); }
.primary-nav a.active::before { background: var(--blue-bright); }
.nav-toggle, .nav-toggle-label { display: none; }

.section { padding: 64px 0; }
.section-heading { margin: 0 0 34px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 1.5rem; line-height: 1.2; }
h1, h2, h3 { line-height: 1.15; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; }
.button { display: inline-block; padding: 11px 22px; border-radius: 24px; text-decoration: none; text-transform: none; font-size: .9rem; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.button:hover, .button:focus-visible { transform: translateY(-1px); }
.button.dark { background: #1d1d1d; color: white; }
.button.dark:hover, .button.dark:focus-visible { background: #000; }

.prince-feature { color: white; background: var(--blue); }
.prince-grid { min-height: 410px; display: grid; grid-template-columns: 1fr 440px; align-items: center; gap: 50px; }
.feature-copy { padding: 50px 0; max-width: 580px; }
.feature-copy h1, .feature-copy h2 { margin: 0 0 6px; text-transform: uppercase; font-size: 2.5rem; }
.feature-copy .subtitle { margin: 0 0 20px; font-size: 1.35rem; }
.feature-copy p { max-width: 620px; }
.prince-art { width: 100%; max-height: 410px; object-fit: contain; }

.books-overview { background: var(--mist); }
.book-grid { display: grid; gap: 0; }
.book-grid.three-columns { grid-template-columns: repeat(3, 1fr); }
.book-card { padding: 24px; border: 1px solid var(--line); background: white; }
.book-card + .book-card { border-left: 0; }
.book-card img { height: 340px; width: 100%; object-fit: contain; margin-bottom: 22px; }
.book-card h2, .book-card h3 { margin: 0 0 18px; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .04em; }
.book-card p { color: #4d5356; font-size: .94rem; min-height: 116px; }
.text-link { color: var(--blue-bright); font-weight: 700; text-decoration: none; }

.author-grid { display: grid; grid-template-columns: 240px 1fr; gap: 52px; align-items: center; }
.author-grid figure { margin: 0; }
.author-grid figure img { width: 240px; aspect-ratio: 1 / 1.15; object-fit: cover; border: 6px solid white; box-shadow: 0 0 0 1px #aeb4b8; }
.author-grid figcaption { margin-top: 8px; text-align: center; color: #666; font-size: .75rem; }
.author-grid h2, .author-grid h3 { text-transform: uppercase; font-size: 1rem; letter-spacing: .06em; }

.praise-section { background: var(--mist); }
.praise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
blockquote { margin: 0; padding: 28px; background: #fff; border-top: 3px solid var(--blue-bright); }
blockquote p { margin-top: 0; }
blockquote cite { display: block; margin-top: 25px; font-style: normal; font-weight: 700; }
blockquote cite span { color: var(--muted); font-weight: 400; font-size: .84rem; }

.centered-heading { text-align: center; margin-bottom: 38px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.centered-heading h1 { margin: 0; text-transform: uppercase; font-size: 1.8rem; font-weight: 400; }
.centered-heading p { margin: 8px 0 0; }
.books-page .book-card { text-align: center; }
.books-page .book-card img { height: 360px; }
.compact-books .cover-row { display: flex; gap: 24px; }
.cover-row img { width: 180px; height: 270px; object-fit: cover; border: 1px solid var(--line); padding: 7px; }

.journalism-intro { display: grid; grid-template-columns: 290px 1fr; gap: 48px; align-items: start; }
.journalism-intro img { width: 290px; border: 5px solid white; box-shadow: 0 0 0 1px #aaa; }
.journalism-intro p { margin-top: 0; }
.links-heading { margin-top: 60px; }
.article-list { display: grid; max-width: 900px; }
.article-link { padding: 14px 18px; border: 1px solid #c8cdd0; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.article-link + .article-link { border-top: 0; }
.article-link:hover, .article-link:focus-visible { border-color: var(--blue-bright); background: var(--mist); }
.article-link strong { display: block; font-size: .93rem; }
.article-link span { display: block; color: var(--muted); font-size: .82rem; }

.contact-page { min-height: 430px; }
.contact-page p { max-width: 940px; }
.contact-page a:not(.button) { color: #1588bb; }
.book-detail { min-height: 580px; }
.book-detail-grid { display: grid; grid-template-columns: 330px 1fr; gap: 70px; align-items: center; }
.book-detail-grid > img { width: 330px; max-height: 500px; object-fit: contain; }
.book-detail h1 { margin: 0 0 24px; text-transform: uppercase; font-size: 2.5rem; }
.large-copy { max-width: 650px; font-size: 1.2rem; }

.newsletter { color: white; background: var(--blue); padding: 32px 0; }
.newsletter-inner { text-align: center; }
.newsletter h2 { margin: 0 0 16px; text-transform: uppercase; font-size: .8rem; font-weight: 400; letter-spacing: .025em; }
.newsletter-form { display: flex; justify-content: center; max-width: 520px; margin: auto; }
.newsletter-form input[type='email'] { flex: 1; min-width: 0; border: 0; padding: 12px 15px; font: inherit; }
.newsletter-form button { border: 0; padding: 0 28px; color: white; background: var(--blue-bright); text-transform: uppercase; font-weight: 700; cursor: pointer; }
.honeypot { position: absolute !important; left: -10000px !important; }
.form-message { margin: 0 0 12px; }
.form-message.success { color: #102a37; font-weight: 700; }
.site-footer { min-height: 160px; padding: 22px 20px 30px; text-align: center; color: #fff; background: var(--footer); }
.site-footer > img { width: 260px; margin: 12px auto 8px; }
.site-footer p { margin: 0; font-size: .7rem; color: #ddd; }
.site-footer a { color: inherit; }
.back-to-top { display: inline-block; text-decoration: none; font-size: 1.1rem; }

@media (max-width: 800px) {
    .header-inner { padding: 18px 0; }
    .brand { margin: 0; width: 220px; }
    .social-links { display: none; }
    .nav-toggle-label { display: flex; position: absolute; right: 0; top: 24px; width: 36px; height: 30px; flex-direction: column; justify-content: space-around; cursor: pointer; }
    .nav-toggle-label span { height: 2px; background: #222; width: 100%; }
    .primary-nav { display: none; grid-template-columns: 1fr; padding-top: 16px; }
    .nav-toggle:checked ~ .primary-nav { display: grid; }
    .primary-nav a { padding: 12px; border-top: 1px solid var(--line); }
    .primary-nav a::before { display: none; }
    .prince-grid { grid-template-columns: 1fr 300px; gap: 10px; }
    .feature-copy h1, .feature-copy h2 { font-size: 2rem; }
    .book-grid.three-columns { grid-template-columns: 1fr; gap: 18px; }
    .book-card + .book-card { border-left: 1px solid var(--line); }
    .book-card p { min-height: 0; }
    .praise-grid { grid-template-columns: 1fr; }
    .journalism-intro { grid-template-columns: 220px 1fr; gap: 28px; }
}

@media (max-width: 590px) {
    .container { width: min(calc(100% - 28px), var(--content)); }
    .section { padding: 44px 0; }
    .prince-grid { grid-template-columns: 1fr; padding-top: 20px; }
    .feature-copy { padding: 20px 0 0; }
    .prince-art { max-height: 320px; }
    .author-grid, .journalism-intro, .book-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .author-grid figure img, .journalism-intro img { width: min(100%, 290px); }
    .book-detail-grid > img { width: min(100%, 300px); margin: auto; }
    .book-detail h1 { font-size: 2rem; }
    .compact-books .cover-row { justify-content: center; }
    .cover-row img { width: 145px; height: 218px; }
    .newsletter-form { flex-direction: column; gap: 8px; }
    .newsletter-form input[type='email'], .newsletter-form button { min-height: 46px; }
}
