:root {
  color-scheme: light dark;
  --paper: #faf7f0;
  --panel: #f0ebe1;
  --ink: #2d2825;
  --muted: #6b6059;
  --accent: #683c51;
  --on-accent: #fffaf5;
  --line: #d7cfc1;
  --gold: #ae8744;
  --serif: Georgia, Cambria, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Nirmala UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #201c1b;
    --panel: #2a2523;
    --ink: #f1e9de;
    --muted: #c1b4a8;
    --accent: #e5acc6;
    --on-accent: #2e1c26;
    --line: #51463f;
    --gold: #b18b4c;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: min(1168px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; top: 8px; left: 16px; padding: 12px 18px; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 29px; line-height: 1.1; letter-spacing: -.7px; color: var(--ink); text-decoration: none; }
.brand img { flex: 0 0 48px; }
.brand-foundry { color: var(--accent); }
.site-header nav, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.site-header nav a { padding-block: 12px; color: var(--ink); font-size: 14px; text-decoration: none; }
.site-header nav a:hover { color: var(--accent); text-decoration: underline; }
.hero { padding-top: 65px; padding-bottom: 60px; display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 70px; }
.hero h1 { font-family: var(--serif); font-size: clamp(42px, 4.9vw, 64px); font-weight: 400; line-height: 1.09; letter-spacing: -2.1px; }
.hero > p { max-width: 395px; padding-bottom: 5px; font-size: 17px; line-height: 1.8; color: var(--muted); }
.hero .hero-count { display: block; margin-top: 13px; font-size: 12px; color: var(--accent); }
.coming-next { border-top: 1px solid var(--line); padding-top: 19px; margin-bottom: 33px; }
.coming-next h2 { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.3; margin-bottom: 17px; }
.coming-next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.coming-next-card { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 18px; min-width: 0; }
.coming-next-cover { height: 120px; display: flex; justify-content: center; align-items: center; background: var(--panel); text-decoration: none; }
.coming-next-copy { min-width: 0; }
.coming-next-copy .coming-soon { font-size: 10px; letter-spacing: .7px; text-transform: uppercase; margin-bottom: 5px; }
.coming-next-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.25; overflow-wrap: anywhere; }
.coming-next-card h3 a { color: var(--ink); text-decoration: none; }
.coming-next-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.coming-next-card .book-blurb { margin-top: 7px; }
.coming-next-cover .cover-placeholder { padding: 9px 5px; }
.coming-next-cover .placeholder-title { font-size: 10px; }
.coming-next-cover .placeholder-imprint, .coming-next-cover .placeholder-caption { font-size: 4px; letter-spacing: .4px; }
.eyebrow { font-size: 11px; line-height: 1.6; font-weight: 650; text-transform: uppercase; letter-spacing: 1.9px; color: var(--accent); }
.catalogue { border-top: 1px solid var(--gold); }
.catalogue-top { padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.catalogue-count { color: var(--muted); font-size: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 17px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.filter { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 17px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.5; }
.filter:hover { background: var(--panel); border-color: var(--accent); }
.filter[aria-current] { color: var(--on-accent); border-color: var(--accent); background: var(--accent); }
.shelf { padding-top: 43px; padding-bottom: 47px; }
.shelf + .shelf { border-top: 1px solid var(--line); }
.shelf-heading { display: flex; gap: 17px; align-items: flex-start; margin-bottom: 28px; }
.shelf-number { color: var(--accent); font-family: var(--serif); font-size: 14px; line-height: 1; margin-top: 12px; }
.shelf-heading h2 { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.25; letter-spacing: -.65px; }
.shelf-heading p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.shelf-count { flex: 0 0 auto; margin-left: auto; padding-top: 8px; color: var(--muted); font-size: 12px; }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 35px 26px; }
.book-card { min-width: 0; display: flex; flex-direction: column; }
.cover-frame { height: 324px; display: flex; align-items: center; justify-content: center; padding: 24px 26px; background: var(--panel); text-decoration: none; border-bottom: 1px solid var(--line); }
.book-cover { width: auto; height: 100%; max-height: 100%; max-width: 100%; object-fit: contain; box-shadow: 3px 5px 10px #00000025; }
.book-info { padding-top: 16px; flex: 1; }
.book-meta { min-height: 21px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .8px; }
.coming-soon { color: var(--accent); font-weight: 650; }
.book-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.22; letter-spacing: -.4px; overflow-wrap: anywhere; }
.book-card h3 a { color: var(--ink); text-decoration: none; }
.book-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.book-blurb { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.paintings-badge { display: inline-block; margin-top: 12px; font-size: 11px; color: var(--accent); }
.paintings-badge span { padding-right: 3px; }
.store-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.store-link { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 7px 9px; border: 1px solid var(--line); border-radius: 2px; font-size: 10px; font-weight: 600; line-height: 1.6; text-decoration: none; gap: 4px; }
.store-link:hover { border-color: var(--accent); background: var(--panel); }
.cover-placeholder { height: 100%; aspect-ratio: 2 / 3; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 24px 16px; border: 1px solid var(--line); box-shadow: 3px 5px 10px #00000015; background: var(--paper); color: var(--accent); text-align: center; }
.placeholder-imprint, .placeholder-caption { font-family: var(--sans); font-size: 8px; letter-spacing: 1.3px; }
.placeholder-title { font-family: var(--serif); font-size: 21px; line-height: 1.3; overflow-wrap: anywhere; }
.section-space { margin-top: 35px; margin-bottom: 75px; }
.app-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding: 47px 54px 43px; background: var(--panel); border-top: 2px solid var(--accent); }
.app-heading h2 { font-family: var(--serif); font-size: 45px; font-weight: 400; line-height: 1.13; letter-spacing: -.8px; margin-top: 11px; }
.app-promise { font-size: 13px; margin-top: 15px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 19px; min-height: 48px; border: 1px solid var(--accent); border-radius: 3px; text-decoration: none; font-size: 14px; font-weight: 550; }
.button-primary { color: var(--on-accent); background: var(--accent); }
.button-primary:hover { outline: 1px solid var(--accent); outline-offset: 3px; }
.app-heading .button { margin-top: 24px; }
.platform-note { color: var(--muted); font-size: 12px; margin-top: 13px; }
.app-copy { align-self: center; }
.app-copy h3 { font-family: var(--serif); font-size: 28px; line-height: 1.25; font-weight: 400; margin-bottom: 17px; }
.app-copy p { color: var(--muted); font-size: 15px; margin-top: 13px; }
.text-link { display: inline-block; font-size: 14px; font-weight: 550; padding-block: 10px; }
.app-copy .text-link { margin-top: 17px; }
.about-section { display: grid; grid-template-columns: 1fr 1.1fr; gap: 115px; padding-top: 8px; }
.about-heading img { margin-bottom: 23px; }
.about-heading h2 { font-family: var(--serif); font-size: 37px; font-weight: 400; line-height: 1.2; letter-spacing: -.7px; margin-top: 10px; }
.about-copy { align-self: center; color: var(--muted); font-size: 15px; }
.about-copy p + p { margin-top: 18px; }
.about-copy strong { font-weight: 600; color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); padding-top: 29px; padding-bottom: 30px; }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-brand { font-family: var(--serif); font-size: 23px; letter-spacing: -.5px; color: var(--ink); text-decoration: none; }
.site-footer nav a { font-size: 12px; padding-block: 10px; color: var(--muted); }
.footer-bottom { margin-top: 22px; font-size: 11px; color: var(--muted); }
.breadcrumbs { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 31px; padding-bottom: 36px; font-size: 13px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.book-detail { display: grid; grid-template-columns: 405px 1fr; gap: 72px; align-items: start; }
.detail-cover { height: 560px; padding: 35px; background: var(--panel); display: flex; justify-content: center; align-items: center; }
.detail-copy { padding-top: 8px; }
.detail-copy h1 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.12; letter-spacing: -1.5px; margin-top: 13px; overflow-wrap: anywhere; }
.book-subtitle { font-family: var(--serif); font-size: 23px; line-height: 1.45; color: var(--muted); margin-top: 15px; }
.book-author { color: var(--accent); font-size: 14px; margin-top: 21px; }
.detail-blurb { margin-top: 29px; font-size: 18px; line-height: 1.75; }
.detail-stores { margin-top: 30px; padding-top: 21px; border-top: 1px solid var(--line); }
.detail-stores h2 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.detail-stores .store-link { font-size: 13px; min-height: 44px; padding: 10px 15px; }
.book-prices { display: grid; gap: 5px; margin: 19px 0 0; font-size: 13px; color: var(--muted); }
.book-prices > div { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.book-prices dd { margin: 0; color: var(--ink); font-weight: 600; }
.availability-note { color: var(--muted); font-size: 14px; }
.companion-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.companion-note h2 { font-size: 14px; line-height: 1.5; color: var(--accent); font-weight: 600; }
.companion-note p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.companion-note .text-link { margin-top: 6px; }
.back-link { display: inline-block; margin-top: 37px; margin-bottom: 66px; font-size: 14px; padding-block: 10px; }
.cover-placeholder-large { width: 100%; max-width: 320px; }
.cover-placeholder-large .placeholder-title { font-size: 30px; }
.cover-placeholder-large .placeholder-imprint, .cover-placeholder-large .placeholder-caption { font-size: 11px; }
.install-page { max-width: 960px; }
.install-intro { padding: 62px 0 49px; text-align: center; }
.install-intro h1 { font-family: var(--serif); font-size: 60px; font-weight: 400; line-height: 1.13; letter-spacing: -1.5px; margin-top: 17px; }
.install-lead { font-family: var(--serif); font-size: 25px; line-height: 1.5; color: var(--muted); margin-top: 19px; }
.install-intro .button { margin-top: 27px; }
.install-intro .app-promise { margin-top: 18px; }
.install-intro .platform-note { margin-top: 5px; }
.install-steps { border-top: 1px solid var(--gold); padding-top: 31px; }
.install-section-heading h2 { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.3; letter-spacing: -.6px; margin-top: 9px; }
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 27px; }
.install-step { background: var(--panel); padding: 30px; }
.step-number { font-family: var(--serif); font-size: 27px; color: var(--accent); }
.install-step h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.3; margin-top: 15px; }
.install-step p { margin-top: 14px; color: var(--muted); font-size: 15px; }
.install-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin: 24px 0 62px; }
.install-bottom p { font-size: 13px; color: var(--muted); }
.not-found { padding-top: 70px; padding-bottom: 90px; }
.not-found h1 { font-family: var(--serif); font-size: 50px; line-height: 1.15; font-weight: 400; margin-top: 14px; }
.not-found p:not(.eyebrow) { margin-top: 22px; color: var(--muted); }
.not-found .button { margin-top: 25px; }

@media (min-width: 1500px) { .wrap { width: min(1240px, calc(100% - 96px)); } .cover-frame { height: 350px; } .hero { gap: 100px; } }
@media (max-width: 1050px) {
  .hero { gap: 35px; }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cover-frame { height: 330px; }
  .app-panel { gap: 45px; padding: 38px; }
  .about-section { gap: 60px; }
  .book-detail { grid-template-columns: 340px 1fr; gap: 40px; }
  .detail-cover { height: 490px; padding: 28px; }
  .detail-copy h1 { font-size: 40px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 94px; }
  .brand { font-size: 26px; gap: 9px; }
  .brand img { width: 40px; height: 40px; flex-basis: 40px; }
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: 13px; }
  .hero { display: block; padding-top: 43px; padding-bottom: 35px; }
  .hero h1 { font-size: 48px; letter-spacing: -1.6px; }
  .hero > p { max-width: 540px; font-size: 16px; line-height: 1.7; margin-top: 24px; }
  .coming-next-grid { grid-template-columns: 1fr; gap: 19px; }
  .coming-next-card { grid-template-columns: 64px minmax(0, 1fr); gap: 15px; }
  .coming-next-cover { height: 96px; }
  .coming-next-card h3 { font-size: 22px; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 22px; }
  .cover-frame { height: 330px; padding: 23px; }
  .shelf-heading h2 { font-size: 29px; }
  .shelf-count { display: none; }
  .shelf-heading p { font-size: 13px; }
  .app-panel { grid-template-columns: 1fr; gap: 37px; padding: 33px; }
  .app-heading h2 { font-size: 40px; }
  .app-copy { border-top: 1px solid var(--line); padding-top: 28px; }
  .about-section { grid-template-columns: 1fr; gap: 28px; }
  .about-heading { position: relative; padding-right: 120px; }
  .about-heading img { position: absolute; right: 0; top: 0; width: 88px; height: 88px; }
  .about-heading h2 { font-size: 31px; }
  .section-space { margin-bottom: 55px; }
  .footer-top { align-items: flex-start; }
  .site-footer nav { gap: 17px; }
  .footer-bottom { align-items: flex-start; gap: 13px; flex-direction: column; }
  .book-detail { grid-template-columns: 1fr; gap: 30px; }
  .detail-cover { height: 520px; }
  .detail-copy { padding-top: 0; }
  .detail-copy h1 { max-width: 600px; font-size: 44px; }
  .detail-blurb { font-size: 17px; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .install-intro h1 { font-size: 48px; }
  .install-intro { padding-top: 48px; }
  .install-lead { font-size: 24px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 112px; padding: 18px 0 9px; align-items: flex-start; flex-wrap: wrap; gap: 3px; }
  .brand { font-size: 26px; }
  .site-header nav { width: 100%; justify-content: flex-end; gap: 24px; }
  .site-header nav a { padding-top: 4px; padding-bottom: 6px; min-height: 34px; }
  .hero { padding-top: 35px; padding-bottom: 30px; }
  .hero h1 { font-size: clamp(25px, 7.7vw, 36px); line-height: 1.15; letter-spacing: -1px; }
  .hero > p { margin-top: 18px; font-size: 13px; line-height: 1.8; }
  .hero > p span { display: block; }
  .coming-next { margin-bottom: 24px; }
  .coming-next h2 { font-size: 22px; margin-bottom: 15px; }
  .coming-next-card h3 { font-size: 20px; }
  .catalogue-top { padding-top: 18px; gap: 10px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.5px; }
  .catalogue-count { font-size: 11px; }
  .filter-row { gap: 7px; padding-top: 14px; padding-bottom: 21px; }
  .filter { min-height: 42px; padding: 8px 13px; font-size: 12px; }
  .shelf { padding-top: 29px; padding-bottom: 35px; }
  .shelf-heading { gap: 11px; margin-bottom: 21px; }
  .shelf-heading h2 { font-size: 28px; }
  .shelf-number { font-size: 12px; margin-top: 11px; }
  .shelf-heading p { font-size: 13px; line-height: 1.65; margin-top: 8px; }
  .book-grid { grid-template-columns: minmax(0, 1fr); gap: 33px; }
  .cover-frame { height: 363px; padding: 25px; }
  .book-info { padding-top: 15px; }
  .book-meta { font-size: 10px; margin-bottom: 5px; }
  .book-card h3 { font-size: 26px; }
  .book-blurb { font-size: 14px; margin-top: 9px; }
  .paintings-badge { font-size: 12px; }
  .store-link { font-size: 11px; min-height: 42px; padding: 8px 12px; }
  .store-links { gap: 8px; margin-top: 13px; }
  .app-panel { padding: 27px 23px; gap: 28px; }
  .app-heading h2 { font-size: 37px; }
  .app-copy h3 { font-size: 26px; }
  .app-copy p { font-size: 14px; }
  .section-space { margin-top: 20px; margin-bottom: 44px; }
  .about-heading { padding-right: 93px; }
  .about-heading img { width: 72px; height: 72px; }
  .about-heading h2 { font-size: 28px; }
  .about-copy { font-size: 14px; }
  .footer-top { flex-direction: column; gap: 11px; }
  .site-footer { padding-top: 21px; }
  .footer-bottom { margin-top: 16px; font-size: 10px; gap: 7px; }
  .breadcrumbs { font-size: 12px; padding-top: 24px; padding-bottom: 24px; gap: 9px; }
  .detail-cover { height: 455px; padding: 28px; }
  .detail-copy h1 { font-size: 38px; letter-spacing: -1px; }
  .book-subtitle { font-size: 21px; }
  .book-author { margin-top: 17px; }
  .detail-blurb { margin-top: 23px; font-size: 17px; }
  .detail-stores { margin-top: 25px; }
  .back-link { margin-bottom: 39px; font-size: 13px; }
  .install-intro { padding-top: 36px; padding-bottom: 35px; }
  .install-intro h1 { font-size: 42px; letter-spacing: -1.25px; }
  .install-lead { font-size: 23px; margin-top: 17px; }
  .desktop-break { display: none; }
  .install-section-heading h2 { font-size: 29px; }
  .install-step { padding: 24px; }
  .install-step h3 { font-size: 25px; }
  .install-step p { font-size: 14px; }
  .install-bottom { margin-bottom: 35px; gap: 5px; }
  .not-found h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: no-preference) { .cover-frame .book-cover { transition: transform 160ms ease; } .cover-frame:hover .book-cover { transform: translateY(-3px); } }
