@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ink: #171713;
    --paper: #f6f5f0;
    --muted: #77766e;
    --line: #d8d6ce;
    --white: #fff;
    --book-cover-ratio: 2 / 3;
    --serif: "Instrument Serif", "Iowan Old Style", Baskerville, "Times New Roman", serif;
    --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.5; }
body::before { position: fixed; z-index: -1; inset: 0; opacity: .22; background-image: radial-gradient(rgba(23,23,19,.17) .45px, transparent .45px); background-size: 4px 4px; content: ""; pointer-events: none; }
::selection { color: var(--paper); background: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .75rem 1rem; color: var(--white); background: var(--ink); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.scroll-progress { position: fixed; z-index: 80; top: 0; right: 0; left: 0; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--line); background: rgba(246,245,240,.9); backdrop-filter: blur(18px) saturate(130%); transition: background .35s, box-shadow .35s; }
.site-header.is-scrolled { background: rgba(246,245,240,.97); box-shadow: 0 12px 40px rgba(23,23,19,.07); }
.header-meta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 25px; padding: 0 clamp(1.5rem,5vw,5.5rem); overflow: hidden; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .48rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; transition: height .35s, opacity .25s, border .35s; }
.header-meta span:last-child { text-align: right; }
.site-header.is-scrolled .header-meta { height: 0; border-color: transparent; opacity: 0; }
.header-main { display: grid; grid-template-columns: 210px 1fr auto; align-items: center; min-height: 79px; padding: 0 clamp(1.5rem,5vw,5.5rem); transition: min-height .35s; }
.site-header.is-scrolled .header-main { min-height: 64px; }
.brand { display: inline-flex; flex-direction: column; width: max-content; font-family: var(--serif); font-size: 1rem; line-height: .88; letter-spacing: -.02em; }
.brand strong { font-size: 1.6rem; font-weight: 400; }
.brand-logo { display: block; width: 142px; height: 48px; object-fit: contain; object-position: left center; transition: width .35s, height .35s, opacity .2s; }
.brand:hover .brand-logo { opacity: .68; }
.site-header.is-scrolled .brand-logo { width: 120px; height: 39px; }
.brand-logo-light { width: 175px; height: 64px; }
.main-navigation { display: flex; justify-content: center; gap: clamp(1.25rem,2.5vw,2.6rem); font-size: .65rem; }
.main-navigation a { position: relative; display: flex; align-items: flex-start; gap: .32rem; padding: 2rem 0; transition: opacity .2s; }
.main-navigation a span { margin-top: -.15rem; color: var(--muted); font-size: .43rem; transition: transform .25s, color .25s; }
.main-navigation a:hover span { color: var(--ink); transform: translateY(-3px); }
.main-navigation:hover a:not(:hover) { opacity: .35; }
.main-navigation a::after { position: absolute; right: 0; bottom: 1.45rem; left: 0; height: 1px; background: var(--ink); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .3s cubic-bezier(.77,0,.18,1); }
.main-navigation a:hover::after, .main-navigation a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .25rem; font-size: .62rem; }
.header-actions > a { position: relative; display: inline-flex; align-items: center; gap: .58rem; min-height: 40px; padding: .55rem .72rem; transition: color .2s, background .25s; }
.header-actions > a:hover { background: rgba(23,23,19,.055); }
.header-search { margin-right: .25rem; padding-right: 1.15rem !important; border-right: 1px solid var(--line); }
.search-icon { position: relative; display: block; width: 15px; height: 15px; border: 1.5px solid var(--ink); border-radius: 50%; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.search-icon::after { position: absolute; right: -4px; bottom: -2px; width: 6px; height: 1.5px; background: var(--ink); content: ""; transform: rotate(45deg); transform-origin: left center; }
.header-search:hover .search-icon { transform: rotate(-8deg) scale(1.06); }
.header-cart [data-cart-count] { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .3rem; color: var(--paper); border-radius: 50%; background: var(--ink); font-size: .58rem; line-height: 1; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.header-cart:hover [data-cart-count] { transform: translateY(-2px); }
.menu-button { display: none; align-items: center; gap: .8rem; border: 0; background: transparent; cursor: pointer; }
.menu-glyph { display: grid; gap: 5px; width: 22px; }
.menu-glyph i { display: block; height: 1px; background: var(--ink); transition: transform .25s; }
.menu-button[aria-expanded="true"] .menu-glyph i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-glyph i:last-child { transform: translateY(-3px) rotate(-45deg); }
.nav-context { position: absolute; top: 100%; right: 0; left: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 3rem; align-items: end; padding: 2rem clamp(1.5rem,5vw,5.5rem); color: #dedbd2; border-bottom: 1px solid #35342f; background: var(--ink); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity .25s, transform .35s cubic-bezier(.22,1,.36,1); }
.site-header:hover .nav-context, .site-header:focus-within .nav-context { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-context p { margin: 0; font-family: var(--serif); font-size: 1.65rem; }
.nav-context div { display: grid; gap: .4rem; }
.nav-context div span { color: #77756f; font-size: .5rem; letter-spacing: .13em; text-transform: uppercase; }
.nav-context div strong { font-family: var(--serif); font-size: .95rem; font-weight: 400; }
.nav-context-mark { color: #68665f; font-family: var(--serif); font-size: 2rem; }

.hero { display: grid; grid-template-columns: 44% 56%; min-height: 690px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 5rem clamp(1.5rem, 7vw, 8rem); }
.eyebrow { margin: 0 0 1.3rem; color: var(--muted); font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(4.7rem, 8vw, 8.4rem); font-weight: 400; letter-spacing: -.025em; line-height: .86; }
.hero-intro { max-width: 390px; margin: 3rem 0 2rem; color: #4f4e48; font-family: var(--sans); font-size: 1rem; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.4rem; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.button-dark { color: var(--white); background: var(--ink); }
.text-link { font-size: .67rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.text-link span { margin-left: .35rem; transition: transform .2s; }
.text-link:hover span { display: inline-block; transform: translate(3px, -3px); }
.hero-art { position: relative; min-height: 690px; background: #e9e7df; }
.hero-number { position: absolute; top: 2rem; right: 2rem; font-size: .58rem; font-style: normal; line-height: 1.5; }
.hero-number i { color: var(--muted); font-style: normal; }
.book { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: var(--book-cover-ratio); padding: 1.25rem; color: #e9e7df; background: #262521; box-shadow: 12px 15px 25px rgba(23,23,19,.16); }
.hero-book { position: absolute; z-index: 2; right: 26%; bottom: 90px; width: min(290px, 40%); transform: rotate(-1deg); }
.hero-book h2 { margin: auto 0; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 400; line-height: 1.05; }
.hero-book p { max-width: 200px; font-family: var(--serif); font-size: .8rem; }
.hero-book strong { font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; }
.book-mark { font-size: .47rem; letter-spacing: .13em; text-transform: uppercase; }
.plinth { position: absolute; right: 8%; bottom: 58px; width: 77%; height: 56px; background: #d5d1c7; border-radius: 60% 20% 45% 30%; transform: skewX(-12deg); }
.vase { position: absolute; right: 12%; bottom: 102px; width: 80px; height: 210px; background: linear-gradient(90deg, #c6c1b7, #f0eee9 60%, #b5b0a7); border-radius: 45% 45% 35% 35% / 18% 18% 12% 12%; }
.vase span, .vase span::before, .vase span::after { position: absolute; width: 1px; height: 230px; background: #5a493d; content: ""; transform-origin: bottom; }
.vase span { left: 43px; bottom: 180px; transform: rotate(15deg); }
.vase span::before { transform: rotate(-15deg); }
.vase span::after { transform: rotate(28deg); }

.section { padding: 6rem clamp(1.5rem, 5vw, 5.5rem); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 3rem; }
.section-heading .eyebrow { margin-bottom: .7rem; }
.section h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 4rem); font-weight: 400; letter-spacing: -.04em; }
.book-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1rem, 2.5vw, 2.5rem); }
.book-card { min-width: 0; }
.book-card .book { width: 100%; transition: transform .25s, box-shadow .25s; }
.book-card a:hover .book { transform: translateY(-8px); box-shadow: 14px 20px 30px rgba(23,23,19,.2); }
.landing-book-cover { position: relative; aspect-ratio: var(--book-cover-ratio); overflow: hidden; background: #e5e2da; box-shadow: 12px 15px 25px rgba(23,23,19,.16); transition: transform .25s, box-shadow .25s; }
.landing-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card a:hover .landing-book-cover { transform: translateY(-8px); box-shadow: 14px 20px 30px rgba(23,23,19,.2); }
.landing-book-cover .book-index { right: .75rem; bottom: .75rem; padding: .25rem .35rem; color: var(--ink); background: rgba(246,245,240,.82); }
.book-card h3 { max-width: 90%; margin: auto 0; font-family: var(--serif); font-size: clamp(1rem, 1.5vw, 1.5rem); font-weight: 400; line-height: 1.05; }
.book-card .book > p { margin: 0; font-size: .5rem; letter-spacing: .07em; text-transform: uppercase; }
.book-index { position: absolute; right: 1rem; bottom: 1rem; font-size: .5rem; }
.book-meta { margin: .8rem 0 0; color: var(--muted); font-size: .62rem; }
.book-sage { color: #22251f; background: #aeb8a5; }
.book-charcoal { background: #323338; }
.book-sand { color: #2d2922; background: #c9bda4; }
.book-stone { color: #282825; background: #d7d4cd; }
.book-umber { background: #594034; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service-grid article { position: relative; padding: 2rem 2rem 0 0; border-right: 1px solid var(--line); }
.service-grid article:not(:first-child) { padding-left: 2rem; }
.service-grid article:last-child { border-right: 0; }
.service-grid span { color: var(--muted); font-family: var(--serif); font-size: .8rem; }
.service-grid h3 { margin: 3rem 0 .7rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.service-grid p { max-width: 230px; color: var(--muted); font-size: .75rem; line-height: 1.65; }

.manifesto { display: grid; grid-template-columns: 20% 58% 22%; gap: 2rem; align-items: start; padding: 7rem clamp(1.5rem, 5vw, 5.5rem); color: #e7e4dc; background: var(--ink); }
.manifesto blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5.3rem); letter-spacing: -.04em; line-height: 1.02; }
.manifesto > p:last-child { margin: 0; color: #a9a79f; font-size: .76rem; line-height: 1.8; }

.journal-grid { display: grid; grid-template-columns: 1.15fr 1fr .8fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.journal-grid > * { margin: 0; padding: 1rem; background: var(--paper); }
.editorial-image { display: grid; place-items: center; min-height: 310px; margin-bottom: 1.5rem; color: #ebe8df; background: #3b3934; font-family: var(--serif); font-size: 1.35rem; text-align: center; }
.editorial-image-one { background: linear-gradient(135deg, #312e2b 0 45%, #80766b 45% 55%, #d8d3c8 55%); }
.editorial-image-one span { max-width: 200px; padding: 1rem; background: rgba(25,24,21,.8); }
.editorial-image-two { color: var(--ink); background: repeating-linear-gradient(90deg, #e6e2d9 0 18%, #c9c2b4 18% 20%); }
.journal-grid h3 { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.journal-grid time { color: var(--muted); font-size: .6rem; }
.quote-card { display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding: clamp(2rem, 4vw, 4rem); }
.quote-card > span { font-family: var(--serif); font-size: 4rem; line-height: .5; }
.quote-card p { font-family: var(--serif); font-size: clamp(1.6rem, 2.5vw, 2.5rem); line-height: 1.15; }
.quote-card small { color: var(--muted); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }

.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 4rem clamp(1.5rem, 5vw, 5.5rem); }
.newsletter h2 { max-width: 580px; margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.4rem); font-weight: 400; line-height: 1.05; }
.newsletter form { display: flex; width: min(480px, 100%); border-bottom: 1px solid var(--ink); }
.newsletter input { flex: 1; min-width: 0; padding: 1rem 0; border: 0; outline: 0; background: transparent; }
.newsletter button { border: 0; background: transparent; font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }

.site-footer { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; padding: 5rem clamp(1.5rem, 5vw, 5.5rem) 2rem; color: #d8d5cc; background: var(--ink); }
.brand-light { color: var(--white); }
.footer-brand p { max-width: 320px; color: #8e8c85; font-family: var(--serif); font-size: 1.1rem; }
.site-footer h2 { margin: 0 0 1.2rem; color: #8e8c85; font-size: .59rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer > div:not(.footer-brand) { display: flex; flex-direction: column; gap: .7rem; font-size: .7rem; }
.copyright { grid-column: 1 / -1; margin: 3rem 0 0; padding-top: 1.5rem; color: #77756e; border-top: 1px solid #34332f; font-size: .58rem; }

@media (max-width: 1000px) {
    .hero h1 { line-height: .9; }
    .site-header { grid-template-columns: 1fr auto; min-height: 82px; }
    .menu-button { display: block; }
    .main-navigation { position: absolute; top: 82px; right: 0; left: 0; display: none; flex-direction: column; gap: 0; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); background: var(--paper); }
    .main-navigation.is-open { display: flex; }
    .main-navigation a { padding: .75rem 0; }
    .main-navigation a::after { display: none; }
    .header-actions { display: none; }
    .hero { grid-template-columns: 1fr; }
    .hero-copy { min-height: 620px; }
    .hero-art { min-height: 620px; }
    .book-grid { grid-template-columns: repeat(3, 1fr); }
    .book-card:nth-child(n+4) { display: none; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid article:nth-child(2) { border-right: 0; }
    .manifesto { grid-template-columns: 1fr; }
    .manifesto > p:last-child { max-width: 450px; }
    .journal-grid { grid-template-columns: 1fr 1fr; }
    .quote-card { grid-column: 1 / -1; min-height: 360px; }
    .newsletter { align-items: flex-start; flex-direction: column; }
    .site-footer { grid-template-columns: 2fr 1fr 1fr; }
    .site-footer > div:last-of-type { grid-column: 2; }
}

@media (max-width: 640px) {
    .hero-copy { min-height: 560px; padding-top: 4rem; padding-bottom: 4rem; }
    .hero h1 { font-size: clamp(4rem, 20vw, 5.7rem); line-height: .96; letter-spacing: -.015em; }
    .hero-art { min-height: 480px; }
    .hero-book { right: 27%; bottom: 70px; width: 48%; }
    .vase { right: 8%; bottom: 80px; width: 55px; height: 160px; }
    .plinth { bottom: 40px; }
    .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
    .section-heading { align-items: flex-start; gap: 1rem; }
    .section-heading > .text-link { max-width: 85px; text-align: right; }
    .book-grid { grid-template-columns: repeat(2, 1fr); }
    .book-card:nth-child(3) { display: none; }
    .service-grid { grid-template-columns: 1fr; }
    .service-grid article, .service-grid article:not(:first-child) { padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .service-grid h3 { margin-top: 1.5rem; }
    .manifesto { padding-top: 5rem; padding-bottom: 5rem; }
    .journal-grid { grid-template-columns: 1fr; }
    .quote-card { grid-column: auto; }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .site-footer > div:last-of-type { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
