/*
Theme Name: Abdul Alim Editorial
Description: An editorial WordPress portfolio for Abdul Alim, with layouts for books, articles and creative work.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: abdul-alim-editorial
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
  font-family: 'Noto Serif Bengali Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(assets/fonts/noto-serif-bengali-bengali-wght-normal.woff2) format('woff2');
  unicode-range: U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1;
}

@font-face {
  font-family: 'Noto Sans Bengali Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(assets/fonts/noto-sans-bengali-bengali-wght-normal.woff2) format('woff2');
  unicode-range: U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1;
}

:root {
  --paper: #faf6ed;
  --cream: #f0e8d9;
  --masthead: #fbe5a9;
  --ink: #173b3f;
  --muted: #475654;
  --teal: #173b3f;
  --slate: #192c32;
  --accent: #873f31;
  --gold: #e6c575;
  --rule: #d9cdb6;
  --serif: Georgia, "Noto Serif Bengali Variable", "Noto Serif Bengali", "Nirmala UI", serif;
  --sans: "Noto Sans Bengali Variable", system-ui, "Noto Sans Bengali", "Nirmala UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 var(--sans); }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #a45723; outline-offset: 4px; }
.wrap { width: min(100% - 4rem, 70rem); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; top: .75rem; left: .75rem; background: var(--paper); padding: .6rem 1rem; }
[hidden] { display: none !important; }

.site-header { position: sticky; top: 0; z-index: 4; background: var(--masthead); color: #162b2b; }
body.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 6.85rem; padding-block: .9rem; }
.identity { display: flex; align-items: center; gap: .85rem; flex: none; }
.monogram { display: grid; place-items: center; width: 2.75rem; aspect-ratio: 1; background: var(--teal); color: var(--masthead); border-radius: 50%; font: 700 1.35rem var(--serif); }
.custom-logo { width: auto; max-width: 5.5rem; max-height: 3rem; object-fit: contain; }
.brand { font: 700 1.45rem/1.2 var(--serif); text-decoration: none; }
.tagline { display: block; color: var(--muted); font-size: .71rem; margin-top: .18rem; }
.nav-list, .nav-list ul { list-style: none; padding: 0; margin: 0; }
.nav-list { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; column-gap: clamp(.65rem, 1.45vw, 1.4rem); row-gap: .25rem; }
.nav-list li { position: relative; }
.nav-list a { display: block; padding-block: .4rem; font-size: .9rem; font-weight: 550; text-decoration: none; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--teal); text-decoration: underline; }
.nav-list ul { position: absolute; z-index: 2; inset-inline-start: 0; top: 100%; min-width: 11rem; max-width: 16rem; background: var(--paper); border: 1px solid var(--rule); padding: .5rem .75rem; display: none; }
.nav-list li:nth-last-child(-n+2) > ul { inset-inline-start: auto; inset-inline-end: 0; }
.nav-list li:hover > ul, .nav-list li:focus-within > ul { display: block; }
.nav-list ul ul { position: static; border: 0; padding-block: 0; min-width: 0; }
.nav-toggle { display: none; padding: .45rem .7rem; color: var(--teal); background: transparent; border: 1px solid var(--rule); }

.notice-bar { background: var(--teal); color: var(--paper); font-size: .86rem; }
.notice-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding-block: .6rem; }
.notice-inner strong { color: var(--gold); }
.notice-inner a { margin-inline-start: auto; }
.notice-inner :focus-visible, .dark-panel :focus-visible { outline-color: var(--gold); }

.hero-inner, .feature-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.hero-inner { min-height: 35.5rem; padding-block: clamp(2.7rem, 4vw, 3.4rem); }
.eyebrow { color: var(--accent); font-size: .82rem; font-weight: 700; margin: 0 0 .65rem; }
.hero h1 { font-size: clamp(2.8rem, 5.4vw, 4.2rem); font-weight: 570; line-height: 1.24; max-width: 12ch; }
.intro { font-size: clamp(1.06rem, 1.85vw, 1.31rem); max-width: 35rem; margin: 1.25rem 0 0; }
.hero-topics { color: var(--muted); margin: 1.6rem 0 0; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.12rem; border-radius: 2px; background: var(--teal); color: var(--paper); font-weight: 680; text-decoration: none; }
.button:hover { background: #23535a; }
.button-secondary { background: #e9dec9; color: var(--teal); }
.button-secondary:hover { background: #dfd1b4; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 680; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.portrait { width: min(100%, 22.3rem); justify-self: start; }
.portrait img, .portrait-mark { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 31%; background: var(--cream); }
.portrait-mark { display: grid; place-items: center; font: 570 clamp(5rem, 15vw, 10rem)/1 var(--serif); color: var(--teal); }

.feature-panel { border-top: 1px solid var(--rule); }
.feature-inner { min-height: 24rem; padding-block: clamp(2.5rem, 5.2vw, 4.2rem); }
.feature-copy h2, .work-panel h2, .contact-panel h2 { font-size: clamp(1.85rem, 3.8vw, 2.65rem); font-weight: 580; }
.feature-copy > p:not(.eyebrow), .work-panel h2 + p, .contact-panel h2 + p { max-width: 42rem; margin: .9rem 0 1.35rem; }
.feature-art { justify-self: center; display: grid; justify-items: center; width: min(100%, 19rem); }
.feature-art img { max-height: 21rem; width: auto; object-fit: contain; }
.feature-art .cover-mark { width: 62%; }
.dark-panel { background: var(--teal); color: var(--paper); border-color: transparent; }
.dark-panel .eyebrow { color: var(--gold); }
.dark-panel .button { color: var(--teal); background: var(--gold); }
.dark-panel .button:hover { background: #f3d896; }
.work-panel { background: var(--slate); }
.contact-panel { text-align: center; }
.contact-panel h2 + p { margin-inline: auto; }

.collection { padding-block: clamp(2.4rem, 5.5vw, 4.6rem); }
.collection + .collection { border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .75rem; margin-bottom: 1.35rem; }
.section-head h2 { font-size: clamp(1.85rem, 3.3vw, 3rem); }
.section-head .text-link { color: var(--teal); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.7rem); }
.card { background: #fffdf8; border: 1px solid var(--rule); min-width: 0; position: relative; }
.card:hover { border-color: #758f8b; }
.book-card { background: transparent; border-color: transparent; }
.card-art { background: var(--cream); display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.book-card .card-art { aspect-ratio: 1 / 1; padding: .95rem; background: var(--cream); }
.book-card .card-art img { width: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(3px 4px 4px #173b3f25); }
.cover-mark { display: grid; place-items: center; width: 52%; aspect-ratio: 2 / 3; background: var(--teal); color: var(--gold); border: 1px solid #819792; font: 700 clamp(1.3rem, 5vw, 3.6rem) var(--serif); }
.card-copy { padding: .95rem 1rem 1.1rem; }
.card-copy time, .page-heading time { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .85rem; }
.card-title { font-size: clamp(1rem, 1.5vw, 1.3rem); }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title span { color: var(--teal); margin-inline-start: .45rem; font: 1em var(--sans); }
.directory { display: flex; flex-wrap: wrap; gap: .8rem; }
.directory a { display: flex; flex: 1 1 12rem; justify-content: space-between; gap: 1rem; padding: 1rem; color: var(--teal); background: var(--cream); font-weight: 700; text-decoration: none; }
.directory a:hover { text-decoration: underline; }
.dark-panel .directory a { color: var(--paper); background: transparent; border: 1px solid #90a4a7; }

.inner-page { min-height: 55vh; padding-block: clamp(2rem, 5vw, 4.4rem); }
.page-heading { max-width: 54rem; margin: 0 auto 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.page-heading h1 { font-size: clamp(2rem, 4.8vw, 4rem); }
.page-heading time { margin-top: .75rem; }
.prose { max-width: 48rem; margin-inline: auto; overflow-wrap: anywhere; font-size: clamp(1rem, 1.5vw, 1.13rem); }
.original-home { padding-bottom: 3rem; }
.prose h2, .prose h3 { margin-block: 1.5em .5em; }
.prose a { color: var(--teal); }
.prose figure { max-width: 100%; }
.prose .entry-image { margin: 0 0 1.8rem; }
.entry-image img { max-height: 34rem; object-fit: contain; object-position: left; }
.prose video, .prose iframe, .prose embed { max-width: 100%; }
.prose table { border-collapse: collapse; max-width: 100%; }
.prose td, .prose th { border: 1px solid var(--rule); padding: .45rem; }
.prose blockquote { border-inline-start: 3px solid var(--teal); margin-inline: 0; padding-inline-start: 1rem; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin-inline-end: 1rem; }
.prose .alignright { float: right; margin-inline-start: 1rem; }
.prose::after { content: ""; display: block; clear: both; }
.pagination { margin-top: 1.5rem; }
.page-numbers { display: inline-block; padding: .4rem .55rem; }
.page-numbers.current { color: var(--paper); background: var(--teal); }
.comments { border-top: 1px solid var(--rule); margin-top: 2rem; }
.comments input, .comments textarea { max-width: 100%; }
.comment-list .children { padding-inline-start: 1rem; }

.site-footer { background: var(--slate); color: var(--paper); border-top: 1px solid #688082; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem; padding-block: 2rem; }
.footer-inner p { color: #ebdfca; margin: .35rem 0 0; }
.search-form { display: flex; gap: .3rem; max-width: 100%; }
.search-form label { min-width: 0; }
.search-form input, .search-form button { padding: .48rem .65rem; border: 1px solid var(--rule); border-radius: 0; }
.search-form input { width: 100%; background: #fffdf8; color: var(--ink); }
.search-form button { background: var(--gold); color: var(--ink); white-space: nowrap; }

@media (max-width: 56rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .masthead { flex-wrap: wrap; min-height: 4.8rem; }
  .nav-toggle { display: inline-flex; gap: .4rem; align-items: center; }
  .site-nav { width: 100%; }
  .site-nav.has-toggle:not(.is-open) { display: none; }
  .site-nav.is-open { max-height: 65vh; overflow-y: auto; }
  .nav-list { justify-content: start; align-items: start; gap: .25rem 1.2rem; }
  .nav-list ul { display: block; position: static; min-width: 0; border: 0; padding: 0 0 0 .55rem; }
  .hero-inner, .feature-inner { gap: 1.8rem; min-height: 0; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-inner, .feature-inner { grid-template-columns: 1fr; }
  body.admin-bar .site-header { top: 0; }
  .feature-art { justify-self: start; width: min(100%, 14rem); }
  .feature-art img { max-height: 15rem; }
  .notice-inner a { margin-inline-start: 0; }
  .portrait { justify-self: start; }
  .card-grid:not(.book-grid) { grid-template-columns: 1fr; }
  .card-grid { gap: .65rem; }
  .card-copy { padding: .7rem .65rem; }
  .book-card .card-art { padding: .5rem; }
}
.entry-tags, .post-navigation { border-top: 1px solid var(--rule); margin-top: 1.8rem; padding-top: .85rem; }
.post-navigation .nav-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1.2rem; }
