/*
Theme Name: Atelier Ad Hoc
Theme URI: https://atelieradhoc.ro
Author: Atelier Ad Hoc Arhitectura
Description: Custom theme for Atelier Ad Hoc Arhitectura — Projects and Research archives indexed by year, Info pages.
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: aah
*/
@font-face{font-family:'Familjen Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/familjen-grotesk-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Familjen Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/familjen-grotesk-latin-400-normal.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:'Familjen Grotesk';font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/familjen-grotesk-latin-ext-400-italic.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Familjen Grotesk';font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/familjen-grotesk-latin-400-italic.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:'Familjen Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/familjen-grotesk-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Familjen Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/familjen-grotesk-latin-500-normal.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:'Familjen Grotesk';font-style:italic;font-weight:500;font-display:swap;src:url(assets/fonts/familjen-grotesk-latin-ext-500-italic.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Familjen Grotesk';font-style:italic;font-weight:500;font-display:swap;src:url(assets/fonts/familjen-grotesk-latin-500-italic.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:'Familjen Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/familjen-grotesk-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Familjen Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/familjen-grotesk-latin-600-normal.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:'Familjen Grotesk';font-style:italic;font-weight:600;font-display:swap;src:url(assets/fonts/familjen-grotesk-latin-ext-600-italic.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Familjen Grotesk';font-style:italic;font-weight:600;font-display:swap;src:url(assets/fonts/familjen-grotesk-latin-600-italic.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}

/* VOICE: quiet, archival, an architect's index — the work speaks, the type frames it
   IDEA: a drawing-sheet title block: name in the middle, two archives pinned to the corners
   PICTURE: the red logotype itself, large and centred; then the wall of covers it opens
   COLOUR and TYPE: white ground, near-black ink, the logo's red #F03738 as the only accent; one grotesk, four sizes
   LAYOUT: three-point header (Projects left, Info centre, Research right); index lists mirror each other left/right */

:root{color-scheme:light;--bg:#fff;--ink:#141414;--mute:#8a8a8a;--line:#e6e6e6;--tile:#efefed;--red:#F03738;--f:"Familjen Grotesk"}
html,body{background:#fff}
*{box-sizing:border-box;min-width:0}
html{scroll-behavior:smooth;scroll-padding-top:20px;scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{display:none;width:0}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 var(--f),system-ui,sans-serif;overflow-x:clip;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:2px solid var(--red);outline-offset:3px}
/* header: logo on top, Projects · Info · Research on one row */
.hd{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px max(1.6vw,12px) 0}
.logo{color:var(--red);display:block;line-height:0;width:170px}
.logo svg{width:100%;height:auto;display:block}
.nav{display:grid;grid-template-columns:1fr auto 1fr;width:100%;align-items:center}
.nav .r{justify-self:end}
.big{font-size:19px;font-weight:500;line-height:1;letter-spacing:.02em;min-height:44px;display:inline-flex;align-items:center}
.big:hover,.big.on{color:var(--red)}
.sub{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 18px;font-size:15px;margin-top:-6px}
.sub a{padding:6px 2px;color:var(--mute)}.sub a:hover,.sub a.on{color:var(--red)}
/* grid of covers */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(180px,42vw),1fr));gap:clamp(6px,1vw,14px);padding:0 max(1.6vw,12px) 60px}
.card{display:block;position:relative}
.ph{aspect-ratio:1;background:var(--tile);overflow:hidden;position:relative}
.ph img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .3s}
img{-webkit-user-drag:none;user-select:none;-webkit-touch-callout:none}
.ph .alt{position:absolute;inset:0;display:none;padding:10px;font-size:13px;line-height:1.25;color:var(--mute);align-items:flex-end}
.ph.no img{display:none}.ph.no .alt{display:flex}
.cap{display:block;font-size:13px;line-height:1.3;padding-top:6px;overflow-wrap:anywhere}
.cap b{font-weight:500;display:block}.cap span{color:var(--mute);display:block}
.card:hover .cap b{color:var(--red)}
.card:hover img{opacity:.85}
#all{padding-top:22px}
.sec{padding:0 max(2.2vw,14px) 14px;font-size:15px;color:var(--mute)}
/* archive views — index fixed; images and text scroll together, no visible bars */
.arch{display:grid;grid-template-columns:240px minmax(0,1fr);gap:clamp(24px,3vw,56px);padding:22px max(1.6vw,12px) 0;height:calc(100svh - var(--hh,150px))}
.arch.rev{grid-template-columns:minmax(0,1fr) 240px}
.arch.rev .idx{order:2}
.arch>*,.bd{overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
.arch>*::-webkit-scrollbar{display:none}
.bd{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,36%);gap:clamp(24px,3vw,56px);align-items:start;padding-bottom:60px}
.rev .bd{grid-template-columns:minmax(260px,36%) minmax(0,1fr)}
.rev .bd .tx{order:1}.rev .bd .pics{order:2}
.mhead{display:none}
.bd.one{display:block}
.card .ph.no .alt{display:none}
.bd.one .grid{padding:0 0 60px;grid-template-columns:repeat(auto-fill,minmax(min(170px,42vw),1fr))}
.row.hl a,.card.hl .cap b{color:var(--red)}
.card.hl img{opacity:.85}
.idx{font-size:14px;line-height:1.12;padding-bottom:60px}
.idx summary{list-style:none;cursor:pointer;font-weight:500;padding:6px 0 10px;display:none}
.idx summary::-webkit-details-marker{display:none}
.row{display:grid;grid-template-columns:3em 1fr;gap:6px}
.idx .row.gap{margin-top:0}
.row a{display:block;padding:1px 0}
.row a:hover{color:var(--red)}
.row.on,.row.on a{color:var(--mute)}
.pics{display:flex;flex-direction:column;gap:12px}
.pics .ph{aspect-ratio:auto;background:var(--tile);flex:none}
.pics img{width:100%;height:auto;display:block}
.pics .ph.no{aspect-ratio:3/2}
.tx{font-size:15px;line-height:1.38}
.tx h1,.tx .h1{font-size:21px;font-weight:600;line-height:1;margin:0 0 18px}
.tx .meta{margin:0 0 28px}
.tx p{margin:0 0 1em;max-width:62ch}
/* info */
.note{font-size:12.5px;color:var(--mute)}
.pg{max-width:820px;margin:0 auto;padding:30px max(5vw,16px) 80px}
.pg p{margin:0 0 1em;font-size:16px}
.dim{color:var(--mute)}
.ylist{font-size:14px;line-height:1.25}
.ylist .row{grid-template-columns:3em 1fr;gap:6px;margin-top:8px}
.ylist .row.gap{margin-top:20px}.ylist .row:first-child{margin-top:0}
.lbl{font-size:14px;font-weight:500;color:var(--mute);margin:34px 0 12px}
.team{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px 32px;margin-bottom:22px}
.team b{display:block;font-weight:500}.team .dim{display:block;font-size:14px;margin-bottom:6px}
.team p{font-size:15px}
.ct{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:22px 32px;font-size:15px}
.ct h3{font-size:13px;font-weight:500;color:var(--mute);margin:0 0 6px}
.ct p{margin:0;font-size:15px}
.ct a:hover{color:var(--red)}
.map{position:relative;margin-top:34px;aspect-ratio:16/9;background:var(--tile)}
.map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ft{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;padding:22px max(1.6vw,12px) 40px;font-size:13.5px;color:var(--mute)}
.ft a:hover{color:var(--red)}
.mapfb{display:inline-block;margin-top:8px;font-size:13px;color:var(--mute);text-decoration:underline;text-underline-offset:3px}
[hidden]{display:none!important}
@media(max-width:900px){
 .big{font-size:16px}
 .arch,.arch.rev{grid-template-columns:1fr;height:auto;padding-top:10px;gap:16px}
 .arch>*,.bd{overflow:visible}
 .arch.rev .idx{order:0}
 .bd,.rev .bd{grid-template-columns:1fr;gap:18px}
 .bd .mhead,.rev .bd .mhead{display:block;order:0}.mhead .meta{margin-bottom:0}
 .bd .pics,.rev .bd .pics{order:1}.bd .tx,.rev .bd .tx{order:2}
 .bd>.tx:not(.mhead)>h1,.bd>.tx:not(.mhead)>.meta{display:none}
 .bd>.mhead,.rev .bd>.mhead{order:0}
 .idx{border-bottom:1px solid var(--line);padding-bottom:8px}
 .idx summary{display:block}
 .idx:not([open]) .rows{display:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.ph img{transition:none}}

/* WordPress specifics */
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.tx a,.pg a{text-decoration:underline;text-underline-offset:3px}
.ct a,.team a{text-decoration:none}
.tx .meta a{text-decoration:none}
.pg .wp-block-image,.pg figure{margin:0 0 1em}
.mapfb{display:inline-block;margin-top:8px;font-size:13px;color:var(--mute);text-decoration:underline;text-underline-offset:3px}
img{-webkit-user-drag:none;user-select:none;-webkit-touch-callout:none}

/* 1.0.3: team photo on About, aligned with the text column */
.pg .team-photo{margin:4px 0 22px}
.pg .team-photo img{width:100%;height:auto;display:block}

/* 1.0.3: transparent images (GIF/PNG) in galleries sit on white, not on the grey placeholder */
.pics .ph:not(.no){background:#fff}

/* 1.0.3 phone: only the title above the images; year, data sheet and text after them */
@media(max-width:900px){
 .bd .mhead .meta{display:none}
 .bd>.tx:not(.mhead)>.meta{display:block}
 .bd .mhead h1,.bd .mhead .h1{margin-bottom:0}
}

/* 1.0.3: The Third Instance GIF has 150 px black bars left/right baked in — crop them off (1920 to 1620 wide) */
.pics img[src*="Third-Instance_Atelier-Ad-Hoc_02"]{aspect-ratio:1620/1080;object-fit:cover;height:auto}

/* 1.0.3: looping silent videos in galleries (instead of heavy GIFs) */
.pics video{width:100%;height:auto;display:block;pointer-events:none}
