/* Xako Publication — values lifted from the design mockup (CleanHome.dc.html) */
:root {
  --bg: #FDFCF8;
  --ink: #1F1C17;
  --muted: #5F5750;
  --tan: #7A5C38;
  --tan-soft: #9A7850;
  --sand: #F1E8D6;
  --line: #E6DCC8;
  --accent: #4F7100;
  --accent-deep: #3F5500;
  --badge-bg: #E8EED9;
  --serif: 'Newsreader', 'Noto Serif Bengali', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; min-height: 100vh; }
img { display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; }
li { list-style: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px; text-decoration: none; }
.skip:focus { top: 0; color: #fff; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* announcement bar */
.topbar { background: var(--accent); color: #fff; font-size: 13px; text-align: center; padding: 7px 24px; }

/* header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-in { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { height: 56px; width: auto; }
.brand-tag { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); max-width: 150px; line-height: 1.3; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 24px; font-size: 15px; flex: 1 1 480px; }
.main-nav a { padding: 10px 0 8px; text-decoration: none; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--accent); border-bottom-color: var(--line); }
.main-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.tools { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 0; border-radius: 8px; }
.icon-btn:hover { color: var(--accent); background: rgba(79, 113, 0, .07); }
.menu-btn { display: none; }
.searchbar { border-top: 1px solid var(--line); background: #fff; }
.searchbar-in { display: flex; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.searchbar input[type=search] { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); }

/* buttons */
.btn { display: inline-block; text-decoration: none; font: inherit; font-weight: 600; font-size: 15px; padding: 11.5px 22px; border-radius: 999px; border: 1.5px solid var(--accent); cursor: pointer; line-height: 1.6; transition: background-color .15s, color .15s, border-color .15s; }
.btn-solid { background: var(--accent); color: #fff; padding: 13px 24px; }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { font-size: 14px; padding: 8px 14px; }
.btn-solid.btn-sm { padding: 9.5px 16px; }

/* hero */
.hero { position: relative; overflow: hidden; background: #E9E6EC; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(253,252,248,.94) 0%, rgba(253,252,248,.8) 38%, rgba(253,252,248,.15) 70%, rgba(253,252,248,0) 100%); }
.hero-in { position: relative; padding-top: 120px; padding-bottom: 140px; min-height: 620px; display: flex; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: 58px; line-height: 1.06; letter-spacing: -.01em; }
.hero p { font-size: 19px; color: #3F3A35; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* sections */
.section { padding-top: 64px; padding-bottom: 64px; }
.band-sand { background: var(--sand); }
.ruled { border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 28px; }
.sec-head h2, .partners h2, .nf h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; }
.sec-link { font-size: 15px; font-weight: 600; color: var(--accent); }
.sec-link:hover { color: var(--accent-deep); }
.sub-h { font-size: 16px; font-weight: 600; margin: 0 0 20px; }
.sub-h-gap { margin-top: 56px; }
.section-coming { padding-bottom: 72px; }
.grid { display: grid; }
.grid-just { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 32px 24px; }
.grid-all { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 40px 24px; }
.grid-soon { grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 32px; }
.grid-projects { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.grid-voices { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 32px 24px; }

/* book cards */
.book { display: flex; flex-direction: column; gap: 6px; }
.cover-link { display: block; text-decoration: none; margin-bottom: 8px; }
/* covers sit directly on the page (no tinted tile): bottom-aligned in an equal-height frame so titles line up */
.cover { aspect-ratio: 3 / 4; background: none; border-radius: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 0; }
.cover img { -webkit-user-drag: none; user-select: none; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 3px; box-shadow: 0 6px 18px rgba(31, 28, 23, .22); transition: transform .2s ease; }
.cover-link:hover .cover img { transform: translateY(-3px); }
.cat { font-size: 13px; color: var(--tan); }
.book h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.3; }
.book h3 a { text-decoration: none; }
.author { font-size: 14px; color: var(--muted); }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 28px; }
.chip-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; transition: border-color .15s; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

/* forthcoming */
.soon { display: flex; gap: 18px; align-items: flex-start; }
.soon-cover { flex: 0 0 104px; aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(31, 28, 23, .08); border-radius: 6px; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 10px; font-family: var(--serif); font-size: 14px; line-height: 1.25; color: var(--tan); overflow: hidden; }
.soon-cover.has-img { padding: 0; aspect-ratio: auto; }
.soon-cover.has-img img { display: block; width: 100%; height: auto; }
.soon-note { font-family: var(--sans); font-size: 11px; color: var(--tan-soft); }
.soon-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.soon h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; }
.soon-author { font-size: 14px; }
.soon p { font-size: 14px; color: var(--muted); }
/* long text: 4-line teaser + Read more / Read less (checkbox hack, no script) */
.soon-body { position: relative; }
.soon-chk { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.soon-text p { margin: 0; }
.soon-text p:first-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.soon-text p:not(:first-child) { display: none; }
.soon-chk:checked ~ .soon-text p { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.soon-chk:checked ~ .soon-text p + p { margin-top: 10px; }
.soon-toggle { display: inline-flex; align-items: center; align-self: flex-start; min-height: 32px; font-size: 13px; color: var(--accent); text-decoration: underline; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.soon-toggle::after { content: "Read more"; }
.soon-chk:checked ~ .soon-toggle::after { content: "Read less"; }
.soon-chk:focus-visible ~ .soon-toggle { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.badge { align-self: flex-start; background: var(--badge-bg); color: var(--accent-deep); font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.project { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.kicker { font-size: 14px; color: var(--tan); }
.project h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; }
.project p { font-size: 15px; color: var(--muted); }
.chips { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; }

/* voices */
.voice { display: flex; flex-direction: column; gap: 4px; }
.voice-photo.has-img { overflow: hidden; }
.voice-photo.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.voice-photo { aspect-ratio: 4 / 5; background: var(--sand); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 56px; color: var(--tan-soft); }
.voice h3 { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: 21px; }
.role { font-size: 14px; color: var(--muted); }

/* banner + our work */
.banner { height: 380px; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.work-row { display: flex; flex-wrap: wrap; gap: 32px; }
.work-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; flex: 1 1 340px; min-width: 0; }
.work-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.work-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.work-text { font-size: 16px; color: var(--muted); }
.work-card:hover .work-title { color: var(--accent); }

/* collaborators */
.partners { background: var(--bg); border-top: 1px solid var(--line); }
.partners-in { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.partners h2 { font-size: 28px; text-align: center; }
.partners ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partners li { width: 132px; height: 96px; display: flex; align-items: center; justify-content: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.partners li img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* footer */
.site-footer { background: var(--ink); color: #E9E4DA; }
.foot-in { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 36px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #CFC7BA; line-height: 1.5; }
.foot-logo { height: 64px; width: auto; align-self: flex-start; }
.foot-col { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.foot-h { font-size: 14px; color: #B5ADA1; margin-bottom: 6px; }
.foot-col a { color: #F1ECE2; text-decoration: none; padding: 5px 0; }
.foot-col a:hover, .social a:hover { color: #C9DC8A; }
.foot-base { border-top: 1px solid #3A342E; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #B5ADA1; }
.social { display: flex; gap: 16px; }
.social a { color: #B5ADA1; }
.site-footer a:focus-visible { outline-color: #C9DC8A; }

/* 404 */
.nf .section { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.nf p { font-size: 18px; color: var(--muted); }

/* ---- tablet / phone (the mockup is a 1440 desktop frame; these are the adaptations) ---- */
@media (max-width: 860px) {
  .js .menu-btn { display: flex; }
  .js .main-nav { display: none; flex-basis: 100%; order: 3; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); margin-top: 4px; }
  .js .main-nav.open { display: flex; }
  .js .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .js .main-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .header-in { gap: 8px 16px; }
  .tools { margin-left: auto; }
  .hero-in { padding-top: 88px; padding-bottom: 96px; min-height: 540px; }
  .hero-shade { background: linear-gradient(90deg, rgba(253,252,248,.93) 0%, rgba(253,252,248,.78) 55%, rgba(253,252,248,.35) 100%); }
  .hero h1 { font-size: 46px; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topbar { padding: 7px 16px; }
  .brand-tag { display: none; }
  .brand-logo { height: 48px; }
  .hero-in { padding-top: 64px; padding-bottom: 72px; min-height: 0; }
  .hero-shade { background: rgba(253,252,248,.84); }
  .hero h1 { font-size: 36px; line-height: 1.1; }
  .hero p { font-size: 17px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .section-coming { padding-bottom: 56px; }
  .sec-head h2, .nf h1 { font-size: 30px; }
  .sec-head { margin-bottom: 22px; }
  .grid-just, .grid-all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .book h3 { font-size: 17px; }
  .buy { flex-wrap: wrap; }
  .banner { height: 220px; }
  .soon { gap: 14px; }
  .soon-cover { flex-basis: 88px; font-size: 12px; padding: 10px 8px; }
  .soon-toggle { min-height: 44px; }
  .grid-voices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .voice-photo { font-size: 40px; }
  .voice h3 { font-size: 18px; }
  .work-title { font-size: 23px; }
  .partners li { width: calc(50% - 6px); max-width: 160px; }
  .searchbar-in .btn { padding-left: 14px; padding-right: 14px; }
}


.btn-off { border-color: var(--line); color: var(--muted); background: #fff; cursor: default; }
.buy-link { font-size: 14px; color: var(--accent); }

/* ---- inner pages: breadcrumbs, prose, book page, directories, contact ---- */
.more { font-size: 13px; color: var(--accent); align-self: flex-start; }
.crumbs { margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.crumbs li { list-style: none; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--tan-soft); }
.crumbs a { color: var(--muted); }
.page-title, .book-info h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; letter-spacing: -.01em; }
.lead { font-size: 19px; color: #3F3A35; max-width: 720px; margin-top: 14px; }
.prose { max-width: 760px; }
.prose-page { margin-top: 28px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 28px 0 8px; }
.prose h4 { font-size: 16px; font-weight: 600; margin: 20px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { list-style: disc; margin-bottom: 6px; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--accent); word-break: break-word; }
.prose a:hover { color: var(--accent-deep); }
.prose blockquote { margin: 0 0 14px; padding-left: 16px; border-left: 3px solid var(--line); color: var(--muted); }
.prose-after { margin-top: 32px; max-width: 760px; }
.prose-after a { color: var(--accent); }

.book-page { padding-top: 40px; }
.book-layout { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 48px; align-items: start; }
.book-cover { background: none; border-radius: 0; padding: 0; display: flex; justify-content: flex-start; }
.book-cover img { max-width: 100%; height: auto; border-radius: 3px; box-shadow: 0 8px 28px rgba(31, 28, 23, .22); }
.book-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.subtitle { font-family: var(--serif); font-size: 22px; color: var(--muted); }
.tagline-p { font-size: 17px; color: #3F3A35; max-width: 640px; }
.credits { margin: 8px 0 0; display: grid; gap: 6px; }
.credit { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 15px; }
.credit dt { color: var(--tan); min-width: 110px; }
.credit dd { margin: 0; }
.credit a { color: var(--ink); }
.credit a:hover { color: var(--accent); }
.many summary { cursor: pointer; color: var(--accent); }
.many p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.buy-box { margin-top: 18px; padding: 20px; background: var(--sand); border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.price-lg { font-size: 26px; font-family: var(--serif); }
.buy-note { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.book-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; margin-top: 56px; align-items: start; }
.facts { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 18px; background: #fff; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }

.dir-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.dir-tabs a, .letters a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14px; text-decoration: none; }
.dir-tabs a[aria-current=page] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dir-tabs a:not([aria-current=page]):hover, .letters a:hover { border-color: var(--ink); color: var(--ink); }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 8px; }
.letters a { padding: 4px 11px; font-size: 13px; }
.dir { margin-top: 12px; }
.dir-group { padding: 20px 0 8px; border-top: 1px solid var(--line); margin-top: 16px; scroll-margin-top: 16px; }
.dir-group h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--tan); margin: 0 0 8px; }
.dir-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 4px 32px; }
.dir-list li { padding: 8px 0; scroll-margin-top: 24px; display: flex; flex-direction: column; gap: 2px; }
.dir-list li:target { background: var(--badge-bg); margin: 0 -10px; padding: 8px 10px; border-radius: 6px; }
.dir-name { font-family: var(--serif); font-size: 19px; }
.dir-books { font-size: 14px; color: var(--muted); }
.dir-books a { color: var(--accent); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; margin-top: 36px; align-items: start; }
.cform { display: grid; gap: 18px; }
.fld { display: grid; gap: 6px; }
.fld label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.fld input, .fld textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #CFC4AD; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.fld textarea { resize: vertical; min-height: 140px; }
.fld input:focus, .fld textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.fld [aria-invalid=true] { border-color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .btn { justify-self: start; }
.cform .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.ok { color: var(--accent-deep); font-weight: 600; }
.form-status.err { color: #B3261E; }
.nojs-note { margin: 0; }
.js .nojs-note { display: none; }
.contact-cards { display: grid; gap: 16px; }
.ccard { background: var(--sand); border-radius: 10px; padding: 22px 24px; }
.ccard h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin-bottom: 6px; }
.ccard p { color: #3F3A35; }
.ccard a { color: var(--accent); word-break: break-word; }

@media (max-width: 860px) {
  .book-layout { grid-template-columns: 1fr; gap: 28px; }
  .book-cover { max-width: 420px; }
  .book-body { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-title, .book-info h1 { font-size: 36px; }
}
@media (max-width: 600px) {
  .page-title, .book-info h1 { font-size: 30px; }
  .lead { font-size: 17px; }
  .prose h2 { font-size: 24px; }
  .credit dt { min-width: 0; flex-basis: 100%; }
  .buy-box { padding: 16px; }
}
/* floating buttons, bottom-right: WhatsApp always; back-to-top appears after scrolling (with JS) */
.fabs { position: fixed; right: 20px; right: max(20px, env(safe-area-inset-right)); bottom: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.fab { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #fff; text-decoration: none; border-radius: 999px; box-shadow: 0 6px 18px rgba(31, 28, 23, .28); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease, visibility .2s; -webkit-tap-highlight-color: transparent; }
.fab:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31, 28, 23, .32); }
.fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.fab-wa { background: #25D366; height: 56px; min-width: 56px; padding: 0 16px; }
.fab-wa:hover { background: #1EBE5A; }
.fab-wa svg { flex: 0 0 auto; }
.fab-label { font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; }
.fab-top { background: var(--ink); width: 46px; height: 46px; margin-right: 5px; }
.fab-top:hover { background: var(--accent); }
.js .fab-top { opacity: 0; visibility: hidden; transform: translateY(10px); }
.js .fab-top.show { opacity: 1; visibility: visible; transform: none; }
.js .fab-top.show:hover { transform: translateY(-3px); }
@media (max-width: 700px) {
  .fabs { right: 14px; right: max(14px, env(safe-area-inset-right)); bottom: 14px; bottom: max(14px, env(safe-area-inset-bottom)); gap: 10px; }
  .fab-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* icon only on phones */
  .fab-wa { width: 54px; height: 54px; padding: 0; }
  .fab-top { margin-right: 4px; }
}
@media (prefers-reduced-motion: reduce) { .fab, .fab:hover { transition: none; transform: none; } }
@media print { .topbar, .site-header, .site-footer, .banner, .fabs { display: none; } }

/* ---- designed pages: Collaborations, Indigenous languages, Contributors, About (values from the design mockups) ---- */
.d-hero { padding: 56px 0 48px; }
.d-hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.d-hero-copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 16px; }
.d-h1 { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1.08; letter-spacing: -.01em; }
.d-lede { font-size: 19px; color: var(--muted); max-width: 600px; }
.d-hero-img { flex: 1 1 380px; min-width: 0; width: 100%; max-width: 520px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.op-collab { object-position: 50% 30%; }
.op-contrib { object-position: 42% 50%; }
.op-about { object-position: 40% 50%; }
.d-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.d-pills a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; text-decoration: none; }
.d-pills a:hover { border-color: var(--ink); }
.d-pills.on-dark a { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .12); color: #fff; }
.d-pills.on-dark a:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.d-sec { padding: 40px 0 56px; }
.d-sec-last { padding-bottom: 72px; }
.d-sec-lg { padding: 64px 0; }
.d-intro { margin: -12px 0 28px; font-size: 17px; color: var(--muted); }
.d-link { font-size: 15px; font-weight: 600; color: var(--accent); padding: 4px 0; align-self: flex-start; }
.d-link:hover { color: var(--accent-deep); }
.mni { font-family: 'Noto Sans Meetei Mayek', sans-serif; font-size: 19px; font-weight: 400; color: var(--tan); }
.d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 40px 28px; }
.d-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 40px 24px; }
.d-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.d-card-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.d-card-img.pos-top { object-position: top; }
.d-frame { aspect-ratio: 3 / 2; background: var(--sand); border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 18px; }
.d-frame img { max-height: 100%; max-width: 100%; width: auto; height: auto; box-shadow: 0 4px 14px rgba(31, 28, 23, .18); }
.d-meta { font-size: 14px; color: var(--tan); margin-top: 8px; }
.d-card h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.25; }
.d-with { font-size: 15px; }
.d-sum { font-size: 15px; color: var(--muted); }
.d-more { font-size: 15px; color: var(--muted); }
.d-more summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--accent); padding: 6px 0; display: inline-block; }
.d-more summary::-webkit-details-marker { display: none; }
.d-more[open] .more-l, .d-more:not([open]) .less-l { display: none; }
.d-more p { margin: 6px 0 0; }
.d-intl { padding: 64px 0; }
.d-intl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.d-intl-card { display: flex; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.d-flag { padding-top: 4px; }
.flag { height: 20px; width: auto; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(31, 28, 23, .15); }
.d-intl-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.d-country { font-size: 14px; color: var(--tan); }
.d-intl-body h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 21px; line-height: 1.3; }
.d-intl-sub { font-size: 15px; color: var(--muted); }
.d-intl-author { font-size: 15px; }
.d-intl-note { font-size: 14px; color: var(--muted); }
.d-cta-sec { padding: 64px 0; }
.d-cta-sec.band-sand { padding: 56px 0; }
.d-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.d-cta-copy { display: flex; flex-direction: column; gap: 6px; flex: 1 1 420px; }
.d-cta-copy h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; }
.d-cta-copy p { font-size: 17px; color: var(--muted); }

/* Indigenous languages */
.ih { position: relative; overflow: hidden; background: #2B3326; }
.ih-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.ih-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 26, 18, .82) 0%, rgba(22, 26, 18, .55) 50%, rgba(22, 26, 18, .2) 100%); }
.ih-in { position: relative; padding-top: 120px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; color: #fff; }
.ih-in .d-h1 { max-width: 720px; }
.ih-in .d-lede { color: #EDEAE2; }
.lang { border-top: 1px solid var(--line); padding: 48px 0; scroll-margin-top: 8px; }
.lang-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 24px; }
.lang-head h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; }
.lang-native { font-size: 22px; color: var(--tan); }
.lang-native[lang=mni] { font-family: 'Noto Sans Meetei Mayek', sans-serif; }
.lang-native[lang=bpy] { font-family: var(--serif); }
.lang-region { font-size: 15px; color: var(--muted); }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.lang-card { display: flex; gap: 20px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; align-items: flex-start; }
.lang-cover { flex: 0 0 96px; }
.lang-cover img { width: 100%; height: auto; box-shadow: 0 3px 10px rgba(31, 28, 23, .18); }
.lang-cover .ph { width: 100%; aspect-ratio: 3 / 4; background: var(--sand); border-radius: 6px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; color: var(--tan); padding: 8px; }
.lang-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lang-kind { font-size: 14px; color: var(--tan); }
.lang-body h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; }
.lang-body h3 span[lang=bpy] { font-family: 'Noto Serif Bengali', serif; }
.lang-body p { font-size: 15px; color: var(--muted); max-width: 640px; }

/* Contributors */
.pfilters { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 32px; }
.d-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 48px 28px; }
.person { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.person-roles { font-size: 14px; color: var(--tan); margin-top: 10px; }
.person h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.25; }
.person-bio { font-size: 15px; color: var(--muted); }
.person-xako { margin-top: 4px; font-size: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.d-more-people { margin-top: 48px; font-size: 15px; color: var(--muted); }
.d-more-people a { color: var(--accent); }

/* About */
.ab-two { display: flex; flex-wrap: wrap; gap: 40px; }
/* About: two columns. Left: intro, why we exist, what we do. Right: photo, then the illustration card */
.ab-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.ab-left { display: flex; flex-direction: column; gap: 44px; }
.ab-intro { display: flex; flex-direction: column; gap: 16px; }
.ab-right { display: flex; flex-direction: column; gap: 28px; }
.ab-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; }
.ab-right .ab-name { flex: 0 0 auto; align-self: stretch; }
.ab-left .ab-why { flex: 0 0 auto; }
.ab-what { display: flex; flex-direction: column; gap: 16px; }
.ab-list { display: flex; flex-direction: column; gap: 18px; }
.ab-list .ab-item { border-left: 0; padding-left: 0; gap: 4px; }
.ab-list .ab-item h3 { font-size: 20px; }
.ab-credit { align-self: flex-end; font-size: 12px; font-style: italic; color: var(--tan); margin-bottom: -2px; }
.ab-why { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.ab-why h2, .ab-what h2, .ab-ant h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.2; }
.ab-why p { font-size: 17px; }
.ab-name { flex: 1 1 340px; background: var(--sand); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; align-self: flex-start; }
.ab-name img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 50%; display: block; }
.ab-name-in { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 12px; }
.ab-name-in h2 { font-size: 15px; font-weight: 600; color: var(--tan); }
.ab-name-in p { font-size: 15px; color: var(--muted); }
.ab-name-in .ab-big { font-family: var(--serif); font-size: 28px; line-height: 1.3; color: var(--ink); }
.xs-bn { color: var(--tan); }
.ab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 28px 40px; }
.ab-item { display: flex; flex-direction: column; gap: 6px; border-left: 3px solid var(--sand); padding-left: 18px; }
.ab-item h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.ab-item p { font-size: 15px; color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 32px 24px; }
.member { display: flex; flex-direction: column; gap: 6px; }
.member img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.member h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; }
.member span { font-size: 15px; color: var(--muted); }
.ab-ant { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.ab-ant-copy { flex: 2 1 480px; display: flex; flex-direction: column; gap: 14px; }
.ab-ant h2 { font-size: 34px; }
.ab-imprints { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ab-imprints > span { font-size: 15px; font-weight: 600; }
.ab-imprints .chips { margin-top: 0; gap: 8px; }
.ab-imprints .chips li { padding: 6px 14px; }
.ab-imprints .chips li:has(a) { padding: 0; }
.ab-imprints .chips a { display: block; padding: 6px 14px; border-radius: 999px; text-decoration: none; }
.ab-imprints .chips li:has(a):hover { border-color: var(--accent); }
.ab-imprints .chips a:hover { color: var(--accent-deep); }
.ab-logos { flex: 1 1 260px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ab-logos span { font-size: 14px; color: var(--tan); }
.ab-logo-x { height: 110px; width: auto; }
.ab-logo-a { height: 120px; width: auto; }
.ab-contact { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; }
.ab-quote { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1.15; flex: 1 1 420px; }
.ab-write { display: flex; flex-direction: column; gap: 4px; font-size: 16px; flex: 0 1 320px; }
.ab-write h2 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.ab-write a { padding: 4px 0; }
.ab-write span { color: var(--muted); }

@media (max-width: 860px) {
  .d-h1 { font-size: 44px; }
  .d-hero { padding: 40px 0 32px; }
  .d-hero-in { gap: 32px; }
  .ab-split { display: flex; flex-direction: column; gap: 32px; }
  .ab-left, .ab-right { display: contents; }
  .ab-intro { order: 1; } .ab-photo { order: 2; } .ab-why { order: 3; } .ab-name { order: 4; } .ab-what { order: 5; }
  .ih-in { padding-top: 88px; padding-bottom: 72px; }
  .ab-quote { font-size: 32px; }
}
@media (max-width: 600px) {
  .d-h1 { font-size: 34px; line-height: 1.1; }
  .d-lede { font-size: 17px; }
  .d-sec, .lang { padding-top: 32px; padding-bottom: 40px; }
  .d-sec-lg, .d-intl, .d-cta-sec { padding-top: 48px; padding-bottom: 48px; }
  .lang-head h2 { font-size: 32px; }
  .lang-card { gap: 14px; padding: 16px; }
  .lang-cover { flex-basis: 80px; }
  .d-cta-copy h2 { font-size: 27px; }
  .ab-why h2, .ab-ant h2 { font-size: 27px; }
  .ab-name-in { padding: 22px 22px 24px; }
  .ab-name-in .ab-big { font-size: 24px; }
  .ab-quote { font-size: 28px; }
  .d-people { gap: 36px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person h3 { font-size: 19px; }
}

/* parent-site (Antonym) confirmation popup */
.pdlg { border: 0; border-radius: 14px; padding: 0; width: calc(100% - 32px); max-width: 440px; color: var(--ink); background: #fff; box-shadow: 0 24px 60px rgba(31, 28, 23, .35); }
.pdlg::backdrop { background: rgba(31, 28, 23, .55); }
.pdlg form { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.pdlg h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; }
.pdlg p { font-size: 16px; color: var(--muted); }
.pdlg-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 10px; }
