/*
Theme Name: Chaïmae Himdi
Description: Paper, aubergine and yellow theme for essays on architecture and urbanism.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: chaimae
Fonts: Archivo and Besley, SIL Open Font License 1.1
*/
@font-face{font-family:Archivo;font-weight:400 900;font-display:swap;src:url(assets/fonts/archivo-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:Archivo;font-weight:400 900;font-display:swap;src:url(assets/fonts/archivo-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:Besley;font-weight:400 700;font-display:swap;src:url(assets/fonts/besley-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:Besley;font-weight:400 700;font-display:swap;src:url(assets/fonts/besley-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
:root{--ink:#34174A;--yellow:#FEDB5A;--paper:#EDE8DF;--lilac:#DDD4E3;--soft:#67557A;--line:#B9ABBB;--sans:Archivo,Arial,sans-serif;--serif:Besley,Georgia,serif;--pad:max(clamp(20px,4.5vw,64px),calc(50vw - 656px));--gap-section:clamp(64px,7.8vw,112px)}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 17px/1.6 var(--sans);overflow-x:clip}
img,svg,video{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:.2em}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px;box-shadow:0 0 0 3px var(--yellow)}
h1,h2,h3{margin:0;font-family:var(--serif);font-weight:400;text-wrap:balance;overflow-wrap:break-word}
p{margin:0}
ul.menu{display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none}
mark{position:relative;z-index:-1;display:inline-block;padding:0 .1em .04em;background:var(--yellow);color:inherit}
h1,.about-line{isolation:isolate}
mark.indent{margin-left:.6em}
.skip{position:absolute;left:-999px}
.skip:focus{left:12px;top:12px;z-index:9;padding:12px;background:var(--yellow)}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.wrap{padding-inline:var(--pad)}
.meta{font-size:14px;line-height:1.4;color:var(--soft)}
.tag{padding:7px 12px;border-radius:6px;background:var(--ink);color:var(--yellow);font-size:13px;line-height:1.2;font-weight:600;text-transform:uppercase}
.tag.plain{text-transform:none}
.button,.pager a{display:inline-flex;align-items:center;min-height:52px;padding:0 28px;border:0;border-radius:999px;background:var(--ink);color:var(--yellow);font:600 16px/1.2 var(--sans);cursor:pointer}

/* Header */
.site-header{display:flex;flex-direction:column;gap:10px;padding:24px var(--pad) 14px;font-size:clamp(10.5px,2.85vw,13px);line-height:1.2;font-weight:600;text-transform:uppercase}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:16px}
.site-name{display:flex;align-items:center;min-height:44px;font-size:clamp(36px,5.4vw,78px);line-height:1;font-weight:900;letter-spacing:-.045em;word-spacing:.08em;text-transform:none;white-space:nowrap}
.site-name:hover{text-decoration:none}
.search-link{display:flex;align-items:center;min-height:44px}
.site-header .menu{gap:0 clamp(10px,2.9vw,30px)}
.site-header .menu a{position:relative;display:flex;align-items:center;min-height:44px}
.site-header .current-menu-item>a::after,.site-header .current-post-ancestor>a::after,.circled::after{content:"";position:absolute;inset:7px -.6em;background:url(assets/circle.svg) center/100% 100% no-repeat;pointer-events:none}

/* Home */
.hero{display:flex;flex-direction:column;gap:clamp(22px,2.5vw,36px);padding:clamp(24px,3.3vw,48px) var(--pad) clamp(44px,5.5vw,80px)}
.greeting{font:400 clamp(26px,3.6vw,52px)/1.15 var(--serif);letter-spacing:-.03em}
.hero-title{display:flow-root}
.hero .logo{float:right;width:clamp(100px,18.5vw,266px);height:auto;margin:4px 0 0 8px}
.hero h1{font-size:clamp(52px,9vw,130px);line-height:1.04;letter-spacing:-.045em;text-wrap:initial}
.hero .intro{max-width:440px;line-height:1.55}
.latest{display:flex;flex-wrap:wrap;justify-content:space-between;gap:32px 72px;padding:clamp(24px,4vw,56px);background:var(--yellow)}
.latest:hover,.card:hover,.row:hover,.tile:hover{text-decoration:none}
.latest:hover h2,.card:hover h3,.row:hover h3,.tile:hover h2{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.15em}
.latest-title{flex:999 1 420px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:28px}
.latest h2{max-width:760px;font-size:clamp(36px,5vw,72px);line-height:1.04;letter-spacing:-.03em}
.latest-text{flex:1 1 300px;display:flex;flex-direction:column;justify-content:flex-end;gap:20px;font-size:16px;line-height:1.55}
.latest-meta{padding-top:14px;border-top:1.5px solid;font-size:14px;font-weight:600}
.block{display:flex;flex-direction:column;gap:clamp(24px,2.8vw,40px);padding-block:var(--gap-section)}
.block-head{display:flex;flex-wrap:wrap;align-items:baseline;align-content:flex-start;justify-content:space-between;gap:6px 32px}
.block-head h2{font-size:clamp(32px,4.4vw,62px);line-height:1.05;letter-spacing:-.03em}
.more{display:flex;align-items:center;min-height:44px;font-size:15px;font-weight:600}
.split-list{display:flex;flex-wrap:wrap;gap:20px 72px;padding-bottom:var(--gap-section)}
.split-list .block-head{flex:1 1 300px}
.split-list .rows{flex:2 1 480px;min-width:0}

/* Cards and lists */
.swipe{display:flex;gap:clamp(16px,2vw,28px);margin-inline:calc(-1*var(--pad));padding-inline:var(--pad);overflow-x:auto;scrollbar-width:none}
.card{display:flex;flex-direction:column;gap:clamp(10px,1.2vw,16px);min-width:0}
.swipe .card{flex:1 0 256px}
.card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.card h3{font-size:clamp(22px,1.8vw,26px);line-height:1.18;letter-spacing:-.02em}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(28px,4.4vw,64px) clamp(14px,2.2vw,32px)}
.grid .card img{aspect-ratio:3/2}
.grid .card h3{font-size:clamp(18px,2.5vw,36px);line-height:1.16;letter-spacing:-.025em}
.grid .meta{font-size:clamp(12px,1vw,14px)}
.rows{border-bottom:1px solid var(--line)}
.row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 32px;padding:22px 0;border-top:1px solid var(--line)}
.row h3{flex:999 1 420px;min-width:0;font-size:clamp(20px,1.7vw,24px);line-height:1.25;letter-spacing:-.02em;text-wrap:wrap}
.stacked .row h3{flex-basis:100%}

/* List pages */
.list-page{display:flex;flex-direction:column;gap:clamp(32px,5vw,72px);padding-block:clamp(28px,3.9vw,56px) var(--gap-section)}
.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:20px 72px}
.page-head h1{font-size:clamp(48px,8.4vw,120px);line-height:1;letter-spacing:-.045em}
.category-published-elsewhere .page-head h1{max-width:min-content}
.page-intro{flex:0 1 520px;display:flex;flex-direction:column;gap:16px}
h1.small{font-size:clamp(40px,6vw,86px);line-height:1.04;letter-spacing:-.035em}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(46%,290px),1fr));gap:clamp(10px,1.4vw,20px)}
.tile{display:flex;flex-direction:column;justify-content:space-between;gap:20px;min-width:0;min-height:clamp(240px,26.4vw,380px);padding:clamp(14px,1.67vw,24px);background:var(--yellow)}
.tile:nth-child(8n+2),.tile:nth-child(8n+7){background:var(--ink);color:var(--yellow)}
.tile:nth-child(8n+4),.tile:nth-child(8n+5){background:var(--lilac)}
.tile h2{font-size:clamp(18px,1.95vw,28px);line-height:1.14;letter-spacing:-.025em;text-wrap:wrap}
.tile span{padding-top:14px;border-top:1.5px solid;font-size:clamp(12px,1vw,14px);line-height:1.45;font-weight:600}
.pager{display:flex;flex-wrap:wrap;gap:12px}
.pager a{border:1.5px solid var(--ink);background:none;color:var(--ink)}
.search-form{display:flex;align-items:center;gap:16px;border-bottom:2px solid}
.search-form input{flex:1;min-width:0;height:72px;padding:0;border:0;background:none;color:inherit;font:400 clamp(22px,3vw,40px)/1.2 var(--serif);letter-spacing:-.02em}
.search-form input::placeholder{color:var(--soft);opacity:1}
.search-form button{min-height:44px;border:0;background:none;color:inherit;font:600 15px var(--sans);cursor:pointer}

/* Articles */
.article-head{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(16px,2vw,28px);padding:clamp(28px,3.9vw,56px) var(--pad)}
.article-head h1{max-width:1080px;font-size:clamp(38px,6vw,86px);line-height:1.04;letter-spacing:-.035em}
.article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px clamp(14px,2.2vw,32px);font-size:clamp(13px,1.05vw,15px);line-height:1.3;font-weight:500}
.circled{position:relative;padding:8px 4px}
.circled::after{inset:0 -.6em}
.article-hero{margin:0}
.article-hero img{display:block;width:100%;height:clamp(230px,50vw,800px);object-fit:cover}
.article-hero figcaption{padding:10px var(--pad) 0;font-size:14px;color:var(--soft)}
.article-body{display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(32px,3.3vw,48px) 96px;padding:clamp(28px,5vw,72px) var(--pad) clamp(56px,6.6vw,96px)}
.article-head+.article-body{padding-top:0}
.article-body aside{flex:1 1 260px}
.details{display:grid;gap:14px 20px;max-width:368px;margin:0;padding:clamp(18px,1.7vw,24px);background:var(--yellow);font-size:14px;line-height:1.45}
.details dt{font-weight:700}.details dd{margin:0;overflow-wrap:anywhere}.details a{text-decoration:underline}
.article-body>.prose{flex:999 1 560px;min-width:0;max-width:760px}
.tags{display:flex;flex-wrap:wrap;gap:8px;padding-top:16px}
.tags a{padding:8px 14px;border:1px solid var(--line);border-radius:999px;font-size:14px;line-height:1.3}
.summary{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(26px,5vw,72px);margin:16px var(--pad) clamp(56px,6.6vw,96px);padding:clamp(24px,4.5vw,64px);background:var(--yellow)}
.summary h1{max-width:1040px;font-size:clamp(38px,7vw,100px);line-height:1.02;letter-spacing:-.04em}
.summary-text{width:100%;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:36px 72px;padding-top:32px;border-top:1.5px solid}
.summary-text .prose{flex:0 1 680px}
.read-next,.comments{padding:clamp(48px,5vw,72px) var(--pad);border-top:1px solid var(--line)}
.read-next{display:flex;flex-direction:column;gap:clamp(22px,2.2vw,32px)}
.read-next h2,.comments h2,.single .split-list h2{font-size:clamp(32px,3.6vw,50px);line-height:1.08;letter-spacing:-.03em}

/* Text written in the editor */
.prose{font-size:clamp(17px,1.25vw,18px);line-height:1.66;overflow-wrap:anywhere}
.prose>*{margin-block:0 24px}
.prose>:last-child{margin-bottom:0}
.prose p:empty{display:none}
.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{margin:48px 0 20px;font-family:var(--serif);font-weight:400;font-size:clamp(28px,2.5vw,36px);line-height:1.15;letter-spacing:-.025em}
.prose>:first-child:first-child{margin-top:0}
.prose :is(h2,h3,h4,h5,h6) strong{font-weight:inherit}
.article-body .prose>p:first-of-type:not(.tags){font:400 clamp(21px,1.75vw,25px)/1.45 var(--serif);letter-spacing:-.015em}
.prose h3{font-size:clamp(25px,2.1vw,30px)}
.prose :is(h4,h5,h6){font-size:clamp(21px,1.75vw,25px);line-height:1.25}
.prose a:not(.button),.page-intro a,.split-body a{text-decoration:underline;text-decoration-color:#B08A00;text-decoration-thickness:2px;text-underline-offset:.2em}
.prose .tags a{text-decoration:none}
.prose figure{margin-inline:0}
.prose figure img{display:block}
.prose>.wp-block-image:not(:first-child){margin-top:32px}
.prose>.wp-block-image{margin-bottom:32px}
.prose>.wp-block-image img{width:auto;height:auto;max-height:min(85vh,780px)}
.prose figcaption{margin:10px 0 0;font-size:14px;line-height:1.45;text-align:left;color:var(--soft)}
.prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption{position:static;padding:8px 0 0;overflow:visible;background:none;color:var(--soft);text-shadow:none;font-size:13px;text-align:left}
.prose .wp-block-gallery.has-nested-images figure.wp-block-image::before{display:none}
/* Core crops gallery photos with rules that collapse them when captions sit below. */
.prose .wp-block-gallery.has-nested-images figure.wp-block-image{justify-content:flex-start}
.prose .wp-block-gallery.has-nested-images figure.wp-block-image img{flex:none!important;width:100%!important;height:auto!important}
.prose blockquote{margin:40px 0;padding:0;border:0;font:400 clamp(24px,2.4vw,34px)/1.4 var(--serif);letter-spacing:-.02em}
.prose blockquote p{margin:0 0 .5em}
.prose :is(ul,ol){padding-left:1.2em}
.prose li{margin-bottom:8px}
.prose hr{height:1px;margin-block:40px;border:0;background:var(--line)}

/* Pages */
.split{display:flex;flex-wrap:wrap;gap:28px 72px}
.split h2{flex:1 1 260px;font-size:clamp(32px,3.6vw,50px);line-height:1.08;letter-spacing:-.03em}
.split-body{flex:2 1 480px;min-width:0;display:flex;flex-direction:column;gap:20px}
.split-body ul{margin:0;padding:0;list-style:none;border-bottom:1px solid var(--line)}
.split-body li{padding:clamp(18px,1.7vw,24px) 0;border-top:1px solid var(--line)}
.split-body li strong{display:block;margin-bottom:8px;font:400 clamp(22px,1.8vw,26px)/1.2 var(--serif);letter-spacing:-.02em}
.split.panel{padding:clamp(24px,4vw,56px);background:var(--yellow)}
.panel a[href^="mailto:"],.about .prose a[href*="/collaborate"]{display:inline-flex;align-items:center;min-height:52px;margin-top:8px;padding:0 28px;border-radius:999px;background:var(--ink);color:var(--yellow);font-size:16px;font-weight:600;text-decoration:none}
.about{display:flex;flex-wrap:wrap;align-items:flex-start;gap:clamp(24px,3.3vw,48px) 88px;padding-block:clamp(20px,3.9vw,56px) clamp(64px,8.3vw,120px)}
.about>img{flex:1 1 240px;min-width:0;max-width:clamp(250px,36vw,520px)}
.about>div{flex:1 1 480px;min-width:0}
.about h1,.about-line{font:400 clamp(42px,6vw,86px)/1.04 var(--serif);letter-spacing:-.035em}
.kicker{margin:22px 0;font-size:14px;line-height:1.4;font-weight:600;text-transform:uppercase}
.about-line{margin-bottom:44px}
.not-found{align-items:center}.not-found>div p{margin:28px 0}

/* Comments */
.comments{padding-bottom:clamp(64px,7.2vw,104px)}
.comments h2{margin-bottom:28px}
.comments h2 small{font:500 15px var(--sans);letter-spacing:0}
.comment-list{max-width:760px;margin:0 0 56px;padding:0;list-style:none}
.comment-list .children{padding-left:24px;list-style:none}
.comment-body{padding:20px 0;border-top:1px solid var(--line)}
.comment-form{display:flex;flex-direction:column;align-items:flex-start;gap:20px;max-width:760px;font-size:15px}
.comment-form p{width:100%}
.comment-form label{display:block;margin-bottom:8px;font-weight:600}
.comment-form :is(input:not([type=checkbox],[type=submit]),textarea){width:100%;min-height:48px;padding:12px 14px;border:1.5px solid var(--ink);border-radius:0;background:none;color:inherit;font:inherit}
.comment-form-cookies-consent{display:flex;gap:10px;align-items:baseline}.comment-form-cookies-consent label{margin:0;font-weight:400}

/* Footer */
.site-footer{display:flex;flex-direction:column;gap:clamp(32px,3.9vw,56px);padding:clamp(48px,5vw,72px) var(--pad) 32px;background:var(--ink);color:var(--yellow)}
.site-footer :focus-visible{outline-color:var(--yellow)}
.footer-top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:40px 64px}
.footer-headline{max-width:7em;font:400 clamp(44px,6.4vw,92px)/1.12 var(--serif);letter-spacing:-.03em}
.footer-links{display:flex;gap:48px;font-size:15px;line-height:1.3;font-weight:500}
.footer-links .menu{flex-direction:column}
.footer-links a{display:flex;align-items:center;min-height:44px}
.footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 32px;padding-top:20px;border-top:1px solid #6E5485;font-size:13px;line-height:1.4;color:#F3E9D2}

@media (max-width:700px){
.details{max-width:none;grid-template-columns:1fr 1fr}
.article-head+.article-body{padding-top:0}
}
@media (min-width:701px){
.split:has(li:nth-child(4)){flex-flow:column nowrap}
.split:has(li:nth-child(4)) h2{flex:none}
.split:has(li:nth-child(4)) .split-body{flex:none}
.split:has(li:nth-child(4)) ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:32px 40px;border:0}
.split:has(li:nth-child(4)) li{padding:0;border:0;font-size:16px}
.split:has(li:nth-child(4)) li strong{font:700 17px/1.4 var(--sans);letter-spacing:0}
}
